diff --git a/.gitignore b/.gitignore index 6777b14c3..162f5b64c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ tmp/* !tmp/.gitkeep .vs/* +.claude-session-id diff --git a/Makefile b/Makefile index 2f81dccad..4d08b1ed9 100644 --- a/Makefile +++ b/Makefile @@ -193,6 +193,19 @@ $(ARLIB): $(OBJ_FILES) Makefile $(SOLIB): $(OBJ_FILES) Makefile @$(CC) $(CFLAGS) -shared -Wl,$(SOFLAG),$(SONAME) $(LDFLAGS) -o $@ $(OBJ_FILES) $(LIBS) +# PLpgSQL protobuf code generation +generate_plpgsql: + ruby scripts/extract_plpgsql_headers.rb + ruby scripts/generate_plpgsql_protobuf.rb + +# Append PLpgSQL proto to main proto file (must be done manually when PLpgSQL definitions change) +# Run: make regenerate_plpgsql_proto +regenerate_plpgsql_proto: generate_plpgsql + @echo "Appending PLpgSQL proto definitions to pg_query.proto" + @# Remove any existing PLpgSQL definitions first (between markers if present) + @cat src/include/pg_query_plpgsql_protobuf.proto >> protobuf/pg_query.proto + @echo "PLpgSQL proto definitions appended. Please commit the changes." + protobuf/pg_query.pb-c.c protobuf/pg_query.pb-c.h: protobuf/pg_query.proto ifneq ($(shell which protoc-gen-c), ) protoc --c_out=. protobuf/pg_query.proto @@ -237,7 +250,7 @@ examples/normalize_error: examples/normalize_error.c $(ARLIB) examples/simple_plpgsql: examples/simple_plpgsql.c $(ARLIB) $(CC) $(TEST_CFLAGS) -o $@ -g examples/simple_plpgsql.c $(ARLIB) $(TEST_LDFLAGS) -TESTS = test/complex test/concurrency test/deparse test/fingerprint test/fingerprint_opts test/is_utility_stmt test/normalize test/normalize_utility test/parse test/parse_opts test/parse_protobuf test/parse_protobuf_opts test/parse_plpgsql test/scan test/split test/summary test/summary_truncate +TESTS = test/complex test/concurrency test/deparse test/fingerprint test/fingerprint_opts test/is_utility_stmt test/normalize test/normalize_utility test/parse test/parse_opts test/parse_protobuf test/parse_protobuf_opts test/parse_plpgsql test/parse_plpgsql_protobuf test/scan test/split test/summary test/summary_truncate test: $(TESTS) ifeq ($(VALGRIND),1) $(VALGRIND_MEMCHECK) test/complex || (cat test/valgrind.log && false) @@ -279,6 +292,7 @@ else # Output-based tests test/parse_plpgsql diff -Naur test/plpgsql_samples.expected.json test/plpgsql_samples.actual.json + test/parse_plpgsql_protobuf endif test/complex: test/complex.c $(ARLIB) @@ -326,6 +340,9 @@ test/parse_opts: test/parse_opts.c test/parse_opts_tests.c $(ARLIB) test/parse_plpgsql: test/parse_plpgsql.c test/parse_tests.c $(ARLIB) $(CC) $(TEST_CFLAGS) -o $@ test/parse_plpgsql.c $(ARLIB) $(TEST_LDFLAGS) +test/parse_plpgsql_protobuf: test/parse_plpgsql_protobuf.c $(ARLIB) + $(CC) $(TEST_CFLAGS) -o $@ test/parse_plpgsql_protobuf.c $(ARLIB) $(TEST_LDFLAGS) + test/parse_protobuf: test/parse_protobuf.c test/parse_tests.c $(ARLIB) $(CC) $(TEST_CFLAGS) -o $@ test/parse_protobuf.c $(ARLIB) $(TEST_LDFLAGS) diff --git a/pg_query.h b/pg_query.h index def0254e3..db419c5f2 100644 --- a/pg_query.h +++ b/pg_query.h @@ -73,6 +73,12 @@ typedef struct { PgQueryError* error; } PgQueryPlpgsqlParseResult; +typedef struct { + PgQueryProtobuf parse_tree; + char* stderr_buffer; + PgQueryError* error; +} PgQueryPlpgsqlProtobufParseResult; + typedef struct { uint64_t fingerprint; char* fingerprint_str; @@ -124,6 +130,10 @@ PgQueryParseResult pg_query_parse_opts(const char* input, int parser_options); PgQueryProtobufParseResult pg_query_parse_protobuf(const char* input); PgQueryProtobufParseResult pg_query_parse_protobuf_opts(const char* input, int parser_options); PgQueryPlpgsqlParseResult pg_query_parse_plpgsql(const char* input); +PgQueryPlpgsqlProtobufParseResult pg_query_parse_plpgsql_protobuf(const char* input); + +// Convert PLpgSQL protobuf back to JSON (for bidirectional support) +char* pg_query_plpgsql_protobuf_to_json(PgQueryProtobuf protobuf); PgQueryFingerprintResult pg_query_fingerprint(const char* input); PgQueryFingerprintResult pg_query_fingerprint_opts(const char* input, int parser_options); @@ -154,6 +164,7 @@ void pg_query_free_deparse_result(PgQueryDeparseResult result); void pg_query_free_deparse_comments_result(PgQueryDeparseCommentsResult result); void pg_query_free_protobuf_parse_result(PgQueryProtobufParseResult result); void pg_query_free_plpgsql_parse_result(PgQueryPlpgsqlParseResult result); +void pg_query_free_plpgsql_protobuf_parse_result(PgQueryPlpgsqlProtobufParseResult result); void pg_query_free_fingerprint_result(PgQueryFingerprintResult result); void pg_query_free_is_utility_result(PgQueryIsUtilityResult result); void pg_query_free_summary_parse_result(PgQuerySummaryParseResult result); diff --git a/protobuf/pg_query.pb-c.c b/protobuf/pg_query.pb-c.c index b485bf83d..565e18875 100644 --- a/protobuf/pg_query.pb-c.c +++ b/protobuf/pg_query.pb-c.c @@ -12316,4159 +12316,9686 @@ void pg_query__summary_result__free_unpacked assert(message->base.descriptor == &pg_query__summary_result__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor pg_query__parse_result__field_descriptors[2] = +void pg_query__plpg_sqlparse_result__init + (PgQuery__PLpgSQLParseResult *message) +{ + static const PgQuery__PLpgSQLParseResult init_value = PG_QUERY__PLPG_SQLPARSE_RESULT__INIT; + *message = init_value; +} +size_t pg_query__plpg_sqlparse_result__get_packed_size + (const PgQuery__PLpgSQLParseResult *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sqlparse_result__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sqlparse_result__pack + (const PgQuery__PLpgSQLParseResult *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sqlparse_result__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sqlparse_result__pack_to_buffer + (const PgQuery__PLpgSQLParseResult *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sqlparse_result__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLParseResult * + pg_query__plpg_sqlparse_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLParseResult *) + protobuf_c_message_unpack (&pg_query__plpg_sqlparse_result__descriptor, + allocator, len, data); +} +void pg_query__plpg_sqlparse_result__free_unpacked + (PgQuery__PLpgSQLParseResult *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sqlparse_result__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt__init + (PgQuery__PLpgSQLStmt *message) +{ + static const PgQuery__PLpgSQLStmt init_value = PG_QUERY__PLPG_SQL_STMT__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt__get_packed_size + (const PgQuery__PLpgSQLStmt *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt__pack + (const PgQuery__PLpgSQLStmt *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt__pack_to_buffer + (const PgQuery__PLpgSQLStmt *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmt * + pg_query__plpg_sql_stmt__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmt *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt__free_unpacked + (PgQuery__PLpgSQLStmt *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_datum__init + (PgQuery__PLpgSQLDatum *message) +{ + static const PgQuery__PLpgSQLDatum init_value = PG_QUERY__PLPG_SQL_DATUM__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_datum__get_packed_size + (const PgQuery__PLpgSQLDatum *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_datum__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_datum__pack + (const PgQuery__PLpgSQLDatum *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_datum__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_datum__pack_to_buffer + (const PgQuery__PLpgSQLDatum *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_datum__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLDatum * + pg_query__plpg_sql_datum__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLDatum *) + protobuf_c_message_unpack (&pg_query__plpg_sql_datum__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_datum__free_unpacked + (PgQuery__PLpgSQLDatum *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_datum__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_type__init + (PgQuery__PLpgSQLType *message) +{ + static const PgQuery__PLpgSQLType init_value = PG_QUERY__PLPG_SQL_TYPE__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_type__get_packed_size + (const PgQuery__PLpgSQLType *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_type__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_type__pack + (const PgQuery__PLpgSQLType *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_type__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_type__pack_to_buffer + (const PgQuery__PLpgSQLType *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_type__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLType * + pg_query__plpg_sql_type__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLType *) + protobuf_c_message_unpack (&pg_query__plpg_sql_type__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_type__free_unpacked + (PgQuery__PLpgSQLType *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_type__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_expr__init + (PgQuery__PLpgSQLExpr *message) +{ + static const PgQuery__PLpgSQLExpr init_value = PG_QUERY__PLPG_SQL_EXPR__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_expr__get_packed_size + (const PgQuery__PLpgSQLExpr *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_expr__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_expr__pack + (const PgQuery__PLpgSQLExpr *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_expr__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_expr__pack_to_buffer + (const PgQuery__PLpgSQLExpr *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_expr__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLExpr * + pg_query__plpg_sql_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLExpr *) + protobuf_c_message_unpack (&pg_query__plpg_sql_expr__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_expr__free_unpacked + (PgQuery__PLpgSQLExpr *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_expr__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_var__init + (PgQuery__PLpgSQLVar *message) +{ + static const PgQuery__PLpgSQLVar init_value = PG_QUERY__PLPG_SQL_VAR__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_var__get_packed_size + (const PgQuery__PLpgSQLVar *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_var__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_var__pack + (const PgQuery__PLpgSQLVar *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_var__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_var__pack_to_buffer + (const PgQuery__PLpgSQLVar *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_var__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLVar * + pg_query__plpg_sql_var__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLVar *) + protobuf_c_message_unpack (&pg_query__plpg_sql_var__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_var__free_unpacked + (PgQuery__PLpgSQLVar *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_var__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_row__init + (PgQuery__PLpgSQLRow *message) +{ + static const PgQuery__PLpgSQLRow init_value = PG_QUERY__PLPG_SQL_ROW__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_row__get_packed_size + (const PgQuery__PLpgSQLRow *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_row__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_row__pack + (const PgQuery__PLpgSQLRow *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_row__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_row__pack_to_buffer + (const PgQuery__PLpgSQLRow *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_row__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLRow * + pg_query__plpg_sql_row__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLRow *) + protobuf_c_message_unpack (&pg_query__plpg_sql_row__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_row__free_unpacked + (PgQuery__PLpgSQLRow *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_row__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_rec__init + (PgQuery__PLpgSQLRec *message) +{ + static const PgQuery__PLpgSQLRec init_value = PG_QUERY__PLPG_SQL_REC__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_rec__get_packed_size + (const PgQuery__PLpgSQLRec *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_rec__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_rec__pack + (const PgQuery__PLpgSQLRec *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_rec__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_rec__pack_to_buffer + (const PgQuery__PLpgSQLRec *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_rec__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLRec * + pg_query__plpg_sql_rec__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLRec *) + protobuf_c_message_unpack (&pg_query__plpg_sql_rec__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_rec__free_unpacked + (PgQuery__PLpgSQLRec *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_rec__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_recfield__init + (PgQuery__PLpgSQLRecfield *message) +{ + static const PgQuery__PLpgSQLRecfield init_value = PG_QUERY__PLPG_SQL_RECFIELD__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_recfield__get_packed_size + (const PgQuery__PLpgSQLRecfield *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_recfield__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_recfield__pack + (const PgQuery__PLpgSQLRecfield *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_recfield__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_recfield__pack_to_buffer + (const PgQuery__PLpgSQLRecfield *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_recfield__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLRecfield * + pg_query__plpg_sql_recfield__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLRecfield *) + protobuf_c_message_unpack (&pg_query__plpg_sql_recfield__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_recfield__free_unpacked + (PgQuery__PLpgSQLRecfield *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_recfield__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_condition__init + (PgQuery__PLpgSQLCondition *message) +{ + static const PgQuery__PLpgSQLCondition init_value = PG_QUERY__PLPG_SQL_CONDITION__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_condition__get_packed_size + (const PgQuery__PLpgSQLCondition *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_condition__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_condition__pack + (const PgQuery__PLpgSQLCondition *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_condition__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_condition__pack_to_buffer + (const PgQuery__PLpgSQLCondition *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_condition__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLCondition * + pg_query__plpg_sql_condition__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLCondition *) + protobuf_c_message_unpack (&pg_query__plpg_sql_condition__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_condition__free_unpacked + (PgQuery__PLpgSQLCondition *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_condition__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_exception_block__init + (PgQuery__PLpgSQLExceptionBlock *message) +{ + static const PgQuery__PLpgSQLExceptionBlock init_value = PG_QUERY__PLPG_SQL_EXCEPTION_BLOCK__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_exception_block__get_packed_size + (const PgQuery__PLpgSQLExceptionBlock *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_exception_block__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_exception_block__pack + (const PgQuery__PLpgSQLExceptionBlock *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_exception_block__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_exception_block__pack_to_buffer + (const PgQuery__PLpgSQLExceptionBlock *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_exception_block__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLExceptionBlock * + pg_query__plpg_sql_exception_block__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLExceptionBlock *) + protobuf_c_message_unpack (&pg_query__plpg_sql_exception_block__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_exception_block__free_unpacked + (PgQuery__PLpgSQLExceptionBlock *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_exception_block__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_exception__init + (PgQuery__PLpgSQLException *message) +{ + static const PgQuery__PLpgSQLException init_value = PG_QUERY__PLPG_SQL_EXCEPTION__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_exception__get_packed_size + (const PgQuery__PLpgSQLException *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_exception__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_exception__pack + (const PgQuery__PLpgSQLException *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_exception__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_exception__pack_to_buffer + (const PgQuery__PLpgSQLException *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_exception__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLException * + pg_query__plpg_sql_exception__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLException *) + protobuf_c_message_unpack (&pg_query__plpg_sql_exception__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_exception__free_unpacked + (PgQuery__PLpgSQLException *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_exception__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_block__init + (PgQuery__PLpgSQLStmtBlock *message) +{ + static const PgQuery__PLpgSQLStmtBlock init_value = PG_QUERY__PLPG_SQL_STMT_BLOCK__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_block__get_packed_size + (const PgQuery__PLpgSQLStmtBlock *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_block__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_block__pack + (const PgQuery__PLpgSQLStmtBlock *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_block__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_block__pack_to_buffer + (const PgQuery__PLpgSQLStmtBlock *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_block__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtBlock * + pg_query__plpg_sql_stmt_block__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtBlock *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_block__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_block__free_unpacked + (PgQuery__PLpgSQLStmtBlock *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_block__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_assign__init + (PgQuery__PLpgSQLStmtAssign *message) +{ + static const PgQuery__PLpgSQLStmtAssign init_value = PG_QUERY__PLPG_SQL_STMT_ASSIGN__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_assign__get_packed_size + (const PgQuery__PLpgSQLStmtAssign *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assign__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_assign__pack + (const PgQuery__PLpgSQLStmtAssign *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assign__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_assign__pack_to_buffer + (const PgQuery__PLpgSQLStmtAssign *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assign__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtAssign * + pg_query__plpg_sql_stmt_assign__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtAssign *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_assign__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_assign__free_unpacked + (PgQuery__PLpgSQLStmtAssign *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assign__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_perform__init + (PgQuery__PLpgSQLStmtPerform *message) +{ + static const PgQuery__PLpgSQLStmtPerform init_value = PG_QUERY__PLPG_SQL_STMT_PERFORM__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_perform__get_packed_size + (const PgQuery__PLpgSQLStmtPerform *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_perform__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_perform__pack + (const PgQuery__PLpgSQLStmtPerform *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_perform__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_perform__pack_to_buffer + (const PgQuery__PLpgSQLStmtPerform *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_perform__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtPerform * + pg_query__plpg_sql_stmt_perform__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtPerform *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_perform__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_perform__free_unpacked + (PgQuery__PLpgSQLStmtPerform *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_perform__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_call__init + (PgQuery__PLpgSQLStmtCall *message) +{ + static const PgQuery__PLpgSQLStmtCall init_value = PG_QUERY__PLPG_SQL_STMT_CALL__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_call__get_packed_size + (const PgQuery__PLpgSQLStmtCall *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_call__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_call__pack + (const PgQuery__PLpgSQLStmtCall *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_call__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_call__pack_to_buffer + (const PgQuery__PLpgSQLStmtCall *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_call__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtCall * + pg_query__plpg_sql_stmt_call__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtCall *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_call__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_call__free_unpacked + (PgQuery__PLpgSQLStmtCall *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_call__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_commit__init + (PgQuery__PLpgSQLStmtCommit *message) +{ + static const PgQuery__PLpgSQLStmtCommit init_value = PG_QUERY__PLPG_SQL_STMT_COMMIT__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_commit__get_packed_size + (const PgQuery__PLpgSQLStmtCommit *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_commit__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_commit__pack + (const PgQuery__PLpgSQLStmtCommit *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_commit__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_commit__pack_to_buffer + (const PgQuery__PLpgSQLStmtCommit *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_commit__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtCommit * + pg_query__plpg_sql_stmt_commit__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtCommit *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_commit__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_commit__free_unpacked + (PgQuery__PLpgSQLStmtCommit *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_commit__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_rollback__init + (PgQuery__PLpgSQLStmtRollback *message) +{ + static const PgQuery__PLpgSQLStmtRollback init_value = PG_QUERY__PLPG_SQL_STMT_ROLLBACK__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_rollback__get_packed_size + (const PgQuery__PLpgSQLStmtRollback *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_rollback__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_rollback__pack + (const PgQuery__PLpgSQLStmtRollback *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_rollback__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_rollback__pack_to_buffer + (const PgQuery__PLpgSQLStmtRollback *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_rollback__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtRollback * + pg_query__plpg_sql_stmt_rollback__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtRollback *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_rollback__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_rollback__free_unpacked + (PgQuery__PLpgSQLStmtRollback *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_rollback__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_diag_item__init + (PgQuery__PLpgSQLDiagItem *message) +{ + static const PgQuery__PLpgSQLDiagItem init_value = PG_QUERY__PLPG_SQL_DIAG_ITEM__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_diag_item__get_packed_size + (const PgQuery__PLpgSQLDiagItem *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_diag_item__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_diag_item__pack + (const PgQuery__PLpgSQLDiagItem *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_diag_item__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_diag_item__pack_to_buffer + (const PgQuery__PLpgSQLDiagItem *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_diag_item__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLDiagItem * + pg_query__plpg_sql_diag_item__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLDiagItem *) + protobuf_c_message_unpack (&pg_query__plpg_sql_diag_item__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_diag_item__free_unpacked + (PgQuery__PLpgSQLDiagItem *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_diag_item__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_getdiag__init + (PgQuery__PLpgSQLStmtGetdiag *message) +{ + static const PgQuery__PLpgSQLStmtGetdiag init_value = PG_QUERY__PLPG_SQL_STMT_GETDIAG__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_getdiag__get_packed_size + (const PgQuery__PLpgSQLStmtGetdiag *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_getdiag__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_getdiag__pack + (const PgQuery__PLpgSQLStmtGetdiag *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_getdiag__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_getdiag__pack_to_buffer + (const PgQuery__PLpgSQLStmtGetdiag *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_getdiag__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtGetdiag * + pg_query__plpg_sql_stmt_getdiag__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) { + return (PgQuery__PLpgSQLStmtGetdiag *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_getdiag__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_getdiag__free_unpacked + (PgQuery__PLpgSQLStmtGetdiag *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_getdiag__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_if__init + (PgQuery__PLpgSQLStmtIf *message) +{ + static const PgQuery__PLpgSQLStmtIf init_value = PG_QUERY__PLPG_SQL_STMT_IF__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_if__get_packed_size + (const PgQuery__PLpgSQLStmtIf *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_if__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_if__pack + (const PgQuery__PLpgSQLStmtIf *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_if__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_if__pack_to_buffer + (const PgQuery__PLpgSQLStmtIf *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_if__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtIf * + pg_query__plpg_sql_stmt_if__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtIf *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_if__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_if__free_unpacked + (PgQuery__PLpgSQLStmtIf *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_if__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_if_elsif__init + (PgQuery__PLpgSQLIfElsif *message) +{ + static const PgQuery__PLpgSQLIfElsif init_value = PG_QUERY__PLPG_SQL_IF_ELSIF__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_if_elsif__get_packed_size + (const PgQuery__PLpgSQLIfElsif *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_if_elsif__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_if_elsif__pack + (const PgQuery__PLpgSQLIfElsif *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_if_elsif__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_if_elsif__pack_to_buffer + (const PgQuery__PLpgSQLIfElsif *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_if_elsif__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLIfElsif * + pg_query__plpg_sql_if_elsif__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLIfElsif *) + protobuf_c_message_unpack (&pg_query__plpg_sql_if_elsif__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_if_elsif__free_unpacked + (PgQuery__PLpgSQLIfElsif *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_if_elsif__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_case__init + (PgQuery__PLpgSQLStmtCase *message) +{ + static const PgQuery__PLpgSQLStmtCase init_value = PG_QUERY__PLPG_SQL_STMT_CASE__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_case__get_packed_size + (const PgQuery__PLpgSQLStmtCase *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_case__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_case__pack + (const PgQuery__PLpgSQLStmtCase *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_case__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_case__pack_to_buffer + (const PgQuery__PLpgSQLStmtCase *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_case__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtCase * + pg_query__plpg_sql_stmt_case__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtCase *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_case__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_case__free_unpacked + (PgQuery__PLpgSQLStmtCase *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_case__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_case_when__init + (PgQuery__PLpgSQLCaseWhen *message) +{ + static const PgQuery__PLpgSQLCaseWhen init_value = PG_QUERY__PLPG_SQL_CASE_WHEN__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_case_when__get_packed_size + (const PgQuery__PLpgSQLCaseWhen *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_case_when__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_case_when__pack + (const PgQuery__PLpgSQLCaseWhen *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_case_when__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_case_when__pack_to_buffer + (const PgQuery__PLpgSQLCaseWhen *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_case_when__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLCaseWhen * + pg_query__plpg_sql_case_when__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLCaseWhen *) + protobuf_c_message_unpack (&pg_query__plpg_sql_case_when__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_case_when__free_unpacked + (PgQuery__PLpgSQLCaseWhen *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_case_when__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_loop__init + (PgQuery__PLpgSQLStmtLoop *message) +{ + static const PgQuery__PLpgSQLStmtLoop init_value = PG_QUERY__PLPG_SQL_STMT_LOOP__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_loop__get_packed_size + (const PgQuery__PLpgSQLStmtLoop *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_loop__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_loop__pack + (const PgQuery__PLpgSQLStmtLoop *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_loop__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_loop__pack_to_buffer + (const PgQuery__PLpgSQLStmtLoop *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_loop__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtLoop * + pg_query__plpg_sql_stmt_loop__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtLoop *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_loop__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_loop__free_unpacked + (PgQuery__PLpgSQLStmtLoop *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_loop__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_while__init + (PgQuery__PLpgSQLStmtWhile *message) +{ + static const PgQuery__PLpgSQLStmtWhile init_value = PG_QUERY__PLPG_SQL_STMT_WHILE__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_while__get_packed_size + (const PgQuery__PLpgSQLStmtWhile *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_while__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_while__pack + (const PgQuery__PLpgSQLStmtWhile *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_while__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_while__pack_to_buffer + (const PgQuery__PLpgSQLStmtWhile *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_while__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtWhile * + pg_query__plpg_sql_stmt_while__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtWhile *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_while__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_while__free_unpacked + (PgQuery__PLpgSQLStmtWhile *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_while__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_fori__init + (PgQuery__PLpgSQLStmtFori *message) +{ + static const PgQuery__PLpgSQLStmtFori init_value = PG_QUERY__PLPG_SQL_STMT_FORI__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_fori__get_packed_size + (const PgQuery__PLpgSQLStmtFori *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fori__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_fori__pack + (const PgQuery__PLpgSQLStmtFori *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fori__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_fori__pack_to_buffer + (const PgQuery__PLpgSQLStmtFori *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fori__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtFori * + pg_query__plpg_sql_stmt_fori__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtFori *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_fori__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_fori__free_unpacked + (PgQuery__PLpgSQLStmtFori *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fori__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_fors__init + (PgQuery__PLpgSQLStmtFors *message) +{ + static const PgQuery__PLpgSQLStmtFors init_value = PG_QUERY__PLPG_SQL_STMT_FORS__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_fors__get_packed_size + (const PgQuery__PLpgSQLStmtFors *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fors__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_fors__pack + (const PgQuery__PLpgSQLStmtFors *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fors__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_fors__pack_to_buffer + (const PgQuery__PLpgSQLStmtFors *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fors__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtFors * + pg_query__plpg_sql_stmt_fors__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtFors *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_fors__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_fors__free_unpacked + (PgQuery__PLpgSQLStmtFors *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fors__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_forc__init + (PgQuery__PLpgSQLStmtForc *message) +{ + static const PgQuery__PLpgSQLStmtForc init_value = PG_QUERY__PLPG_SQL_STMT_FORC__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_forc__get_packed_size + (const PgQuery__PLpgSQLStmtForc *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_forc__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_forc__pack + (const PgQuery__PLpgSQLStmtForc *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_forc__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_forc__pack_to_buffer + (const PgQuery__PLpgSQLStmtForc *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_forc__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtForc * + pg_query__plpg_sql_stmt_forc__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtForc *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_forc__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_forc__free_unpacked + (PgQuery__PLpgSQLStmtForc *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_forc__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_dynfors__init + (PgQuery__PLpgSQLStmtDynfors *message) +{ + static const PgQuery__PLpgSQLStmtDynfors init_value = PG_QUERY__PLPG_SQL_STMT_DYNFORS__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_dynfors__get_packed_size + (const PgQuery__PLpgSQLStmtDynfors *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynfors__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_dynfors__pack + (const PgQuery__PLpgSQLStmtDynfors *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynfors__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_dynfors__pack_to_buffer + (const PgQuery__PLpgSQLStmtDynfors *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynfors__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtDynfors * + pg_query__plpg_sql_stmt_dynfors__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtDynfors *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_dynfors__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_dynfors__free_unpacked + (PgQuery__PLpgSQLStmtDynfors *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynfors__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_foreach_a__init + (PgQuery__PLpgSQLStmtForeachA *message) +{ + static const PgQuery__PLpgSQLStmtForeachA init_value = PG_QUERY__PLPG_SQL_STMT_FOREACH_A__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_foreach_a__get_packed_size + (const PgQuery__PLpgSQLStmtForeachA *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_foreach_a__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_foreach_a__pack + (const PgQuery__PLpgSQLStmtForeachA *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_foreach_a__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_foreach_a__pack_to_buffer + (const PgQuery__PLpgSQLStmtForeachA *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_foreach_a__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtForeachA * + pg_query__plpg_sql_stmt_foreach_a__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtForeachA *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_foreach_a__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_foreach_a__free_unpacked + (PgQuery__PLpgSQLStmtForeachA *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_foreach_a__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_open__init + (PgQuery__PLpgSQLStmtOpen *message) +{ + static const PgQuery__PLpgSQLStmtOpen init_value = PG_QUERY__PLPG_SQL_STMT_OPEN__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_open__get_packed_size + (const PgQuery__PLpgSQLStmtOpen *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_open__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_open__pack + (const PgQuery__PLpgSQLStmtOpen *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_open__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_open__pack_to_buffer + (const PgQuery__PLpgSQLStmtOpen *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_open__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtOpen * + pg_query__plpg_sql_stmt_open__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtOpen *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_open__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_open__free_unpacked + (PgQuery__PLpgSQLStmtOpen *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_open__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_fetch__init + (PgQuery__PLpgSQLStmtFetch *message) +{ + static const PgQuery__PLpgSQLStmtFetch init_value = PG_QUERY__PLPG_SQL_STMT_FETCH__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_fetch__get_packed_size + (const PgQuery__PLpgSQLStmtFetch *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fetch__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_fetch__pack + (const PgQuery__PLpgSQLStmtFetch *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fetch__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_fetch__pack_to_buffer + (const PgQuery__PLpgSQLStmtFetch *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fetch__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtFetch * + pg_query__plpg_sql_stmt_fetch__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtFetch *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_fetch__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_fetch__free_unpacked + (PgQuery__PLpgSQLStmtFetch *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_fetch__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_close__init + (PgQuery__PLpgSQLStmtClose *message) +{ + static const PgQuery__PLpgSQLStmtClose init_value = PG_QUERY__PLPG_SQL_STMT_CLOSE__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_close__get_packed_size + (const PgQuery__PLpgSQLStmtClose *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_close__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_close__pack + (const PgQuery__PLpgSQLStmtClose *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_close__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_close__pack_to_buffer + (const PgQuery__PLpgSQLStmtClose *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_close__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtClose * + pg_query__plpg_sql_stmt_close__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtClose *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_close__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_close__free_unpacked + (PgQuery__PLpgSQLStmtClose *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_close__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_exit__init + (PgQuery__PLpgSQLStmtExit *message) +{ + static const PgQuery__PLpgSQLStmtExit init_value = PG_QUERY__PLPG_SQL_STMT_EXIT__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_exit__get_packed_size + (const PgQuery__PLpgSQLStmtExit *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_exit__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_exit__pack + (const PgQuery__PLpgSQLStmtExit *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_exit__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_exit__pack_to_buffer + (const PgQuery__PLpgSQLStmtExit *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_exit__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtExit * + pg_query__plpg_sql_stmt_exit__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtExit *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_exit__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_exit__free_unpacked + (PgQuery__PLpgSQLStmtExit *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_exit__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_return__init + (PgQuery__PLpgSQLStmtReturn *message) +{ + static const PgQuery__PLpgSQLStmtReturn init_value = PG_QUERY__PLPG_SQL_STMT_RETURN__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_return__get_packed_size + (const PgQuery__PLpgSQLStmtReturn *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_return__pack + (const PgQuery__PLpgSQLStmtReturn *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_return__pack_to_buffer + (const PgQuery__PLpgSQLStmtReturn *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtReturn * + pg_query__plpg_sql_stmt_return__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtReturn *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_return__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_return__free_unpacked + (PgQuery__PLpgSQLStmtReturn *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_return_next__init + (PgQuery__PLpgSQLStmtReturnNext *message) +{ + static const PgQuery__PLpgSQLStmtReturnNext init_value = PG_QUERY__PLPG_SQL_STMT_RETURN_NEXT__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_return_next__get_packed_size + (const PgQuery__PLpgSQLStmtReturnNext *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_next__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_return_next__pack + (const PgQuery__PLpgSQLStmtReturnNext *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_next__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_return_next__pack_to_buffer + (const PgQuery__PLpgSQLStmtReturnNext *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_next__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtReturnNext * + pg_query__plpg_sql_stmt_return_next__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtReturnNext *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_return_next__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_return_next__free_unpacked + (PgQuery__PLpgSQLStmtReturnNext *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_next__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_return_query__init + (PgQuery__PLpgSQLStmtReturnQuery *message) +{ + static const PgQuery__PLpgSQLStmtReturnQuery init_value = PG_QUERY__PLPG_SQL_STMT_RETURN_QUERY__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_return_query__get_packed_size + (const PgQuery__PLpgSQLStmtReturnQuery *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_query__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_return_query__pack + (const PgQuery__PLpgSQLStmtReturnQuery *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_query__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_return_query__pack_to_buffer + (const PgQuery__PLpgSQLStmtReturnQuery *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_query__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtReturnQuery * + pg_query__plpg_sql_stmt_return_query__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtReturnQuery *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_return_query__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_return_query__free_unpacked + (PgQuery__PLpgSQLStmtReturnQuery *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_return_query__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_raise__init + (PgQuery__PLpgSQLStmtRaise *message) +{ + static const PgQuery__PLpgSQLStmtRaise init_value = PG_QUERY__PLPG_SQL_STMT_RAISE__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_raise__get_packed_size + (const PgQuery__PLpgSQLStmtRaise *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_raise__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_raise__pack + (const PgQuery__PLpgSQLStmtRaise *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_raise__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_raise__pack_to_buffer + (const PgQuery__PLpgSQLStmtRaise *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_raise__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtRaise * + pg_query__plpg_sql_stmt_raise__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtRaise *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_raise__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_raise__free_unpacked + (PgQuery__PLpgSQLStmtRaise *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_raise__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_raise_option__init + (PgQuery__PLpgSQLRaiseOption *message) +{ + static const PgQuery__PLpgSQLRaiseOption init_value = PG_QUERY__PLPG_SQL_RAISE_OPTION__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_raise_option__get_packed_size + (const PgQuery__PLpgSQLRaiseOption *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_raise_option__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_raise_option__pack + (const PgQuery__PLpgSQLRaiseOption *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_raise_option__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_raise_option__pack_to_buffer + (const PgQuery__PLpgSQLRaiseOption *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_raise_option__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLRaiseOption * + pg_query__plpg_sql_raise_option__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLRaiseOption *) + protobuf_c_message_unpack (&pg_query__plpg_sql_raise_option__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_raise_option__free_unpacked + (PgQuery__PLpgSQLRaiseOption *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_raise_option__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_assert__init + (PgQuery__PLpgSQLStmtAssert *message) +{ + static const PgQuery__PLpgSQLStmtAssert init_value = PG_QUERY__PLPG_SQL_STMT_ASSERT__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_assert__get_packed_size + (const PgQuery__PLpgSQLStmtAssert *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assert__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_assert__pack + (const PgQuery__PLpgSQLStmtAssert *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assert__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_assert__pack_to_buffer + (const PgQuery__PLpgSQLStmtAssert *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assert__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtAssert * + pg_query__plpg_sql_stmt_assert__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtAssert *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_assert__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_assert__free_unpacked + (PgQuery__PLpgSQLStmtAssert *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_assert__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_execsql__init + (PgQuery__PLpgSQLStmtExecsql *message) +{ + static const PgQuery__PLpgSQLStmtExecsql init_value = PG_QUERY__PLPG_SQL_STMT_EXECSQL__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_execsql__get_packed_size + (const PgQuery__PLpgSQLStmtExecsql *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_execsql__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_execsql__pack + (const PgQuery__PLpgSQLStmtExecsql *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_execsql__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_execsql__pack_to_buffer + (const PgQuery__PLpgSQLStmtExecsql *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_execsql__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtExecsql * + pg_query__plpg_sql_stmt_execsql__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtExecsql *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_execsql__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_execsql__free_unpacked + (PgQuery__PLpgSQLStmtExecsql *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_execsql__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_stmt_dynexecute__init + (PgQuery__PLpgSQLStmtDynexecute *message) +{ + static const PgQuery__PLpgSQLStmtDynexecute init_value = PG_QUERY__PLPG_SQL_STMT_DYNEXECUTE__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_stmt_dynexecute__get_packed_size + (const PgQuery__PLpgSQLStmtDynexecute *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynexecute__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_stmt_dynexecute__pack + (const PgQuery__PLpgSQLStmtDynexecute *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynexecute__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_stmt_dynexecute__pack_to_buffer + (const PgQuery__PLpgSQLStmtDynexecute *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynexecute__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLStmtDynexecute * + pg_query__plpg_sql_stmt_dynexecute__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLStmtDynexecute *) + protobuf_c_message_unpack (&pg_query__plpg_sql_stmt_dynexecute__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_stmt_dynexecute__free_unpacked + (PgQuery__PLpgSQLStmtDynexecute *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_stmt_dynexecute__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void pg_query__plpg_sql_function__init + (PgQuery__PLpgSQLFunction *message) +{ + static const PgQuery__PLpgSQLFunction init_value = PG_QUERY__PLPG_SQL_FUNCTION__INIT; + *message = init_value; +} +size_t pg_query__plpg_sql_function__get_packed_size + (const PgQuery__PLpgSQLFunction *message) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_function__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t pg_query__plpg_sql_function__pack + (const PgQuery__PLpgSQLFunction *message, + uint8_t *out) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_function__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t pg_query__plpg_sql_function__pack_to_buffer + (const PgQuery__PLpgSQLFunction *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &pg_query__plpg_sql_function__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +PgQuery__PLpgSQLFunction * + pg_query__plpg_sql_function__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (PgQuery__PLpgSQLFunction *) + protobuf_c_message_unpack (&pg_query__plpg_sql_function__descriptor, + allocator, len, data); +} +void pg_query__plpg_sql_function__free_unpacked + (PgQuery__PLpgSQLFunction *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &pg_query__plpg_sql_function__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor pg_query__parse_result__field_descriptors[2] = +{ + { + "version", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ParseResult, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "stmts", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ParseResult, n_stmts), + offsetof(PgQuery__ParseResult, stmts), + &pg_query__raw_stmt__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__parse_result__field_indices_by_name[] = { + 1, /* field[1] = stmts */ + 0, /* field[0] = version */ +}; +static const ProtobufCIntRange pg_query__parse_result__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__parse_result__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ParseResult", + "ParseResult", + "PgQuery__ParseResult", + "pg_query", + sizeof(PgQuery__ParseResult), + 2, + pg_query__parse_result__field_descriptors, + pg_query__parse_result__field_indices_by_name, + 1, pg_query__parse_result__number_ranges, + (ProtobufCMessageInit) pg_query__parse_result__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__scan_result__field_descriptors[2] = +{ + { + "version", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScanResult, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "tokens", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ScanResult, n_tokens), + offsetof(PgQuery__ScanResult, tokens), + &pg_query__scan_token__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__scan_result__field_indices_by_name[] = { + 1, /* field[1] = tokens */ + 0, /* field[0] = version */ +}; +static const ProtobufCIntRange pg_query__scan_result__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__scan_result__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ScanResult", + "ScanResult", + "PgQuery__ScanResult", + "pg_query", + sizeof(PgQuery__ScanResult), + 2, + pg_query__scan_result__field_descriptors, + pg_query__scan_result__field_indices_by_name, + 1, pg_query__scan_result__number_ranges, + (ProtobufCMessageInit) pg_query__scan_result__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__node__field_descriptors[268] = +{ + { + "alias", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alias), + &pg_query__alias__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_var", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_var), + &pg_query__range_var__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "table_func", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, table_func), + &pg_query__table_func__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "into_clause", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, into_clause), + &pg_query__into_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "var", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, var), + &pg_query__var__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "param", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, param), + &pg_query__param__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "aggref", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, aggref), + &pg_query__aggref__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "grouping_func", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, grouping_func), + &pg_query__grouping_func__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "window_func", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, window_func), + &pg_query__window_func__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "window_func_run_condition", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, window_func_run_condition), + &pg_query__window_func_run_condition__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "merge_support_func", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, merge_support_func), + &pg_query__merge_support_func__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "subscripting_ref", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, subscripting_ref), + &pg_query__subscripting_ref__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "func_expr", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, func_expr), + &pg_query__func_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "named_arg_expr", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, named_arg_expr), + &pg_query__named_arg_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "op_expr", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, op_expr), + &pg_query__op_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "distinct_expr", + 16, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, distinct_expr), + &pg_query__distinct_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "null_if_expr", + 17, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, null_if_expr), + &pg_query__null_if_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "scalar_array_op_expr", + 18, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, scalar_array_op_expr), + &pg_query__scalar_array_op_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "bool_expr", + 19, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, bool_expr), + &pg_query__bool_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sub_link", + 20, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, sub_link), + &pg_query__sub_link__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sub_plan", + 21, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, sub_plan), + &pg_query__sub_plan__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alternative_sub_plan", + 22, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alternative_sub_plan), + &pg_query__alternative_sub_plan__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "field_select", + 23, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, field_select), + &pg_query__field_select__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "field_store", + 24, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, field_store), + &pg_query__field_store__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "relabel_type", + 25, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, relabel_type), + &pg_query__relabel_type__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coerce_via_io", + 26, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, coerce_via_io), + &pg_query__coerce_via_io__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "array_coerce_expr", + 27, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, array_coerce_expr), + &pg_query__array_coerce_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "convert_rowtype_expr", + 28, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, convert_rowtype_expr), + &pg_query__convert_rowtype_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "collate_expr", + 29, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, collate_expr), + &pg_query__collate_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "case_expr", + 30, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, case_expr), + &pg_query__case_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "case_when", + 31, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, case_when), + &pg_query__case_when__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "case_test_expr", + 32, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, case_test_expr), + &pg_query__case_test_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "array_expr", + 33, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, array_expr), + &pg_query__array_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "row_expr", + 34, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, row_expr), + &pg_query__row_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "row_compare_expr", + 35, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, row_compare_expr), + &pg_query__row_compare_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coalesce_expr", + 36, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, coalesce_expr), + &pg_query__coalesce_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "min_max_expr", + 37, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, min_max_expr), + &pg_query__min_max_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sqlvalue_function", + 38, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, sqlvalue_function), + &pg_query__sqlvalue_function__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "xml_expr", + 39, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, xml_expr), + &pg_query__xml_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_format", + 40, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_format), + &pg_query__json_format__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_returning", + 41, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_returning), + &pg_query__json_returning__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_value_expr", + 42, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_value_expr), + &pg_query__json_value_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_constructor_expr", + 43, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_constructor_expr), + &pg_query__json_constructor_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_is_predicate", + 44, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_is_predicate), + &pg_query__json_is_predicate__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_behavior", + 45, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_behavior), + &pg_query__json_behavior__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_expr", + 46, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_expr), + &pg_query__json_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_table_path", + 47, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_table_path), + &pg_query__json_table_path__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_table_path_scan", + 48, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_table_path_scan), + &pg_query__json_table_path_scan__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_table_sibling_join", + 49, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_table_sibling_join), + &pg_query__json_table_sibling_join__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "null_test", + 50, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, null_test), + &pg_query__null_test__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "boolean_test", + 51, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, boolean_test), + &pg_query__boolean_test__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "merge_action", + 52, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, merge_action), + &pg_query__merge_action__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coerce_to_domain", + 53, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, coerce_to_domain), + &pg_query__coerce_to_domain__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coerce_to_domain_value", + 54, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, coerce_to_domain_value), + &pg_query__coerce_to_domain_value__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "set_to_default", + 55, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, set_to_default), + &pg_query__set_to_default__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "current_of_expr", + 56, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, current_of_expr), + &pg_query__current_of_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "next_value_expr", + 57, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, next_value_expr), + &pg_query__next_value_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "inference_elem", + 58, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, inference_elem), + &pg_query__inference_elem__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "target_entry", + 59, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, target_entry), + &pg_query__target_entry__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_tbl_ref", + 60, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_tbl_ref), + &pg_query__range_tbl_ref__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "join_expr", + 61, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, join_expr), + &pg_query__join_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "from_expr", + 62, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, from_expr), + &pg_query__from_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "on_conflict_expr", + 63, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, on_conflict_expr), + &pg_query__on_conflict_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "query", + 64, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, query), + &pg_query__query__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "type_name", + 65, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, type_name), + &pg_query__type_name__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "column_ref", + 66, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, column_ref), + &pg_query__column_ref__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "param_ref", + 67, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, param_ref), + &pg_query__param_ref__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "a_expr", + 68, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, a_expr), + &pg_query__a__expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "type_cast", + 69, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, type_cast), + &pg_query__type_cast__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "collate_clause", + 70, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, collate_clause), + &pg_query__collate_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "role_spec", + 71, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, role_spec), + &pg_query__role_spec__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "func_call", + 72, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, func_call), + &pg_query__func_call__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "a_star", + 73, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, a_star), + &pg_query__a__star__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "a_indices", + 74, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, a_indices), + &pg_query__a__indices__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "a_indirection", + 75, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, a_indirection), + &pg_query__a__indirection__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "a_array_expr", + 76, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, a_array_expr), + &pg_query__a__array_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "res_target", + 77, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, res_target), + &pg_query__res_target__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "multi_assign_ref", + 78, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, multi_assign_ref), + &pg_query__multi_assign_ref__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sort_by", + 79, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, sort_by), + &pg_query__sort_by__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "window_def", + 80, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, window_def), + &pg_query__window_def__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_subselect", + 81, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_subselect), + &pg_query__range_subselect__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_function", + 82, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_function), + &pg_query__range_function__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_table_func", + 83, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_table_func), + &pg_query__range_table_func__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_table_func_col", + 84, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_table_func_col), + &pg_query__range_table_func_col__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_table_sample", + 85, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_table_sample), + &pg_query__range_table_sample__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "column_def", + 86, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, column_def), + &pg_query__column_def__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "table_like_clause", + 87, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, table_like_clause), + &pg_query__table_like_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "index_elem", + 88, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, index_elem), + &pg_query__index_elem__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "def_elem", + 89, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, def_elem), + &pg_query__def_elem__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "locking_clause", + 90, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, locking_clause), + &pg_query__locking_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "xml_serialize", + 91, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, xml_serialize), + &pg_query__xml_serialize__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "partition_elem", + 92, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, partition_elem), + &pg_query__partition_elem__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "partition_spec", + 93, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, partition_spec), + &pg_query__partition_spec__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "partition_bound_spec", + 94, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, partition_bound_spec), + &pg_query__partition_bound_spec__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "partition_range_datum", + 95, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, partition_range_datum), + &pg_query__partition_range_datum__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "single_partition_spec", + 96, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, single_partition_spec), + &pg_query__single_partition_spec__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "partition_cmd", + 97, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, partition_cmd), + &pg_query__partition_cmd__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_tbl_entry", + 98, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_tbl_entry), + &pg_query__range_tbl_entry__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "rtepermission_info", + 99, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, rtepermission_info), + &pg_query__rtepermission_info__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_tbl_function", + 100, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, range_tbl_function), + &pg_query__range_tbl_function__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "table_sample_clause", + 101, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, table_sample_clause), + &pg_query__table_sample_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "with_check_option", + 102, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, with_check_option), + &pg_query__with_check_option__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sort_group_clause", + 103, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, sort_group_clause), + &pg_query__sort_group_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "grouping_set", + 104, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, grouping_set), + &pg_query__grouping_set__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "window_clause", + 105, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, window_clause), + &pg_query__window_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "row_mark_clause", + 106, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, row_mark_clause), + &pg_query__row_mark_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "with_clause", + 107, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, with_clause), + &pg_query__with_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "infer_clause", + 108, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, infer_clause), + &pg_query__infer_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "on_conflict_clause", + 109, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, on_conflict_clause), + &pg_query__on_conflict_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ctesearch_clause", + 110, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, ctesearch_clause), + &pg_query__ctesearch_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ctecycle_clause", + 111, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, ctecycle_clause), + &pg_query__ctecycle_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "common_table_expr", + 112, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, common_table_expr), + &pg_query__common_table_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "merge_when_clause", + 113, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, merge_when_clause), + &pg_query__merge_when_clause__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "trigger_transition", + 114, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, trigger_transition), + &pg_query__trigger_transition__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_output", + 115, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_output), + &pg_query__json_output__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_argument", + 116, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_argument), + &pg_query__json_argument__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_func_expr", + 117, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_func_expr), + &pg_query__json_func_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_table_path_spec", + 118, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_table_path_spec), + &pg_query__json_table_path_spec__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_table", + 119, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_table), + &pg_query__json_table__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_table_column", + 120, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_table_column), + &pg_query__json_table_column__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_key_value", + 121, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_key_value), + &pg_query__json_key_value__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_parse_expr", + 122, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_parse_expr), + &pg_query__json_parse_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_scalar_expr", + 123, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_scalar_expr), + &pg_query__json_scalar_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_serialize_expr", + 124, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_serialize_expr), + &pg_query__json_serialize_expr__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_object_constructor", + 125, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_object_constructor), + &pg_query__json_object_constructor__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_array_constructor", + 126, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_array_constructor), + &pg_query__json_array_constructor__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_array_query_constructor", + 127, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_array_query_constructor), + &pg_query__json_array_query_constructor__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_agg_constructor", + 128, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_agg_constructor), + &pg_query__json_agg_constructor__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_object_agg", + 129, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_object_agg), + &pg_query__json_object_agg__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "json_array_agg", + 130, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, json_array_agg), + &pg_query__json_array_agg__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "raw_stmt", + 131, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, raw_stmt), + &pg_query__raw_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "insert_stmt", + 132, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, insert_stmt), + &pg_query__insert_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "delete_stmt", + 133, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, delete_stmt), + &pg_query__delete_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "update_stmt", + 134, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, update_stmt), + &pg_query__update_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "merge_stmt", + 135, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, merge_stmt), + &pg_query__merge_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "select_stmt", + 136, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, select_stmt), + &pg_query__select_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "set_operation_stmt", + 137, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, set_operation_stmt), + &pg_query__set_operation_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "return_stmt", + 138, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, return_stmt), + &pg_query__return_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "plassign_stmt", + 139, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, plassign_stmt), + &pg_query__plassign_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_schema_stmt", + 140, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_schema_stmt), + &pg_query__create_schema_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_table_stmt", + 141, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_table_stmt), + &pg_query__alter_table_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "replica_identity_stmt", + 142, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, replica_identity_stmt), + &pg_query__replica_identity_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_table_cmd", + 143, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_table_cmd), + &pg_query__alter_table_cmd__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_collation_stmt", + 144, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_collation_stmt), + &pg_query__alter_collation_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_domain_stmt", + 145, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_domain_stmt), + &pg_query__alter_domain_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "grant_stmt", + 146, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, grant_stmt), + &pg_query__grant_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "object_with_args", + 147, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, object_with_args), + &pg_query__object_with_args__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "access_priv", + 148, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, access_priv), + &pg_query__access_priv__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "grant_role_stmt", + 149, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, grant_role_stmt), + &pg_query__grant_role_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_default_privileges_stmt", + 150, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_default_privileges_stmt), + &pg_query__alter_default_privileges_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "copy_stmt", + 151, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, copy_stmt), + &pg_query__copy_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "variable_set_stmt", + 152, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, variable_set_stmt), + &pg_query__variable_set_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "variable_show_stmt", + 153, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, variable_show_stmt), + &pg_query__variable_show_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_stmt", + 154, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_stmt), + &pg_query__create_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "constraint", + 155, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, constraint), + &pg_query__constraint__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_table_space_stmt", + 156, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_table_space_stmt), + &pg_query__create_table_space_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "drop_table_space_stmt", + 157, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, drop_table_space_stmt), + &pg_query__drop_table_space_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_table_space_options_stmt", + 158, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_table_space_options_stmt), + &pg_query__alter_table_space_options_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_table_move_all_stmt", + 159, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_table_move_all_stmt), + &pg_query__alter_table_move_all_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_extension_stmt", + 160, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_extension_stmt), + &pg_query__create_extension_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_extension_stmt", + 161, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_extension_stmt), + &pg_query__alter_extension_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_extension_contents_stmt", + 162, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_extension_contents_stmt), + &pg_query__alter_extension_contents_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_fdw_stmt", + 163, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_fdw_stmt), + &pg_query__create_fdw_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_fdw_stmt", + 164, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_fdw_stmt), + &pg_query__alter_fdw_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_foreign_server_stmt", + 165, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_foreign_server_stmt), + &pg_query__create_foreign_server_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_foreign_server_stmt", + 166, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_foreign_server_stmt), + &pg_query__alter_foreign_server_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_foreign_table_stmt", + 167, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_foreign_table_stmt), + &pg_query__create_foreign_table_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, { - "version", - 1, + "create_user_mapping_stmt", + 168, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__ParseResult, version), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_user_mapping_stmt), + &pg_query__create_user_mapping_stmt__descriptor, NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_user_mapping_stmt", + 169, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_user_mapping_stmt), + &pg_query__alter_user_mapping_stmt__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stmts", - 2, - PROTOBUF_C_LABEL_REPEATED, + "drop_user_mapping_stmt", + 170, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ParseResult, n_stmts), - offsetof(PgQuery__ParseResult, stmts), - &pg_query__raw_stmt__descriptor, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, drop_user_mapping_stmt), + &pg_query__drop_user_mapping_stmt__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__parse_result__field_indices_by_name[] = { - 1, /* field[1] = stmts */ - 0, /* field[0] = version */ -}; -static const ProtobufCIntRange pg_query__parse_result__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__parse_result__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ParseResult", - "ParseResult", - "PgQuery__ParseResult", - "pg_query", - sizeof(PgQuery__ParseResult), - 2, - pg_query__parse_result__field_descriptors, - pg_query__parse_result__field_indices_by_name, - 1, pg_query__parse_result__number_ranges, - (ProtobufCMessageInit) pg_query__parse_result__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__scan_result__field_descriptors[2] = -{ { - "version", - 1, + "import_foreign_schema_stmt", + 171, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__ScanResult, version), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, import_foreign_schema_stmt), + &pg_query__import_foreign_schema_stmt__descriptor, NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_policy_stmt", + 172, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_policy_stmt), + &pg_query__create_policy_stmt__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tokens", - 2, - PROTOBUF_C_LABEL_REPEATED, + "alter_policy_stmt", + 173, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ScanResult, n_tokens), - offsetof(PgQuery__ScanResult, tokens), - &pg_query__scan_token__descriptor, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_policy_stmt), + &pg_query__alter_policy_stmt__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__scan_result__field_indices_by_name[] = { - 1, /* field[1] = tokens */ - 0, /* field[0] = version */ -}; -static const ProtobufCIntRange pg_query__scan_result__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__scan_result__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ScanResult", - "ScanResult", - "PgQuery__ScanResult", - "pg_query", - sizeof(PgQuery__ScanResult), - 2, - pg_query__scan_result__field_descriptors, - pg_query__scan_result__field_indices_by_name, - 1, pg_query__scan_result__number_ranges, - (ProtobufCMessageInit) pg_query__scan_result__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__node__field_descriptors[268] = -{ { - "alias", - 1, + "create_am_stmt", + 174, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__Node, create_am_stmt), + &pg_query__create_am_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "range_var", - 2, + "create_trig_stmt", + 175, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_var), - &pg_query__range_var__descriptor, + offsetof(PgQuery__Node, create_trig_stmt), + &pg_query__create_trig_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_func", - 3, + "create_event_trig_stmt", + 176, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, table_func), - &pg_query__table_func__descriptor, + offsetof(PgQuery__Node, create_event_trig_stmt), + &pg_query__create_event_trig_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "into_clause", - 4, + "alter_event_trig_stmt", + 177, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, into_clause), - &pg_query__into_clause__descriptor, + offsetof(PgQuery__Node, alter_event_trig_stmt), + &pg_query__alter_event_trig_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "var", - 5, + "create_plang_stmt", + 178, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, var), - &pg_query__var__descriptor, + offsetof(PgQuery__Node, create_plang_stmt), + &pg_query__create_plang_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "param", - 6, + "create_role_stmt", + 179, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, param), - &pg_query__param__descriptor, + offsetof(PgQuery__Node, create_role_stmt), + &pg_query__create_role_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggref", - 7, + "alter_role_stmt", + 180, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, aggref), - &pg_query__aggref__descriptor, + offsetof(PgQuery__Node, alter_role_stmt), + &pg_query__alter_role_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grouping_func", - 8, + "alter_role_set_stmt", + 181, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, grouping_func), - &pg_query__grouping_func__descriptor, + offsetof(PgQuery__Node, alter_role_set_stmt), + &pg_query__alter_role_set_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "window_func", - 9, + "drop_role_stmt", + 182, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, window_func), - &pg_query__window_func__descriptor, + offsetof(PgQuery__Node, drop_role_stmt), + &pg_query__drop_role_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "window_func_run_condition", - 10, + "create_seq_stmt", + 183, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, window_func_run_condition), - &pg_query__window_func_run_condition__descriptor, + offsetof(PgQuery__Node, create_seq_stmt), + &pg_query__create_seq_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_support_func", - 11, + "alter_seq_stmt", + 184, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, merge_support_func), - &pg_query__merge_support_func__descriptor, + offsetof(PgQuery__Node, alter_seq_stmt), + &pg_query__alter_seq_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "subscripting_ref", - 12, + "define_stmt", + 185, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, subscripting_ref), - &pg_query__subscripting_ref__descriptor, + offsetof(PgQuery__Node, define_stmt), + &pg_query__define_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func_expr", - 13, + "create_domain_stmt", + 186, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, func_expr), - &pg_query__func_expr__descriptor, + offsetof(PgQuery__Node, create_domain_stmt), + &pg_query__create_domain_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "named_arg_expr", - 14, + "create_op_class_stmt", + 187, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, named_arg_expr), - &pg_query__named_arg_expr__descriptor, + offsetof(PgQuery__Node, create_op_class_stmt), + &pg_query__create_op_class_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_op_class_item", + 188, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_op_class_item), + &pg_query__create_op_class_item__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_op_family_stmt", + 189, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_op_family_stmt), + &pg_query__create_op_family_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_op_family_stmt", + 190, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_op_family_stmt), + &pg_query__alter_op_family_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "drop_stmt", + 191, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, drop_stmt), + &pg_query__drop_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "truncate_stmt", + 192, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, truncate_stmt), + &pg_query__truncate_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "comment_stmt", + 193, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, comment_stmt), + &pg_query__comment_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sec_label_stmt", + 194, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, sec_label_stmt), + &pg_query__sec_label_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "declare_cursor_stmt", + 195, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, declare_cursor_stmt), + &pg_query__declare_cursor_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "close_portal_stmt", + 196, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, close_portal_stmt), + &pg_query__close_portal_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "fetch_stmt", + 197, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, fetch_stmt), + &pg_query__fetch_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "index_stmt", + 198, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, index_stmt), + &pg_query__index_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_stats_stmt", + 199, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_stats_stmt), + &pg_query__create_stats_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "stats_elem", + 200, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, stats_elem), + &pg_query__stats_elem__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_stats_stmt", + 201, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_stats_stmt), + &pg_query__alter_stats_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "create_function_stmt", + 202, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, create_function_stmt), + &pg_query__create_function_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "function_parameter", + 203, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, function_parameter), + &pg_query__function_parameter__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alter_function_stmt", + 204, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, alter_function_stmt), + &pg_query__alter_function_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "do_stmt", + 205, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, do_stmt), + &pg_query__do_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "inline_code_block", + 206, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, inline_code_block), + &pg_query__inline_code_block__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "call_stmt", + 207, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, call_stmt), + &pg_query__call_stmt__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "call_context", + 208, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, call_context), + &pg_query__call_context__descriptor, + NULL, + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "rename_stmt", + 209, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Node, node_case), + offsetof(PgQuery__Node, rename_stmt), + &pg_query__rename_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "op_expr", - 15, + "alter_object_depends_stmt", + 210, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, op_expr), - &pg_query__op_expr__descriptor, + offsetof(PgQuery__Node, alter_object_depends_stmt), + &pg_query__alter_object_depends_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "distinct_expr", - 16, + "alter_object_schema_stmt", + 211, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, distinct_expr), - &pg_query__distinct_expr__descriptor, + offsetof(PgQuery__Node, alter_object_schema_stmt), + &pg_query__alter_object_schema_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "null_if_expr", - 17, + "alter_owner_stmt", + 212, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, null_if_expr), - &pg_query__null_if_expr__descriptor, + offsetof(PgQuery__Node, alter_owner_stmt), + &pg_query__alter_owner_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "scalar_array_op_expr", - 18, + "alter_operator_stmt", + 213, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, scalar_array_op_expr), - &pg_query__scalar_array_op_expr__descriptor, + offsetof(PgQuery__Node, alter_operator_stmt), + &pg_query__alter_operator_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "bool_expr", - 19, + "alter_type_stmt", + 214, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, bool_expr), - &pg_query__bool_expr__descriptor, + offsetof(PgQuery__Node, alter_type_stmt), + &pg_query__alter_type_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sub_link", - 20, + "rule_stmt", + 215, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, sub_link), - &pg_query__sub_link__descriptor, + offsetof(PgQuery__Node, rule_stmt), + &pg_query__rule_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sub_plan", - 21, + "notify_stmt", + 216, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, sub_plan), - &pg_query__sub_plan__descriptor, + offsetof(PgQuery__Node, notify_stmt), + &pg_query__notify_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alternative_sub_plan", - 22, + "listen_stmt", + 217, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alternative_sub_plan), - &pg_query__alternative_sub_plan__descriptor, + offsetof(PgQuery__Node, listen_stmt), + &pg_query__listen_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "field_select", - 23, + "unlisten_stmt", + 218, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, field_select), - &pg_query__field_select__descriptor, + offsetof(PgQuery__Node, unlisten_stmt), + &pg_query__unlisten_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "field_store", - 24, + "transaction_stmt", + 219, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, field_store), - &pg_query__field_store__descriptor, + offsetof(PgQuery__Node, transaction_stmt), + &pg_query__transaction_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relabel_type", - 25, + "composite_type_stmt", + 220, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, relabel_type), - &pg_query__relabel_type__descriptor, + offsetof(PgQuery__Node, composite_type_stmt), + &pg_query__composite_type_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coerce_via_io", - 26, + "create_enum_stmt", + 221, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, coerce_via_io), - &pg_query__coerce_via_io__descriptor, + offsetof(PgQuery__Node, create_enum_stmt), + &pg_query__create_enum_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "array_coerce_expr", - 27, + "create_range_stmt", + 222, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, array_coerce_expr), - &pg_query__array_coerce_expr__descriptor, + offsetof(PgQuery__Node, create_range_stmt), + &pg_query__create_range_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "convert_rowtype_expr", - 28, + "alter_enum_stmt", + 223, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, convert_rowtype_expr), - &pg_query__convert_rowtype_expr__descriptor, + offsetof(PgQuery__Node, alter_enum_stmt), + &pg_query__alter_enum_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collate_expr", - 29, + "view_stmt", + 224, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, collate_expr), - &pg_query__collate_expr__descriptor, + offsetof(PgQuery__Node, view_stmt), + &pg_query__view_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "case_expr", - 30, + "load_stmt", + 225, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, case_expr), - &pg_query__case_expr__descriptor, + offsetof(PgQuery__Node, load_stmt), + &pg_query__load_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "case_when", - 31, + "createdb_stmt", + 226, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, case_when), - &pg_query__case_when__descriptor, + offsetof(PgQuery__Node, createdb_stmt), + &pg_query__createdb_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "case_test_expr", - 32, + "alter_database_stmt", + 227, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, case_test_expr), - &pg_query__case_test_expr__descriptor, + offsetof(PgQuery__Node, alter_database_stmt), + &pg_query__alter_database_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "array_expr", - 33, + "alter_database_refresh_coll_stmt", + 228, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, array_expr), - &pg_query__array_expr__descriptor, + offsetof(PgQuery__Node, alter_database_refresh_coll_stmt), + &pg_query__alter_database_refresh_coll_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "row_expr", - 34, + "alter_database_set_stmt", + 229, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, row_expr), - &pg_query__row_expr__descriptor, + offsetof(PgQuery__Node, alter_database_set_stmt), + &pg_query__alter_database_set_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "row_compare_expr", - 35, + "dropdb_stmt", + 230, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, row_compare_expr), - &pg_query__row_compare_expr__descriptor, + offsetof(PgQuery__Node, dropdb_stmt), + &pg_query__dropdb_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coalesce_expr", - 36, + "alter_system_stmt", + 231, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, coalesce_expr), - &pg_query__coalesce_expr__descriptor, + offsetof(PgQuery__Node, alter_system_stmt), + &pg_query__alter_system_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "min_max_expr", - 37, + "cluster_stmt", + 232, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, min_max_expr), - &pg_query__min_max_expr__descriptor, + offsetof(PgQuery__Node, cluster_stmt), + &pg_query__cluster_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sqlvalue_function", - 38, + "vacuum_stmt", + 233, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, sqlvalue_function), - &pg_query__sqlvalue_function__descriptor, + offsetof(PgQuery__Node, vacuum_stmt), + &pg_query__vacuum_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "xml_expr", - 39, + "vacuum_relation", + 234, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, xml_expr), - &pg_query__xml_expr__descriptor, + offsetof(PgQuery__Node, vacuum_relation), + &pg_query__vacuum_relation__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_format", - 40, + "explain_stmt", + 235, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__Node, explain_stmt), + &pg_query__explain_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_returning", - 41, + "create_table_as_stmt", + 236, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_returning), - &pg_query__json_returning__descriptor, + offsetof(PgQuery__Node, create_table_as_stmt), + &pg_query__create_table_as_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_value_expr", - 42, + "refresh_mat_view_stmt", + 237, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_value_expr), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__Node, refresh_mat_view_stmt), + &pg_query__refresh_mat_view_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_constructor_expr", - 43, + "check_point_stmt", + 238, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_constructor_expr), - &pg_query__json_constructor_expr__descriptor, + offsetof(PgQuery__Node, check_point_stmt), + &pg_query__check_point_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_is_predicate", - 44, + "discard_stmt", + 239, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_is_predicate), - &pg_query__json_is_predicate__descriptor, + offsetof(PgQuery__Node, discard_stmt), + &pg_query__discard_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_behavior", - 45, + "lock_stmt", + 240, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_behavior), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__Node, lock_stmt), + &pg_query__lock_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_expr", - 46, + "constraints_set_stmt", + 241, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_expr), - &pg_query__json_expr__descriptor, + offsetof(PgQuery__Node, constraints_set_stmt), + &pg_query__constraints_set_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_table_path", - 47, + "reindex_stmt", + 242, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_table_path), - &pg_query__json_table_path__descriptor, + offsetof(PgQuery__Node, reindex_stmt), + &pg_query__reindex_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_table_path_scan", - 48, + "create_conversion_stmt", + 243, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_table_path_scan), - &pg_query__json_table_path_scan__descriptor, + offsetof(PgQuery__Node, create_conversion_stmt), + &pg_query__create_conversion_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_table_sibling_join", - 49, + "create_cast_stmt", + 244, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_table_sibling_join), - &pg_query__json_table_sibling_join__descriptor, + offsetof(PgQuery__Node, create_cast_stmt), + &pg_query__create_cast_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "null_test", - 50, + "create_transform_stmt", + 245, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, null_test), - &pg_query__null_test__descriptor, + offsetof(PgQuery__Node, create_transform_stmt), + &pg_query__create_transform_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "boolean_test", - 51, + "prepare_stmt", + 246, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, boolean_test), - &pg_query__boolean_test__descriptor, + offsetof(PgQuery__Node, prepare_stmt), + &pg_query__prepare_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_action", - 52, + "execute_stmt", + 247, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, merge_action), - &pg_query__merge_action__descriptor, + offsetof(PgQuery__Node, execute_stmt), + &pg_query__execute_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coerce_to_domain", - 53, + "deallocate_stmt", + 248, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, coerce_to_domain), - &pg_query__coerce_to_domain__descriptor, + offsetof(PgQuery__Node, deallocate_stmt), + &pg_query__deallocate_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coerce_to_domain_value", - 54, + "drop_owned_stmt", + 249, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, coerce_to_domain_value), - &pg_query__coerce_to_domain_value__descriptor, + offsetof(PgQuery__Node, drop_owned_stmt), + &pg_query__drop_owned_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "set_to_default", - 55, + "reassign_owned_stmt", + 250, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, set_to_default), - &pg_query__set_to_default__descriptor, + offsetof(PgQuery__Node, reassign_owned_stmt), + &pg_query__reassign_owned_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "current_of_expr", - 56, + "alter_tsdictionary_stmt", + 251, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, current_of_expr), - &pg_query__current_of_expr__descriptor, + offsetof(PgQuery__Node, alter_tsdictionary_stmt), + &pg_query__alter_tsdictionary_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "next_value_expr", - 57, + "alter_tsconfiguration_stmt", + 252, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, next_value_expr), - &pg_query__next_value_expr__descriptor, + offsetof(PgQuery__Node, alter_tsconfiguration_stmt), + &pg_query__alter_tsconfiguration_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inference_elem", - 58, + "publication_table", + 253, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, inference_elem), - &pg_query__inference_elem__descriptor, + offsetof(PgQuery__Node, publication_table), + &pg_query__publication_table__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "target_entry", - 59, + "publication_obj_spec", + 254, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, target_entry), - &pg_query__target_entry__descriptor, + offsetof(PgQuery__Node, publication_obj_spec), + &pg_query__publication_obj_spec__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "range_tbl_ref", - 60, + "create_publication_stmt", + 255, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_tbl_ref), - &pg_query__range_tbl_ref__descriptor, + offsetof(PgQuery__Node, create_publication_stmt), + &pg_query__create_publication_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "join_expr", - 61, + "alter_publication_stmt", + 256, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, join_expr), - &pg_query__join_expr__descriptor, + offsetof(PgQuery__Node, alter_publication_stmt), + &pg_query__alter_publication_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "from_expr", - 62, + "create_subscription_stmt", + 257, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, from_expr), - &pg_query__from_expr__descriptor, + offsetof(PgQuery__Node, create_subscription_stmt), + &pg_query__create_subscription_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_conflict_expr", - 63, + "alter_subscription_stmt", + 258, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, on_conflict_expr), - &pg_query__on_conflict_expr__descriptor, + offsetof(PgQuery__Node, alter_subscription_stmt), + &pg_query__alter_subscription_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "query", - 64, + "drop_subscription_stmt", + 259, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, query), - &pg_query__query__descriptor, + offsetof(PgQuery__Node, drop_subscription_stmt), + &pg_query__drop_subscription_stmt__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", - 65, + "integer", + 260, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__Node, integer), + &pg_query__integer__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "column_ref", - 66, + "float", + 261, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, column_ref), - &pg_query__column_ref__descriptor, + offsetof(PgQuery__Node, float_), + &pg_query__float__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "param_ref", - 67, + "boolean", + 262, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, param_ref), - &pg_query__param_ref__descriptor, + offsetof(PgQuery__Node, boolean), + &pg_query__boolean__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "a_expr", - 68, + "string", + 263, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, a_expr), - &pg_query__a__expr__descriptor, + offsetof(PgQuery__Node, string), + &pg_query__string__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_cast", - 69, + "bit_string", + 264, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, type_cast), - &pg_query__type_cast__descriptor, + offsetof(PgQuery__Node, bit_string), + &pg_query__bit_string__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collate_clause", - 70, + "list", + 265, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, collate_clause), - &pg_query__collate_clause__descriptor, + offsetof(PgQuery__Node, list), + &pg_query__list__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "role_spec", - 71, + "int_list", + 266, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, role_spec), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__Node, int_list), + &pg_query__int_list__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func_call", - 72, + "oid_list", + 267, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, func_call), - &pg_query__func_call__descriptor, + offsetof(PgQuery__Node, oid_list), + &pg_query__oid_list__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "a_star", - 73, + "a_const", + 268, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, a_star), - &pg_query__a__star__descriptor, + offsetof(PgQuery__Node, a_const), + &pg_query__a__const__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__node__field_indices_by_name[] = { + 75, /* field[75] = a_array_expr */ + 267, /* field[267] = a_const */ + 67, /* field[67] = a_expr */ + 73, /* field[73] = a_indices */ + 74, /* field[74] = a_indirection */ + 72, /* field[72] = a_star */ + 147, /* field[147] = access_priv */ + 6, /* field[6] = aggref */ + 0, /* field[0] = alias */ + 143, /* field[143] = alter_collation_stmt */ + 227, /* field[227] = alter_database_refresh_coll_stmt */ + 228, /* field[228] = alter_database_set_stmt */ + 226, /* field[226] = alter_database_stmt */ + 149, /* field[149] = alter_default_privileges_stmt */ + 144, /* field[144] = alter_domain_stmt */ + 222, /* field[222] = alter_enum_stmt */ + 176, /* field[176] = alter_event_trig_stmt */ + 161, /* field[161] = alter_extension_contents_stmt */ + 160, /* field[160] = alter_extension_stmt */ + 163, /* field[163] = alter_fdw_stmt */ + 165, /* field[165] = alter_foreign_server_stmt */ + 203, /* field[203] = alter_function_stmt */ + 209, /* field[209] = alter_object_depends_stmt */ + 210, /* field[210] = alter_object_schema_stmt */ + 189, /* field[189] = alter_op_family_stmt */ + 212, /* field[212] = alter_operator_stmt */ + 211, /* field[211] = alter_owner_stmt */ + 172, /* field[172] = alter_policy_stmt */ + 255, /* field[255] = alter_publication_stmt */ + 180, /* field[180] = alter_role_set_stmt */ + 179, /* field[179] = alter_role_stmt */ + 183, /* field[183] = alter_seq_stmt */ + 200, /* field[200] = alter_stats_stmt */ + 257, /* field[257] = alter_subscription_stmt */ + 230, /* field[230] = alter_system_stmt */ + 142, /* field[142] = alter_table_cmd */ + 158, /* field[158] = alter_table_move_all_stmt */ + 157, /* field[157] = alter_table_space_options_stmt */ + 140, /* field[140] = alter_table_stmt */ + 251, /* field[251] = alter_tsconfiguration_stmt */ + 250, /* field[250] = alter_tsdictionary_stmt */ + 213, /* field[213] = alter_type_stmt */ + 168, /* field[168] = alter_user_mapping_stmt */ + 21, /* field[21] = alternative_sub_plan */ + 26, /* field[26] = array_coerce_expr */ + 32, /* field[32] = array_expr */ + 263, /* field[263] = bit_string */ + 18, /* field[18] = bool_expr */ + 261, /* field[261] = boolean */ + 50, /* field[50] = boolean_test */ + 207, /* field[207] = call_context */ + 206, /* field[206] = call_stmt */ + 29, /* field[29] = case_expr */ + 31, /* field[31] = case_test_expr */ + 30, /* field[30] = case_when */ + 237, /* field[237] = check_point_stmt */ + 195, /* field[195] = close_portal_stmt */ + 231, /* field[231] = cluster_stmt */ + 35, /* field[35] = coalesce_expr */ + 52, /* field[52] = coerce_to_domain */ + 53, /* field[53] = coerce_to_domain_value */ + 25, /* field[25] = coerce_via_io */ + 69, /* field[69] = collate_clause */ + 28, /* field[28] = collate_expr */ + 85, /* field[85] = column_def */ + 65, /* field[65] = column_ref */ + 192, /* field[192] = comment_stmt */ + 111, /* field[111] = common_table_expr */ + 219, /* field[219] = composite_type_stmt */ + 154, /* field[154] = constraint */ + 240, /* field[240] = constraints_set_stmt */ + 27, /* field[27] = convert_rowtype_expr */ + 150, /* field[150] = copy_stmt */ + 173, /* field[173] = create_am_stmt */ + 243, /* field[243] = create_cast_stmt */ + 242, /* field[242] = create_conversion_stmt */ + 185, /* field[185] = create_domain_stmt */ + 220, /* field[220] = create_enum_stmt */ + 175, /* field[175] = create_event_trig_stmt */ + 159, /* field[159] = create_extension_stmt */ + 162, /* field[162] = create_fdw_stmt */ + 164, /* field[164] = create_foreign_server_stmt */ + 166, /* field[166] = create_foreign_table_stmt */ + 201, /* field[201] = create_function_stmt */ + 187, /* field[187] = create_op_class_item */ + 186, /* field[186] = create_op_class_stmt */ + 188, /* field[188] = create_op_family_stmt */ + 177, /* field[177] = create_plang_stmt */ + 171, /* field[171] = create_policy_stmt */ + 254, /* field[254] = create_publication_stmt */ + 221, /* field[221] = create_range_stmt */ + 178, /* field[178] = create_role_stmt */ + 139, /* field[139] = create_schema_stmt */ + 182, /* field[182] = create_seq_stmt */ + 198, /* field[198] = create_stats_stmt */ + 153, /* field[153] = create_stmt */ + 256, /* field[256] = create_subscription_stmt */ + 235, /* field[235] = create_table_as_stmt */ + 155, /* field[155] = create_table_space_stmt */ + 244, /* field[244] = create_transform_stmt */ + 174, /* field[174] = create_trig_stmt */ + 167, /* field[167] = create_user_mapping_stmt */ + 225, /* field[225] = createdb_stmt */ + 110, /* field[110] = ctecycle_clause */ + 109, /* field[109] = ctesearch_clause */ + 55, /* field[55] = current_of_expr */ + 247, /* field[247] = deallocate_stmt */ + 194, /* field[194] = declare_cursor_stmt */ + 88, /* field[88] = def_elem */ + 184, /* field[184] = define_stmt */ + 132, /* field[132] = delete_stmt */ + 238, /* field[238] = discard_stmt */ + 15, /* field[15] = distinct_expr */ + 204, /* field[204] = do_stmt */ + 248, /* field[248] = drop_owned_stmt */ + 181, /* field[181] = drop_role_stmt */ + 190, /* field[190] = drop_stmt */ + 258, /* field[258] = drop_subscription_stmt */ + 156, /* field[156] = drop_table_space_stmt */ + 169, /* field[169] = drop_user_mapping_stmt */ + 229, /* field[229] = dropdb_stmt */ + 246, /* field[246] = execute_stmt */ + 234, /* field[234] = explain_stmt */ + 196, /* field[196] = fetch_stmt */ + 22, /* field[22] = field_select */ + 23, /* field[23] = field_store */ + 260, /* field[260] = float */ + 61, /* field[61] = from_expr */ + 71, /* field[71] = func_call */ + 12, /* field[12] = func_expr */ + 202, /* field[202] = function_parameter */ + 148, /* field[148] = grant_role_stmt */ + 145, /* field[145] = grant_stmt */ + 7, /* field[7] = grouping_func */ + 103, /* field[103] = grouping_set */ + 170, /* field[170] = import_foreign_schema_stmt */ + 87, /* field[87] = index_elem */ + 197, /* field[197] = index_stmt */ + 107, /* field[107] = infer_clause */ + 57, /* field[57] = inference_elem */ + 205, /* field[205] = inline_code_block */ + 131, /* field[131] = insert_stmt */ + 265, /* field[265] = int_list */ + 259, /* field[259] = integer */ + 3, /* field[3] = into_clause */ + 60, /* field[60] = join_expr */ + 127, /* field[127] = json_agg_constructor */ + 115, /* field[115] = json_argument */ + 129, /* field[129] = json_array_agg */ + 125, /* field[125] = json_array_constructor */ + 126, /* field[126] = json_array_query_constructor */ + 44, /* field[44] = json_behavior */ + 42, /* field[42] = json_constructor_expr */ + 45, /* field[45] = json_expr */ + 39, /* field[39] = json_format */ + 116, /* field[116] = json_func_expr */ + 43, /* field[43] = json_is_predicate */ + 120, /* field[120] = json_key_value */ + 128, /* field[128] = json_object_agg */ + 124, /* field[124] = json_object_constructor */ + 114, /* field[114] = json_output */ + 121, /* field[121] = json_parse_expr */ + 40, /* field[40] = json_returning */ + 122, /* field[122] = json_scalar_expr */ + 123, /* field[123] = json_serialize_expr */ + 118, /* field[118] = json_table */ + 119, /* field[119] = json_table_column */ + 46, /* field[46] = json_table_path */ + 47, /* field[47] = json_table_path_scan */ + 117, /* field[117] = json_table_path_spec */ + 48, /* field[48] = json_table_sibling_join */ + 41, /* field[41] = json_value_expr */ + 264, /* field[264] = list */ + 216, /* field[216] = listen_stmt */ + 224, /* field[224] = load_stmt */ + 239, /* field[239] = lock_stmt */ + 89, /* field[89] = locking_clause */ + 51, /* field[51] = merge_action */ + 134, /* field[134] = merge_stmt */ + 10, /* field[10] = merge_support_func */ + 112, /* field[112] = merge_when_clause */ + 36, /* field[36] = min_max_expr */ + 77, /* field[77] = multi_assign_ref */ + 13, /* field[13] = named_arg_expr */ + 56, /* field[56] = next_value_expr */ + 215, /* field[215] = notify_stmt */ + 16, /* field[16] = null_if_expr */ + 49, /* field[49] = null_test */ + 146, /* field[146] = object_with_args */ + 266, /* field[266] = oid_list */ + 108, /* field[108] = on_conflict_clause */ + 62, /* field[62] = on_conflict_expr */ + 14, /* field[14] = op_expr */ + 5, /* field[5] = param */ + 66, /* field[66] = param_ref */ + 93, /* field[93] = partition_bound_spec */ + 96, /* field[96] = partition_cmd */ + 91, /* field[91] = partition_elem */ + 94, /* field[94] = partition_range_datum */ + 92, /* field[92] = partition_spec */ + 138, /* field[138] = plassign_stmt */ + 245, /* field[245] = prepare_stmt */ + 253, /* field[253] = publication_obj_spec */ + 252, /* field[252] = publication_table */ + 63, /* field[63] = query */ + 81, /* field[81] = range_function */ + 80, /* field[80] = range_subselect */ + 82, /* field[82] = range_table_func */ + 83, /* field[83] = range_table_func_col */ + 84, /* field[84] = range_table_sample */ + 97, /* field[97] = range_tbl_entry */ + 99, /* field[99] = range_tbl_function */ + 59, /* field[59] = range_tbl_ref */ + 1, /* field[1] = range_var */ + 130, /* field[130] = raw_stmt */ + 249, /* field[249] = reassign_owned_stmt */ + 236, /* field[236] = refresh_mat_view_stmt */ + 241, /* field[241] = reindex_stmt */ + 24, /* field[24] = relabel_type */ + 208, /* field[208] = rename_stmt */ + 141, /* field[141] = replica_identity_stmt */ + 76, /* field[76] = res_target */ + 137, /* field[137] = return_stmt */ + 70, /* field[70] = role_spec */ + 34, /* field[34] = row_compare_expr */ + 33, /* field[33] = row_expr */ + 105, /* field[105] = row_mark_clause */ + 98, /* field[98] = rtepermission_info */ + 214, /* field[214] = rule_stmt */ + 17, /* field[17] = scalar_array_op_expr */ + 193, /* field[193] = sec_label_stmt */ + 135, /* field[135] = select_stmt */ + 136, /* field[136] = set_operation_stmt */ + 54, /* field[54] = set_to_default */ + 95, /* field[95] = single_partition_spec */ + 78, /* field[78] = sort_by */ + 102, /* field[102] = sort_group_clause */ + 37, /* field[37] = sqlvalue_function */ + 199, /* field[199] = stats_elem */ + 262, /* field[262] = string */ + 19, /* field[19] = sub_link */ + 20, /* field[20] = sub_plan */ + 11, /* field[11] = subscripting_ref */ + 2, /* field[2] = table_func */ + 86, /* field[86] = table_like_clause */ + 100, /* field[100] = table_sample_clause */ + 58, /* field[58] = target_entry */ + 218, /* field[218] = transaction_stmt */ + 113, /* field[113] = trigger_transition */ + 191, /* field[191] = truncate_stmt */ + 68, /* field[68] = type_cast */ + 64, /* field[64] = type_name */ + 217, /* field[217] = unlisten_stmt */ + 133, /* field[133] = update_stmt */ + 233, /* field[233] = vacuum_relation */ + 232, /* field[232] = vacuum_stmt */ + 4, /* field[4] = var */ + 151, /* field[151] = variable_set_stmt */ + 152, /* field[152] = variable_show_stmt */ + 223, /* field[223] = view_stmt */ + 104, /* field[104] = window_clause */ + 79, /* field[79] = window_def */ + 8, /* field[8] = window_func */ + 9, /* field[9] = window_func_run_condition */ + 101, /* field[101] = with_check_option */ + 106, /* field[106] = with_clause */ + 38, /* field[38] = xml_expr */ + 90, /* field[90] = xml_serialize */ +}; +static const ProtobufCIntRange pg_query__node__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 268 } +}; +const ProtobufCMessageDescriptor pg_query__node__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Node", + "Node", + "PgQuery__Node", + "pg_query", + sizeof(PgQuery__Node), + 268, + pg_query__node__field_descriptors, + pg_query__node__field_indices_by_name, + 1, pg_query__node__number_ranges, + (ProtobufCMessageInit) pg_query__node__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__integer__field_descriptors[1] = +{ { - "a_indices", - 74, + "ival", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, a_indices), - &pg_query__a__indices__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Integer, ival), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "a_indirection", - 75, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, a_indirection), - &pg_query__a__indirection__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__integer__field_indices_by_name[] = { + 0, /* field[0] = ival */ +}; +static const ProtobufCIntRange pg_query__integer__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__integer__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Integer", + "Integer", + "PgQuery__Integer", + "pg_query", + sizeof(PgQuery__Integer), + 1, + pg_query__integer__field_descriptors, + pg_query__integer__field_indices_by_name, + 1, pg_query__integer__number_ranges, + (ProtobufCMessageInit) pg_query__integer__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__float__field_descriptors[1] = +{ { - "a_array_expr", - 76, + "fval", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, a_array_expr), - &pg_query__a__array_expr__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__Float, fval), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__float__field_indices_by_name[] = { + 0, /* field[0] = fval */ +}; +static const ProtobufCIntRange pg_query__float__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__float__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Float", + "Float", + "PgQuery__Float", + "pg_query", + sizeof(PgQuery__Float), + 1, + pg_query__float__field_descriptors, + pg_query__float__field_indices_by_name, + 1, pg_query__float__number_ranges, + (ProtobufCMessageInit) pg_query__float__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__boolean__field_descriptors[1] = +{ { - "res_target", - 77, + "boolval", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, res_target), - &pg_query__res_target__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__Boolean, boolval), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "multi_assign_ref", - 78, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, multi_assign_ref), - &pg_query__multi_assign_ref__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__boolean__field_indices_by_name[] = { + 0, /* field[0] = boolval */ +}; +static const ProtobufCIntRange pg_query__boolean__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__boolean__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Boolean", + "Boolean", + "PgQuery__Boolean", + "pg_query", + sizeof(PgQuery__Boolean), + 1, + pg_query__boolean__field_descriptors, + pg_query__boolean__field_indices_by_name, + 1, pg_query__boolean__number_ranges, + (ProtobufCMessageInit) pg_query__boolean__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__string__field_descriptors[1] = +{ { - "sort_by", - 79, + "sval", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, sort_by), - &pg_query__sort_by__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__String, sval), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__string__field_indices_by_name[] = { + 0, /* field[0] = sval */ +}; +static const ProtobufCIntRange pg_query__string__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__string__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.String", + "String", + "PgQuery__String", + "pg_query", + sizeof(PgQuery__String), + 1, + pg_query__string__field_descriptors, + pg_query__string__field_indices_by_name, + 1, pg_query__string__number_ranges, + (ProtobufCMessageInit) pg_query__string__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__bit_string__field_descriptors[1] = +{ { - "window_def", - 80, + "bsval", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, window_def), - &pg_query__window_def__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__BitString, bsval), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__bit_string__field_indices_by_name[] = { + 0, /* field[0] = bsval */ +}; +static const ProtobufCIntRange pg_query__bit_string__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__bit_string__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.BitString", + "BitString", + "PgQuery__BitString", + "pg_query", + sizeof(PgQuery__BitString), + 1, + pg_query__bit_string__field_descriptors, + pg_query__bit_string__field_indices_by_name, + 1, pg_query__bit_string__number_ranges, + (ProtobufCMessageInit) pg_query__bit_string__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__list__field_descriptors[1] = +{ { - "range_subselect", - 81, - PROTOBUF_C_LABEL_NONE, + "items", + 1, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_subselect), - &pg_query__range_subselect__descriptor, + offsetof(PgQuery__List, n_items), + offsetof(PgQuery__List, items), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__list__field_indices_by_name[] = { + 0, /* field[0] = items */ +}; +static const ProtobufCIntRange pg_query__list__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__list__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.List", + "List", + "PgQuery__List", + "pg_query", + sizeof(PgQuery__List), + 1, + pg_query__list__field_descriptors, + pg_query__list__field_indices_by_name, + 1, pg_query__list__number_ranges, + (ProtobufCMessageInit) pg_query__list__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__oid_list__field_descriptors[1] = +{ { - "range_function", - 82, - PROTOBUF_C_LABEL_NONE, + "items", + 1, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_function), - &pg_query__range_function__descriptor, + offsetof(PgQuery__OidList, n_items), + offsetof(PgQuery__OidList, items), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__oid_list__field_indices_by_name[] = { + 0, /* field[0] = items */ +}; +static const ProtobufCIntRange pg_query__oid_list__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__oid_list__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.OidList", + "OidList", + "PgQuery__OidList", + "pg_query", + sizeof(PgQuery__OidList), + 1, + pg_query__oid_list__field_descriptors, + pg_query__oid_list__field_indices_by_name, + 1, pg_query__oid_list__number_ranges, + (ProtobufCMessageInit) pg_query__oid_list__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__int_list__field_descriptors[1] = +{ { - "range_table_func", - 83, - PROTOBUF_C_LABEL_NONE, + "items", + 1, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_table_func), - &pg_query__range_table_func__descriptor, + offsetof(PgQuery__IntList, n_items), + offsetof(PgQuery__IntList, items), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__int_list__field_indices_by_name[] = { + 0, /* field[0] = items */ +}; +static const ProtobufCIntRange pg_query__int_list__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__int_list__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.IntList", + "IntList", + "PgQuery__IntList", + "pg_query", + sizeof(PgQuery__IntList), + 1, + pg_query__int_list__field_descriptors, + pg_query__int_list__field_indices_by_name, + 1, pg_query__int_list__number_ranges, + (ProtobufCMessageInit) pg_query__int_list__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__a__const__field_descriptors[7] = +{ { - "range_table_func_col", - 84, + "ival", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_table_func_col), - &pg_query__range_table_func_col__descriptor, + offsetof(PgQuery__AConst, val_case), + offsetof(PgQuery__AConst, ival), + &pg_query__integer__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "range_table_sample", - 85, + "fval", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_table_sample), - &pg_query__range_table_sample__descriptor, + offsetof(PgQuery__AConst, val_case), + offsetof(PgQuery__AConst, fval), + &pg_query__float__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "column_def", - 86, + "boolval", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, column_def), - &pg_query__column_def__descriptor, + offsetof(PgQuery__AConst, val_case), + offsetof(PgQuery__AConst, boolval), + &pg_query__boolean__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_like_clause", - 87, + "sval", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, table_like_clause), - &pg_query__table_like_clause__descriptor, + offsetof(PgQuery__AConst, val_case), + offsetof(PgQuery__AConst, sval), + &pg_query__string__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "index_elem", - 88, + "bsval", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, index_elem), - &pg_query__index_elem__descriptor, + offsetof(PgQuery__AConst, val_case), + offsetof(PgQuery__AConst, bsval), + &pg_query__bit_string__descriptor, NULL, PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "def_elem", - 89, + "isnull", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, def_elem), - &pg_query__def_elem__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__AConst, isnull), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "locking_clause", - 90, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, locking_clause), - &pg_query__locking_clause__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "xml_serialize", - 91, + "location", + 11, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, xml_serialize), - &pg_query__xml_serialize__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__AConst, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "partition_elem", - 92, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, partition_elem), - &pg_query__partition_elem__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__a__const__field_indices_by_name[] = { + 2, /* field[2] = boolval */ + 4, /* field[4] = bsval */ + 1, /* field[1] = fval */ + 5, /* field[5] = isnull */ + 0, /* field[0] = ival */ + 6, /* field[6] = location */ + 3, /* field[3] = sval */ +}; +static const ProtobufCIntRange pg_query__a__const__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 10, 5 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__a__const__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.A_Const", + "AConst", + "PgQuery__AConst", + "pg_query", + sizeof(PgQuery__AConst), + 7, + pg_query__a__const__field_descriptors, + pg_query__a__const__field_indices_by_name, + 2, pg_query__a__const__number_ranges, + (ProtobufCMessageInit) pg_query__a__const__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alias__field_descriptors[2] = +{ { - "partition_spec", - 93, + "aliasname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, partition_spec), - &pg_query__partition_spec__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__Alias, aliasname), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "partition_bound_spec", - 94, - PROTOBUF_C_LABEL_NONE, + "colnames", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, partition_bound_spec), - &pg_query__partition_bound_spec__descriptor, + offsetof(PgQuery__Alias, n_colnames), + offsetof(PgQuery__Alias, colnames), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alias__field_indices_by_name[] = { + 0, /* field[0] = aliasname */ + 1, /* field[1] = colnames */ +}; +static const ProtobufCIntRange pg_query__alias__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__alias__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Alias", + "Alias", + "PgQuery__Alias", + "pg_query", + sizeof(PgQuery__Alias), + 2, + pg_query__alias__field_descriptors, + pg_query__alias__field_indices_by_name, + 1, pg_query__alias__number_ranges, + (ProtobufCMessageInit) pg_query__alias__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__range_var__field_descriptors[7] = +{ { - "partition_range_datum", - 95, + "catalogname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, partition_range_datum), - &pg_query__partition_range_datum__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, catalogname), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "single_partition_spec", - 96, + "schemaname", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, single_partition_spec), - &pg_query__single_partition_spec__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, schemaname), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "partition_cmd", - 97, + "relname", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, partition_cmd), - &pg_query__partition_cmd__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, relname), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "range_tbl_entry", - 98, + "inh", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_tbl_entry), - &pg_query__range_tbl_entry__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, inh), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rtepermission_info", - 99, + "relpersistence", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, rtepermission_info), - &pg_query__rtepermission_info__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, relpersistence), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "range_tbl_function", - 100, + "alias", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, range_tbl_function), - &pg_query__range_tbl_function__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, alias), + &pg_query__alias__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_sample_clause", - 101, + "location", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, table_sample_clause), - &pg_query__table_sample_clause__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeVar, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__range_var__field_indices_by_name[] = { + 5, /* field[5] = alias */ + 0, /* field[0] = catalogname */ + 3, /* field[3] = inh */ + 6, /* field[6] = location */ + 2, /* field[2] = relname */ + 4, /* field[4] = relpersistence */ + 1, /* field[1] = schemaname */ +}; +static const ProtobufCIntRange pg_query__range_var__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__range_var__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RangeVar", + "RangeVar", + "PgQuery__RangeVar", + "pg_query", + sizeof(PgQuery__RangeVar), + 7, + pg_query__range_var__field_descriptors, + pg_query__range_var__field_indices_by_name, + 1, pg_query__range_var__number_ranges, + (ProtobufCMessageInit) pg_query__range_var__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__table_func__field_descriptors[17] = +{ { - "with_check_option", - 102, + "functype", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, with_check_option), - &pg_query__with_check_option__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__TableFunc, functype), + &pg_query__table_func_type__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sort_group_clause", - 103, - PROTOBUF_C_LABEL_NONE, + "ns_uris", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, sort_group_clause), - &pg_query__sort_group_clause__descriptor, + offsetof(PgQuery__TableFunc, n_ns_uris), + offsetof(PgQuery__TableFunc, ns_uris), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grouping_set", - 104, - PROTOBUF_C_LABEL_NONE, + "ns_names", + 3, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, grouping_set), - &pg_query__grouping_set__descriptor, + offsetof(PgQuery__TableFunc, n_ns_names), + offsetof(PgQuery__TableFunc, ns_names), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "window_clause", - 105, + "docexpr", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, window_clause), - &pg_query__window_clause__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__TableFunc, docexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "row_mark_clause", - 106, + "rowexpr", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, row_mark_clause), - &pg_query__row_mark_clause__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__TableFunc, rowexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "with_clause", - 107, - PROTOBUF_C_LABEL_NONE, + "colnames", + 6, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, with_clause), - &pg_query__with_clause__descriptor, + offsetof(PgQuery__TableFunc, n_colnames), + offsetof(PgQuery__TableFunc, colnames), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "infer_clause", - 108, - PROTOBUF_C_LABEL_NONE, + "coltypes", + 7, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, infer_clause), - &pg_query__infer_clause__descriptor, + offsetof(PgQuery__TableFunc, n_coltypes), + offsetof(PgQuery__TableFunc, coltypes), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_conflict_clause", - 109, - PROTOBUF_C_LABEL_NONE, + "coltypmods", + 8, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, on_conflict_clause), - &pg_query__on_conflict_clause__descriptor, + offsetof(PgQuery__TableFunc, n_coltypmods), + offsetof(PgQuery__TableFunc, coltypmods), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctesearch_clause", - 110, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, ctesearch_clause), - &pg_query__ctesearch_clause__descriptor, + "colcollations", + 9, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__TableFunc, n_colcollations), + offsetof(PgQuery__TableFunc, colcollations), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctecycle_clause", - 111, - PROTOBUF_C_LABEL_NONE, + "colexprs", + 10, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, ctecycle_clause), - &pg_query__ctecycle_clause__descriptor, + offsetof(PgQuery__TableFunc, n_colexprs), + offsetof(PgQuery__TableFunc, colexprs), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "common_table_expr", - 112, - PROTOBUF_C_LABEL_NONE, + "coldefexprs", + 11, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, common_table_expr), - &pg_query__common_table_expr__descriptor, + offsetof(PgQuery__TableFunc, n_coldefexprs), + offsetof(PgQuery__TableFunc, coldefexprs), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_when_clause", - 113, - PROTOBUF_C_LABEL_NONE, + "colvalexprs", + 12, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, merge_when_clause), - &pg_query__merge_when_clause__descriptor, + offsetof(PgQuery__TableFunc, n_colvalexprs), + offsetof(PgQuery__TableFunc, colvalexprs), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "trigger_transition", - 114, - PROTOBUF_C_LABEL_NONE, + "passingvalexprs", + 13, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, trigger_transition), - &pg_query__trigger_transition__descriptor, + offsetof(PgQuery__TableFunc, n_passingvalexprs), + offsetof(PgQuery__TableFunc, passingvalexprs), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_output", - 115, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_output), - &pg_query__json_output__descriptor, + "notnulls", + 14, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(PgQuery__TableFunc, n_notnulls), + offsetof(PgQuery__TableFunc, notnulls), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_argument", - 116, + "plan", + 15, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_argument), - &pg_query__json_argument__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__TableFunc, plan), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_func_expr", - 117, + "ordinalitycol", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_func_expr), - &pg_query__json_func_expr__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__TableFunc, ordinalitycol), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_table_path_spec", - 118, + "location", + 17, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_table_path_spec), - &pg_query__json_table_path_spec__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__TableFunc, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__table_func__field_indices_by_name[] = { + 8, /* field[8] = colcollations */ + 10, /* field[10] = coldefexprs */ + 9, /* field[9] = colexprs */ + 5, /* field[5] = colnames */ + 6, /* field[6] = coltypes */ + 7, /* field[7] = coltypmods */ + 11, /* field[11] = colvalexprs */ + 3, /* field[3] = docexpr */ + 0, /* field[0] = functype */ + 16, /* field[16] = location */ + 13, /* field[13] = notnulls */ + 2, /* field[2] = ns_names */ + 1, /* field[1] = ns_uris */ + 15, /* field[15] = ordinalitycol */ + 12, /* field[12] = passingvalexprs */ + 14, /* field[14] = plan */ + 4, /* field[4] = rowexpr */ +}; +static const ProtobufCIntRange pg_query__table_func__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 17 } +}; +const ProtobufCMessageDescriptor pg_query__table_func__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.TableFunc", + "TableFunc", + "PgQuery__TableFunc", + "pg_query", + sizeof(PgQuery__TableFunc), + 17, + pg_query__table_func__field_descriptors, + pg_query__table_func__field_indices_by_name, + 1, pg_query__table_func__number_ranges, + (ProtobufCMessageInit) pg_query__table_func__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__into_clause__field_descriptors[8] = +{ { - "json_table", - 119, + "rel", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_table), - &pg_query__json_table__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__IntoClause, rel), + &pg_query__range_var__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_table_column", - 120, - PROTOBUF_C_LABEL_NONE, + "col_names", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_table_column), - &pg_query__json_table_column__descriptor, + offsetof(PgQuery__IntoClause, n_col_names), + offsetof(PgQuery__IntoClause, col_names), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_key_value", - 121, + "access_method", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_key_value), - &pg_query__json_key_value__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__IntoClause, access_method), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_parse_expr", - 122, - PROTOBUF_C_LABEL_NONE, + "options", + 4, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_parse_expr), - &pg_query__json_parse_expr__descriptor, + offsetof(PgQuery__IntoClause, n_options), + offsetof(PgQuery__IntoClause, options), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_scalar_expr", - 123, + "on_commit", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_scalar_expr), - &pg_query__json_scalar_expr__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__IntoClause, on_commit), + &pg_query__on_commit_action__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_serialize_expr", - 124, + "table_space_name", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_serialize_expr), - &pg_query__json_serialize_expr__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__IntoClause, table_space_name), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_object_constructor", - 125, + "view_query", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_object_constructor), - &pg_query__json_object_constructor__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__IntoClause, view_query), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_array_constructor", - 126, + "skip_data", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_array_constructor), - &pg_query__json_array_constructor__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__IntoClause, skip_data), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__into_clause__field_indices_by_name[] = { + 2, /* field[2] = access_method */ + 1, /* field[1] = col_names */ + 4, /* field[4] = on_commit */ + 3, /* field[3] = options */ + 0, /* field[0] = rel */ + 7, /* field[7] = skip_data */ + 5, /* field[5] = table_space_name */ + 6, /* field[6] = view_query */ +}; +static const ProtobufCIntRange pg_query__into_clause__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor pg_query__into_clause__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.IntoClause", + "IntoClause", + "PgQuery__IntoClause", + "pg_query", + sizeof(PgQuery__IntoClause), + 8, + pg_query__into_clause__field_descriptors, + pg_query__into_clause__field_indices_by_name, + 1, pg_query__into_clause__number_ranges, + (ProtobufCMessageInit) pg_query__into_clause__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__var__field_descriptors[9] = +{ { - "json_array_query_constructor", - 127, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_array_query_constructor), - &pg_query__json_array_query_constructor__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_agg_constructor", - 128, + "varno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_agg_constructor), - &pg_query__json_agg_constructor__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, varno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_object_agg", - 129, + "varattno", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_object_agg), - &pg_query__json_object_agg__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, varattno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "json_array_agg", - 130, + "vartype", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, json_array_agg), - &pg_query__json_array_agg__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, vartype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "raw_stmt", - 131, + "vartypmod", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, raw_stmt), - &pg_query__raw_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, vartypmod), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "insert_stmt", - 132, + "varcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, insert_stmt), - &pg_query__insert_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, varcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "delete_stmt", - 133, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, delete_stmt), - &pg_query__delete_stmt__descriptor, + "varnullingrels", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(PgQuery__Var, n_varnullingrels), + offsetof(PgQuery__Var, varnullingrels), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "update_stmt", - 134, + "varlevelsup", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, update_stmt), - &pg_query__update_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, varlevelsup), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_stmt", - 135, + "location", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, merge_stmt), - &pg_query__merge_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Var, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__var__field_indices_by_name[] = { + 8, /* field[8] = location */ + 2, /* field[2] = varattno */ + 5, /* field[5] = varcollid */ + 7, /* field[7] = varlevelsup */ + 1, /* field[1] = varno */ + 6, /* field[6] = varnullingrels */ + 3, /* field[3] = vartype */ + 4, /* field[4] = vartypmod */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__var__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 9 } +}; +const ProtobufCMessageDescriptor pg_query__var__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Var", + "Var", + "PgQuery__Var", + "pg_query", + sizeof(PgQuery__Var), + 9, + pg_query__var__field_descriptors, + pg_query__var__field_indices_by_name, + 1, pg_query__var__number_ranges, + (ProtobufCMessageInit) pg_query__var__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__param__field_descriptors[7] = +{ { - "select_stmt", - 136, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, select_stmt), - &pg_query__select_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "set_operation_stmt", - 137, + "paramkind", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, set_operation_stmt), - &pg_query__set_operation_stmt__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, paramkind), + &pg_query__param_kind__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "return_stmt", - 138, + "paramid", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, return_stmt), - &pg_query__return_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, paramid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plassign_stmt", - 139, + "paramtype", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, plassign_stmt), - &pg_query__plassign_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, paramtype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_schema_stmt", - 140, + "paramtypmod", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_schema_stmt), - &pg_query__create_schema_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, paramtypmod), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_table_stmt", - 141, + "paramcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_table_stmt), - &pg_query__alter_table_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, paramcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "replica_identity_stmt", - 142, + "location", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, replica_identity_stmt), - &pg_query__replica_identity_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Param, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__param__field_indices_by_name[] = { + 6, /* field[6] = location */ + 5, /* field[5] = paramcollid */ + 2, /* field[2] = paramid */ + 1, /* field[1] = paramkind */ + 3, /* field[3] = paramtype */ + 4, /* field[4] = paramtypmod */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__param__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__param__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Param", + "Param", + "PgQuery__Param", + "pg_query", + sizeof(PgQuery__Param), + 7, + pg_query__param__field_descriptors, + pg_query__param__field_indices_by_name, + 1, pg_query__param__number_ranges, + (ProtobufCMessageInit) pg_query__param__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__aggref__field_descriptors[19] = +{ { - "alter_table_cmd", - 143, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_table_cmd), - &pg_query__alter_table_cmd__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_collation_stmt", - 144, + "aggfnoid", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_collation_stmt), - &pg_query__alter_collation_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggfnoid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_domain_stmt", - 145, + "aggtype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_domain_stmt), - &pg_query__alter_domain_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggtype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grant_stmt", - 146, + "aggcollid", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, grant_stmt), - &pg_query__grant_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object_with_args", - 147, + "inputcollid", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, object_with_args), - &pg_query__object_with_args__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "access_priv", - 148, - PROTOBUF_C_LABEL_NONE, + "aggargtypes", + 6, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, access_priv), - &pg_query__access_priv__descriptor, + offsetof(PgQuery__Aggref, n_aggargtypes), + offsetof(PgQuery__Aggref, aggargtypes), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grant_role_stmt", - 149, - PROTOBUF_C_LABEL_NONE, + "aggdirectargs", + 7, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, grant_role_stmt), - &pg_query__grant_role_stmt__descriptor, + offsetof(PgQuery__Aggref, n_aggdirectargs), + offsetof(PgQuery__Aggref, aggdirectargs), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_default_privileges_stmt", - 150, - PROTOBUF_C_LABEL_NONE, + "args", + 8, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_default_privileges_stmt), - &pg_query__alter_default_privileges_stmt__descriptor, + offsetof(PgQuery__Aggref, n_args), + offsetof(PgQuery__Aggref, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "copy_stmt", - 151, - PROTOBUF_C_LABEL_NONE, + "aggorder", + 9, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, copy_stmt), - &pg_query__copy_stmt__descriptor, + offsetof(PgQuery__Aggref, n_aggorder), + offsetof(PgQuery__Aggref, aggorder), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "variable_set_stmt", - 152, - PROTOBUF_C_LABEL_NONE, + "aggdistinct", + 10, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, variable_set_stmt), - &pg_query__variable_set_stmt__descriptor, + offsetof(PgQuery__Aggref, n_aggdistinct), + offsetof(PgQuery__Aggref, aggdistinct), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "variable_show_stmt", - 153, + "aggfilter", + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, variable_show_stmt), - &pg_query__variable_show_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggfilter), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_stmt", - 154, + "aggstar", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_stmt), - &pg_query__create_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggstar), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "constraint", - 155, + "aggvariadic", + 13, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, constraint), - &pg_query__constraint__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggvariadic), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_table_space_stmt", - 156, + "aggkind", + 14, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_table_space_stmt), - &pg_query__create_table_space_stmt__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggkind), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "drop_table_space_stmt", - 157, + "agglevelsup", + 15, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, drop_table_space_stmt), - &pg_query__drop_table_space_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, agglevelsup), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_table_space_options_stmt", - 158, + "aggsplit", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_table_space_options_stmt), - &pg_query__alter_table_space_options_stmt__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggsplit), + &pg_query__agg_split__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_table_move_all_stmt", - 159, + "aggno", + 17, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_table_move_all_stmt), - &pg_query__alter_table_move_all_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_extension_stmt", - 160, + "aggtransno", + 18, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_extension_stmt), - &pg_query__create_extension_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, aggtransno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_extension_stmt", - 161, + "location", + 19, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_extension_stmt), - &pg_query__alter_extension_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Aggref, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__aggref__field_indices_by_name[] = { + 5, /* field[5] = aggargtypes */ + 3, /* field[3] = aggcollid */ + 6, /* field[6] = aggdirectargs */ + 9, /* field[9] = aggdistinct */ + 10, /* field[10] = aggfilter */ + 1, /* field[1] = aggfnoid */ + 13, /* field[13] = aggkind */ + 14, /* field[14] = agglevelsup */ + 16, /* field[16] = aggno */ + 8, /* field[8] = aggorder */ + 15, /* field[15] = aggsplit */ + 11, /* field[11] = aggstar */ + 17, /* field[17] = aggtransno */ + 2, /* field[2] = aggtype */ + 12, /* field[12] = aggvariadic */ + 7, /* field[7] = args */ + 4, /* field[4] = inputcollid */ + 18, /* field[18] = location */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__aggref__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 19 } +}; +const ProtobufCMessageDescriptor pg_query__aggref__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Aggref", + "Aggref", + "PgQuery__Aggref", + "pg_query", + sizeof(PgQuery__Aggref), + 19, + pg_query__aggref__field_descriptors, + pg_query__aggref__field_indices_by_name, + 1, pg_query__aggref__number_ranges, + (ProtobufCMessageInit) pg_query__aggref__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__grouping_func__field_descriptors[5] = +{ { - "alter_extension_contents_stmt", - 162, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_extension_contents_stmt), - &pg_query__alter_extension_contents_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__GroupingFunc, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_fdw_stmt", - 163, - PROTOBUF_C_LABEL_NONE, + "args", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_fdw_stmt), - &pg_query__create_fdw_stmt__descriptor, + offsetof(PgQuery__GroupingFunc, n_args), + offsetof(PgQuery__GroupingFunc, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_fdw_stmt", - 164, - PROTOBUF_C_LABEL_NONE, + "refs", + 3, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_fdw_stmt), - &pg_query__alter_fdw_stmt__descriptor, + offsetof(PgQuery__GroupingFunc, n_refs), + offsetof(PgQuery__GroupingFunc, refs), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_foreign_server_stmt", - 165, + "agglevelsup", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_foreign_server_stmt), - &pg_query__create_foreign_server_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__GroupingFunc, agglevelsup), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_foreign_server_stmt", - 166, + "location", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_foreign_server_stmt), - &pg_query__alter_foreign_server_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__GroupingFunc, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__grouping_func__field_indices_by_name[] = { + 3, /* field[3] = agglevelsup */ + 1, /* field[1] = args */ + 4, /* field[4] = location */ + 2, /* field[2] = refs */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__grouping_func__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__grouping_func__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.GroupingFunc", + "GroupingFunc", + "PgQuery__GroupingFunc", + "pg_query", + sizeof(PgQuery__GroupingFunc), + 5, + pg_query__grouping_func__field_descriptors, + pg_query__grouping_func__field_indices_by_name, + 1, pg_query__grouping_func__number_ranges, + (ProtobufCMessageInit) pg_query__grouping_func__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__window_func__field_descriptors[12] = +{ { - "create_foreign_table_stmt", - 167, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_foreign_table_stmt), - &pg_query__create_foreign_table_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_user_mapping_stmt", - 168, + "winfnoid", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_user_mapping_stmt), - &pg_query__create_user_mapping_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, winfnoid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_user_mapping_stmt", - 169, + "wintype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_user_mapping_stmt), - &pg_query__alter_user_mapping_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, wintype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "drop_user_mapping_stmt", - 170, + "wincollid", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, drop_user_mapping_stmt), - &pg_query__drop_user_mapping_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, wincollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "import_foreign_schema_stmt", - 171, + "inputcollid", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, import_foreign_schema_stmt), - &pg_query__import_foreign_schema_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_policy_stmt", - 172, - PROTOBUF_C_LABEL_NONE, + "args", + 6, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_policy_stmt), - &pg_query__create_policy_stmt__descriptor, + offsetof(PgQuery__WindowFunc, n_args), + offsetof(PgQuery__WindowFunc, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_policy_stmt", - 173, + "aggfilter", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_policy_stmt), - &pg_query__alter_policy_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, aggfilter), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_am_stmt", - 174, - PROTOBUF_C_LABEL_NONE, + "run_condition", + 8, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_am_stmt), - &pg_query__create_am_stmt__descriptor, + offsetof(PgQuery__WindowFunc, n_run_condition), + offsetof(PgQuery__WindowFunc, run_condition), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_trig_stmt", - 175, + "winref", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_trig_stmt), - &pg_query__create_trig_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, winref), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_event_trig_stmt", - 176, + "winstar", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_event_trig_stmt), - &pg_query__create_event_trig_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, winstar), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_event_trig_stmt", - 177, + "winagg", + 11, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_event_trig_stmt), - &pg_query__alter_event_trig_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, winagg), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_plang_stmt", - 178, + "location", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_plang_stmt), - &pg_query__create_plang_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFunc, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__window_func__field_indices_by_name[] = { + 6, /* field[6] = aggfilter */ + 5, /* field[5] = args */ + 4, /* field[4] = inputcollid */ + 11, /* field[11] = location */ + 7, /* field[7] = run_condition */ + 10, /* field[10] = winagg */ + 3, /* field[3] = wincollid */ + 1, /* field[1] = winfnoid */ + 8, /* field[8] = winref */ + 9, /* field[9] = winstar */ + 2, /* field[2] = wintype */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__window_func__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 12 } +}; +const ProtobufCMessageDescriptor pg_query__window_func__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.WindowFunc", + "WindowFunc", + "PgQuery__WindowFunc", + "pg_query", + sizeof(PgQuery__WindowFunc), + 12, + pg_query__window_func__field_descriptors, + pg_query__window_func__field_indices_by_name, + 1, pg_query__window_func__number_ranges, + (ProtobufCMessageInit) pg_query__window_func__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__window_func_run_condition__field_descriptors[5] = +{ { - "create_role_stmt", - 179, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_role_stmt), - &pg_query__create_role_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFuncRunCondition, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_role_stmt", - 180, + "opno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_role_stmt), - &pg_query__alter_role_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFuncRunCondition, opno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_role_set_stmt", - 181, + "inputcollid", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_role_set_stmt), - &pg_query__alter_role_set_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFuncRunCondition, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "drop_role_stmt", - 182, + "wfunc_left", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, drop_role_stmt), - &pg_query__drop_role_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFuncRunCondition, wfunc_left), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_seq_stmt", - 183, + "arg", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_seq_stmt), - &pg_query__create_seq_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowFuncRunCondition, arg), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__window_func_run_condition__field_indices_by_name[] = { + 4, /* field[4] = arg */ + 2, /* field[2] = inputcollid */ + 1, /* field[1] = opno */ + 3, /* field[3] = wfunc_left */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__window_func_run_condition__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__window_func_run_condition__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.WindowFuncRunCondition", + "WindowFuncRunCondition", + "PgQuery__WindowFuncRunCondition", + "pg_query", + sizeof(PgQuery__WindowFuncRunCondition), + 5, + pg_query__window_func_run_condition__field_descriptors, + pg_query__window_func_run_condition__field_indices_by_name, + 1, pg_query__window_func_run_condition__number_ranges, + (ProtobufCMessageInit) pg_query__window_func_run_condition__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__merge_support_func__field_descriptors[4] = +{ { - "alter_seq_stmt", - 184, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_seq_stmt), - &pg_query__alter_seq_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeSupportFunc, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "define_stmt", - 185, + "msftype", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, define_stmt), - &pg_query__define_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeSupportFunc, msftype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_domain_stmt", - 186, + "msfcollid", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_domain_stmt), - &pg_query__create_domain_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeSupportFunc, msfcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_op_class_stmt", - 187, + "location", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_op_class_stmt), - &pg_query__create_op_class_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeSupportFunc, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__merge_support_func__field_indices_by_name[] = { + 3, /* field[3] = location */ + 2, /* field[2] = msfcollid */ + 1, /* field[1] = msftype */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__merge_support_func__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__merge_support_func__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.MergeSupportFunc", + "MergeSupportFunc", + "PgQuery__MergeSupportFunc", + "pg_query", + sizeof(PgQuery__MergeSupportFunc), + 4, + pg_query__merge_support_func__field_descriptors, + pg_query__merge_support_func__field_indices_by_name, + 1, pg_query__merge_support_func__number_ranges, + (ProtobufCMessageInit) pg_query__merge_support_func__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__subscripting_ref__field_descriptors[10] = +{ { - "create_op_class_item", - 188, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_op_class_item), - &pg_query__create_op_class_item__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_op_family_stmt", - 189, + "refcontainertype", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_op_family_stmt), - &pg_query__create_op_family_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, refcontainertype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_op_family_stmt", - 190, + "refelemtype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_op_family_stmt), - &pg_query__alter_op_family_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, refelemtype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "drop_stmt", - 191, + "refrestype", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, drop_stmt), - &pg_query__drop_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, refrestype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "truncate_stmt", - 192, + "reftypmod", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, truncate_stmt), - &pg_query__truncate_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, reftypmod), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "comment_stmt", - 193, + "refcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, comment_stmt), - &pg_query__comment_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, refcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sec_label_stmt", - 194, - PROTOBUF_C_LABEL_NONE, + "refupperindexpr", + 7, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, sec_label_stmt), - &pg_query__sec_label_stmt__descriptor, + offsetof(PgQuery__SubscriptingRef, n_refupperindexpr), + offsetof(PgQuery__SubscriptingRef, refupperindexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "declare_cursor_stmt", - 195, - PROTOBUF_C_LABEL_NONE, + "reflowerindexpr", + 8, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, declare_cursor_stmt), - &pg_query__declare_cursor_stmt__descriptor, + offsetof(PgQuery__SubscriptingRef, n_reflowerindexpr), + offsetof(PgQuery__SubscriptingRef, reflowerindexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "close_portal_stmt", - 196, + "refexpr", + 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, close_portal_stmt), - &pg_query__close_portal_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, refexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fetch_stmt", - 197, + "refassgnexpr", + 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, fetch_stmt), - &pg_query__fetch_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubscriptingRef, refassgnexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__subscripting_ref__field_indices_by_name[] = { + 9, /* field[9] = refassgnexpr */ + 5, /* field[5] = refcollid */ + 1, /* field[1] = refcontainertype */ + 2, /* field[2] = refelemtype */ + 8, /* field[8] = refexpr */ + 7, /* field[7] = reflowerindexpr */ + 3, /* field[3] = refrestype */ + 4, /* field[4] = reftypmod */ + 6, /* field[6] = refupperindexpr */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__subscripting_ref__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 10 } +}; +const ProtobufCMessageDescriptor pg_query__subscripting_ref__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SubscriptingRef", + "SubscriptingRef", + "PgQuery__SubscriptingRef", + "pg_query", + sizeof(PgQuery__SubscriptingRef), + 10, + pg_query__subscripting_ref__field_descriptors, + pg_query__subscripting_ref__field_indices_by_name, + 1, pg_query__subscripting_ref__number_ranges, + (ProtobufCMessageInit) pg_query__subscripting_ref__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__func_expr__field_descriptors[10] = +{ { - "index_stmt", - 198, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, index_stmt), - &pg_query__index_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_stats_stmt", - 199, + "funcid", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_stats_stmt), - &pg_query__create_stats_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, funcid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stats_elem", - 200, + "funcresulttype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, stats_elem), - &pg_query__stats_elem__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, funcresulttype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_stats_stmt", - 201, + "funcretset", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_stats_stmt), - &pg_query__alter_stats_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, funcretset), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_function_stmt", - 202, + "funcvariadic", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_function_stmt), - &pg_query__create_function_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, funcvariadic), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "function_parameter", - 203, + "funcformat", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, function_parameter), - &pg_query__function_parameter__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, funcformat), + &pg_query__coercion_form__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_function_stmt", - 204, + "funccollid", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_function_stmt), - &pg_query__alter_function_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, funccollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "do_stmt", - 205, + "inputcollid", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, do_stmt), - &pg_query__do_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inline_code_block", - 206, - PROTOBUF_C_LABEL_NONE, + "args", + 9, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, inline_code_block), - &pg_query__inline_code_block__descriptor, + offsetof(PgQuery__FuncExpr, n_args), + offsetof(PgQuery__FuncExpr, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "call_stmt", - 207, + "location", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, call_stmt), - &pg_query__call_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FuncExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__func_expr__field_indices_by_name[] = { + 8, /* field[8] = args */ + 6, /* field[6] = funccollid */ + 5, /* field[5] = funcformat */ + 1, /* field[1] = funcid */ + 2, /* field[2] = funcresulttype */ + 3, /* field[3] = funcretset */ + 4, /* field[4] = funcvariadic */ + 7, /* field[7] = inputcollid */ + 9, /* field[9] = location */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__func_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 10 } +}; +const ProtobufCMessageDescriptor pg_query__func_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.FuncExpr", + "FuncExpr", + "PgQuery__FuncExpr", + "pg_query", + sizeof(PgQuery__FuncExpr), + 10, + pg_query__func_expr__field_descriptors, + pg_query__func_expr__field_indices_by_name, + 1, pg_query__func_expr__number_ranges, + (ProtobufCMessageInit) pg_query__func_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__named_arg_expr__field_descriptors[5] = +{ { - "call_context", - 208, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, call_context), - &pg_query__call_context__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__NamedArgExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rename_stmt", - 209, + "arg", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, rename_stmt), - &pg_query__rename_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__NamedArgExpr, arg), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_object_depends_stmt", - 210, + "name", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_object_depends_stmt), - &pg_query__alter_object_depends_stmt__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__NamedArgExpr, name), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_object_schema_stmt", - 211, + "argnumber", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_object_schema_stmt), - &pg_query__alter_object_schema_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NamedArgExpr, argnumber), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_owner_stmt", - 212, + "location", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_owner_stmt), - &pg_query__alter_owner_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NamedArgExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__named_arg_expr__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 3, /* field[3] = argnumber */ + 4, /* field[4] = location */ + 2, /* field[2] = name */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__named_arg_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__named_arg_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.NamedArgExpr", + "NamedArgExpr", + "PgQuery__NamedArgExpr", + "pg_query", + sizeof(PgQuery__NamedArgExpr), + 5, + pg_query__named_arg_expr__field_descriptors, + pg_query__named_arg_expr__field_indices_by_name, + 1, pg_query__named_arg_expr__number_ranges, + (ProtobufCMessageInit) pg_query__named_arg_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__op_expr__field_descriptors[8] = +{ { - "alter_operator_stmt", - 213, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_operator_stmt), - &pg_query__alter_operator_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_type_stmt", - 214, + "opno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_type_stmt), - &pg_query__alter_type_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, opno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rule_stmt", - 215, + "opresulttype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, rule_stmt), - &pg_query__rule_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, opresulttype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "notify_stmt", - 216, + "opretset", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, notify_stmt), - &pg_query__notify_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, opretset), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "listen_stmt", - 217, + "opcollid", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, listen_stmt), - &pg_query__listen_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, opcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unlisten_stmt", - 218, + "inputcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, unlisten_stmt), - &pg_query__unlisten_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "transaction_stmt", - 219, - PROTOBUF_C_LABEL_NONE, + "args", + 7, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, transaction_stmt), - &pg_query__transaction_stmt__descriptor, + offsetof(PgQuery__OpExpr, n_args), + offsetof(PgQuery__OpExpr, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "composite_type_stmt", - 220, + "location", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, composite_type_stmt), - &pg_query__composite_type_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__OpExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__op_expr__field_indices_by_name[] = { + 6, /* field[6] = args */ + 5, /* field[5] = inputcollid */ + 7, /* field[7] = location */ + 4, /* field[4] = opcollid */ + 1, /* field[1] = opno */ + 2, /* field[2] = opresulttype */ + 3, /* field[3] = opretset */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__op_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor pg_query__op_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.OpExpr", + "OpExpr", + "PgQuery__OpExpr", + "pg_query", + sizeof(PgQuery__OpExpr), + 8, + pg_query__op_expr__field_descriptors, + pg_query__op_expr__field_indices_by_name, + 1, pg_query__op_expr__number_ranges, + (ProtobufCMessageInit) pg_query__op_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__distinct_expr__field_descriptors[8] = +{ { - "create_enum_stmt", - 221, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_enum_stmt), - &pg_query__create_enum_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_range_stmt", - 222, + "opno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_range_stmt), - &pg_query__create_range_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, opno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_enum_stmt", - 223, + "opresulttype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_enum_stmt), - &pg_query__alter_enum_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, opresulttype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "view_stmt", - 224, + "opretset", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, view_stmt), - &pg_query__view_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, opretset), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "load_stmt", - 225, + "opcollid", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, load_stmt), - &pg_query__load_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, opcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "createdb_stmt", - 226, + "inputcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, createdb_stmt), - &pg_query__createdb_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_database_stmt", - 227, - PROTOBUF_C_LABEL_NONE, + "args", + 7, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_database_stmt), - &pg_query__alter_database_stmt__descriptor, + offsetof(PgQuery__DistinctExpr, n_args), + offsetof(PgQuery__DistinctExpr, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_database_refresh_coll_stmt", - 228, + "location", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_database_refresh_coll_stmt), - &pg_query__alter_database_refresh_coll_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__DistinctExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__distinct_expr__field_indices_by_name[] = { + 6, /* field[6] = args */ + 5, /* field[5] = inputcollid */ + 7, /* field[7] = location */ + 4, /* field[4] = opcollid */ + 1, /* field[1] = opno */ + 2, /* field[2] = opresulttype */ + 3, /* field[3] = opretset */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__distinct_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor pg_query__distinct_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DistinctExpr", + "DistinctExpr", + "PgQuery__DistinctExpr", + "pg_query", + sizeof(PgQuery__DistinctExpr), + 8, + pg_query__distinct_expr__field_descriptors, + pg_query__distinct_expr__field_indices_by_name, + 1, pg_query__distinct_expr__number_ranges, + (ProtobufCMessageInit) pg_query__distinct_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__null_if_expr__field_descriptors[8] = +{ { - "alter_database_set_stmt", - 229, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_database_set_stmt), - &pg_query__alter_database_set_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "dropdb_stmt", - 230, + "opno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, dropdb_stmt), - &pg_query__dropdb_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, opno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_system_stmt", - 231, + "opresulttype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_system_stmt), - &pg_query__alter_system_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, opresulttype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cluster_stmt", - 232, + "opretset", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, cluster_stmt), - &pg_query__cluster_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, opretset), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "vacuum_stmt", - 233, + "opcollid", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, vacuum_stmt), - &pg_query__vacuum_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, opcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "vacuum_relation", - 234, + "inputcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, vacuum_relation), - &pg_query__vacuum_relation__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "explain_stmt", - 235, - PROTOBUF_C_LABEL_NONE, + "args", + 7, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, explain_stmt), - &pg_query__explain_stmt__descriptor, + offsetof(PgQuery__NullIfExpr, n_args), + offsetof(PgQuery__NullIfExpr, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_table_as_stmt", - 236, + "location", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_table_as_stmt), - &pg_query__create_table_as_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__NullIfExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__null_if_expr__field_indices_by_name[] = { + 6, /* field[6] = args */ + 5, /* field[5] = inputcollid */ + 7, /* field[7] = location */ + 4, /* field[4] = opcollid */ + 1, /* field[1] = opno */ + 2, /* field[2] = opresulttype */ + 3, /* field[3] = opretset */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__null_if_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor pg_query__null_if_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.NullIfExpr", + "NullIfExpr", + "PgQuery__NullIfExpr", + "pg_query", + sizeof(PgQuery__NullIfExpr), + 8, + pg_query__null_if_expr__field_descriptors, + pg_query__null_if_expr__field_indices_by_name, + 1, pg_query__null_if_expr__number_ranges, + (ProtobufCMessageInit) pg_query__null_if_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__scalar_array_op_expr__field_descriptors[6] = +{ { - "refresh_mat_view_stmt", - 237, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, refresh_mat_view_stmt), - &pg_query__refresh_mat_view_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScalarArrayOpExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "check_point_stmt", - 238, + "opno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, check_point_stmt), - &pg_query__check_point_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScalarArrayOpExpr, opno), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "discard_stmt", - 239, + "use_or", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, discard_stmt), - &pg_query__discard_stmt__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScalarArrayOpExpr, use_or), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lock_stmt", - 240, + "inputcollid", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, lock_stmt), - &pg_query__lock_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScalarArrayOpExpr, inputcollid), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "constraints_set_stmt", - 241, - PROTOBUF_C_LABEL_NONE, + "args", + 5, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, constraints_set_stmt), - &pg_query__constraints_set_stmt__descriptor, + offsetof(PgQuery__ScalarArrayOpExpr, n_args), + offsetof(PgQuery__ScalarArrayOpExpr, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "reindex_stmt", - 242, + "location", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, reindex_stmt), - &pg_query__reindex_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScalarArrayOpExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__scalar_array_op_expr__field_indices_by_name[] = { + 4, /* field[4] = args */ + 3, /* field[3] = inputcollid */ + 5, /* field[5] = location */ + 1, /* field[1] = opno */ + 2, /* field[2] = use_or */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__scalar_array_op_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__scalar_array_op_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ScalarArrayOpExpr", + "ScalarArrayOpExpr", + "PgQuery__ScalarArrayOpExpr", + "pg_query", + sizeof(PgQuery__ScalarArrayOpExpr), + 6, + pg_query__scalar_array_op_expr__field_descriptors, + pg_query__scalar_array_op_expr__field_indices_by_name, + 1, pg_query__scalar_array_op_expr__number_ranges, + (ProtobufCMessageInit) pg_query__scalar_array_op_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__bool_expr__field_descriptors[4] = +{ { - "create_conversion_stmt", - 243, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_conversion_stmt), - &pg_query__create_conversion_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__BoolExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_cast_stmt", - 244, + "boolop", + 2, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__BoolExpr, boolop), + &pg_query__bool_expr_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "args", + 3, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_cast_stmt), - &pg_query__create_cast_stmt__descriptor, + offsetof(PgQuery__BoolExpr, n_args), + offsetof(PgQuery__BoolExpr, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_transform_stmt", - 245, + "location", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_transform_stmt), - &pg_query__create_transform_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__BoolExpr, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__bool_expr__field_indices_by_name[] = { + 2, /* field[2] = args */ + 1, /* field[1] = boolop */ + 3, /* field[3] = location */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__bool_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__bool_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.BoolExpr", + "BoolExpr", + "PgQuery__BoolExpr", + "pg_query", + sizeof(PgQuery__BoolExpr), + 4, + pg_query__bool_expr__field_descriptors, + pg_query__bool_expr__field_indices_by_name, + 1, pg_query__bool_expr__number_ranges, + (ProtobufCMessageInit) pg_query__bool_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__sub_link__field_descriptors[7] = +{ { - "prepare_stmt", - 246, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, prepare_stmt), - &pg_query__prepare_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubLink, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "execute_stmt", - 247, + "sub_link_type", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, execute_stmt), - &pg_query__execute_stmt__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubLink, sub_link_type), + &pg_query__sub_link_type__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "deallocate_stmt", - 248, + "sub_link_id", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, deallocate_stmt), - &pg_query__deallocate_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubLink, sub_link_id), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "drop_owned_stmt", - 249, + "testexpr", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, drop_owned_stmt), - &pg_query__drop_owned_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubLink, testexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "reassign_owned_stmt", - 250, - PROTOBUF_C_LABEL_NONE, + "oper_name", + 5, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, reassign_owned_stmt), - &pg_query__reassign_owned_stmt__descriptor, + offsetof(PgQuery__SubLink, n_oper_name), + offsetof(PgQuery__SubLink, oper_name), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_tsdictionary_stmt", - 251, + "subselect", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_tsdictionary_stmt), - &pg_query__alter_tsdictionary_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubLink, subselect), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_tsconfiguration_stmt", - 252, + "location", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_tsconfiguration_stmt), - &pg_query__alter_tsconfiguration_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubLink, location), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__sub_link__field_indices_by_name[] = { + 6, /* field[6] = location */ + 4, /* field[4] = oper_name */ + 2, /* field[2] = sub_link_id */ + 1, /* field[1] = sub_link_type */ + 5, /* field[5] = subselect */ + 3, /* field[3] = testexpr */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__sub_link__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__sub_link__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SubLink", + "SubLink", + "PgQuery__SubLink", + "pg_query", + sizeof(PgQuery__SubLink), + 7, + pg_query__sub_link__field_descriptors, + pg_query__sub_link__field_indices_by_name, + 1, pg_query__sub_link__number_ranges, + (ProtobufCMessageInit) pg_query__sub_link__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__sub_plan__field_descriptors[17] = +{ { - "publication_table", - 253, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, publication_table), - &pg_query__publication_table__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "publication_obj_spec", - 254, + "sub_link_type", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, publication_obj_spec), - &pg_query__publication_obj_spec__descriptor, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, sub_link_type), + &pg_query__sub_link_type__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_publication_stmt", - 255, + "testexpr", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_publication_stmt), - &pg_query__create_publication_stmt__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, testexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_publication_stmt", - 256, - PROTOBUF_C_LABEL_NONE, + "param_ids", + 4, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_publication_stmt), - &pg_query__alter_publication_stmt__descriptor, + offsetof(PgQuery__SubPlan, n_param_ids), + offsetof(PgQuery__SubPlan, param_ids), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "create_subscription_stmt", - 257, + "plan_id", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, create_subscription_stmt), - &pg_query__create_subscription_stmt__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, plan_id), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alter_subscription_stmt", - 258, + "plan_name", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, alter_subscription_stmt), - &pg_query__alter_subscription_stmt__descriptor, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, plan_name), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + &protobuf_c_empty_string, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "drop_subscription_stmt", - 259, + "first_col_type", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, drop_subscription_stmt), - &pg_query__drop_subscription_stmt__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, first_col_type), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "integer", - 260, + "first_col_typmod", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, integer), - &pg_query__integer__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, first_col_typmod), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "float", - 261, + "first_col_collation", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, float_), - &pg_query__float__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, first_col_collation), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "boolean", - 262, + "use_hash_table", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, boolean), - &pg_query__boolean__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, use_hash_table), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "string", - 263, + "unknown_eq_false", + 11, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, string), - &pg_query__string__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, unknown_eq_false), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "bit_string", - 264, + "parallel_safe", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, bit_string), - &pg_query__bit_string__descriptor, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, parallel_safe), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "list", - 265, - PROTOBUF_C_LABEL_NONE, + "set_param", + 13, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, list), - &pg_query__list__descriptor, + offsetof(PgQuery__SubPlan, n_set_param), + offsetof(PgQuery__SubPlan, set_param), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "int_list", - 266, - PROTOBUF_C_LABEL_NONE, + "par_param", + 14, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, int_list), - &pg_query__int_list__descriptor, + offsetof(PgQuery__SubPlan, n_par_param), + offsetof(PgQuery__SubPlan, par_param), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "oid_list", - 267, - PROTOBUF_C_LABEL_NONE, + "args", + 15, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, oid_list), - &pg_query__oid_list__descriptor, + offsetof(PgQuery__SubPlan, n_args), + offsetof(PgQuery__SubPlan, args), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "a_const", - 268, + "startup_cost", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Node, node_case), - offsetof(PgQuery__Node, a_const), - &pg_query__a__const__descriptor, + PROTOBUF_C_TYPE_DOUBLE, + 0, /* quantifier_offset */ + offsetof(PgQuery__SubPlan, startup_cost), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__node__field_indices_by_name[] = { - 75, /* field[75] = a_array_expr */ - 267, /* field[267] = a_const */ - 67, /* field[67] = a_expr */ - 73, /* field[73] = a_indices */ - 74, /* field[74] = a_indirection */ - 72, /* field[72] = a_star */ - 147, /* field[147] = access_priv */ - 6, /* field[6] = aggref */ - 0, /* field[0] = alias */ - 143, /* field[143] = alter_collation_stmt */ - 227, /* field[227] = alter_database_refresh_coll_stmt */ - 228, /* field[228] = alter_database_set_stmt */ - 226, /* field[226] = alter_database_stmt */ - 149, /* field[149] = alter_default_privileges_stmt */ - 144, /* field[144] = alter_domain_stmt */ - 222, /* field[222] = alter_enum_stmt */ - 176, /* field[176] = alter_event_trig_stmt */ - 161, /* field[161] = alter_extension_contents_stmt */ - 160, /* field[160] = alter_extension_stmt */ - 163, /* field[163] = alter_fdw_stmt */ - 165, /* field[165] = alter_foreign_server_stmt */ - 203, /* field[203] = alter_function_stmt */ - 209, /* field[209] = alter_object_depends_stmt */ - 210, /* field[210] = alter_object_schema_stmt */ - 189, /* field[189] = alter_op_family_stmt */ - 212, /* field[212] = alter_operator_stmt */ - 211, /* field[211] = alter_owner_stmt */ - 172, /* field[172] = alter_policy_stmt */ - 255, /* field[255] = alter_publication_stmt */ - 180, /* field[180] = alter_role_set_stmt */ - 179, /* field[179] = alter_role_stmt */ - 183, /* field[183] = alter_seq_stmt */ - 200, /* field[200] = alter_stats_stmt */ - 257, /* field[257] = alter_subscription_stmt */ - 230, /* field[230] = alter_system_stmt */ - 142, /* field[142] = alter_table_cmd */ - 158, /* field[158] = alter_table_move_all_stmt */ - 157, /* field[157] = alter_table_space_options_stmt */ - 140, /* field[140] = alter_table_stmt */ - 251, /* field[251] = alter_tsconfiguration_stmt */ - 250, /* field[250] = alter_tsdictionary_stmt */ - 213, /* field[213] = alter_type_stmt */ - 168, /* field[168] = alter_user_mapping_stmt */ - 21, /* field[21] = alternative_sub_plan */ - 26, /* field[26] = array_coerce_expr */ - 32, /* field[32] = array_expr */ - 263, /* field[263] = bit_string */ - 18, /* field[18] = bool_expr */ - 261, /* field[261] = boolean */ - 50, /* field[50] = boolean_test */ - 207, /* field[207] = call_context */ - 206, /* field[206] = call_stmt */ - 29, /* field[29] = case_expr */ - 31, /* field[31] = case_test_expr */ - 30, /* field[30] = case_when */ - 237, /* field[237] = check_point_stmt */ - 195, /* field[195] = close_portal_stmt */ - 231, /* field[231] = cluster_stmt */ - 35, /* field[35] = coalesce_expr */ - 52, /* field[52] = coerce_to_domain */ - 53, /* field[53] = coerce_to_domain_value */ - 25, /* field[25] = coerce_via_io */ - 69, /* field[69] = collate_clause */ - 28, /* field[28] = collate_expr */ - 85, /* field[85] = column_def */ - 65, /* field[65] = column_ref */ - 192, /* field[192] = comment_stmt */ - 111, /* field[111] = common_table_expr */ - 219, /* field[219] = composite_type_stmt */ - 154, /* field[154] = constraint */ - 240, /* field[240] = constraints_set_stmt */ - 27, /* field[27] = convert_rowtype_expr */ - 150, /* field[150] = copy_stmt */ - 173, /* field[173] = create_am_stmt */ - 243, /* field[243] = create_cast_stmt */ - 242, /* field[242] = create_conversion_stmt */ - 185, /* field[185] = create_domain_stmt */ - 220, /* field[220] = create_enum_stmt */ - 175, /* field[175] = create_event_trig_stmt */ - 159, /* field[159] = create_extension_stmt */ - 162, /* field[162] = create_fdw_stmt */ - 164, /* field[164] = create_foreign_server_stmt */ - 166, /* field[166] = create_foreign_table_stmt */ - 201, /* field[201] = create_function_stmt */ - 187, /* field[187] = create_op_class_item */ - 186, /* field[186] = create_op_class_stmt */ - 188, /* field[188] = create_op_family_stmt */ - 177, /* field[177] = create_plang_stmt */ - 171, /* field[171] = create_policy_stmt */ - 254, /* field[254] = create_publication_stmt */ - 221, /* field[221] = create_range_stmt */ - 178, /* field[178] = create_role_stmt */ - 139, /* field[139] = create_schema_stmt */ - 182, /* field[182] = create_seq_stmt */ - 198, /* field[198] = create_stats_stmt */ - 153, /* field[153] = create_stmt */ - 256, /* field[256] = create_subscription_stmt */ - 235, /* field[235] = create_table_as_stmt */ - 155, /* field[155] = create_table_space_stmt */ - 244, /* field[244] = create_transform_stmt */ - 174, /* field[174] = create_trig_stmt */ - 167, /* field[167] = create_user_mapping_stmt */ - 225, /* field[225] = createdb_stmt */ - 110, /* field[110] = ctecycle_clause */ - 109, /* field[109] = ctesearch_clause */ - 55, /* field[55] = current_of_expr */ - 247, /* field[247] = deallocate_stmt */ - 194, /* field[194] = declare_cursor_stmt */ - 88, /* field[88] = def_elem */ - 184, /* field[184] = define_stmt */ - 132, /* field[132] = delete_stmt */ - 238, /* field[238] = discard_stmt */ - 15, /* field[15] = distinct_expr */ - 204, /* field[204] = do_stmt */ - 248, /* field[248] = drop_owned_stmt */ - 181, /* field[181] = drop_role_stmt */ - 190, /* field[190] = drop_stmt */ - 258, /* field[258] = drop_subscription_stmt */ - 156, /* field[156] = drop_table_space_stmt */ - 169, /* field[169] = drop_user_mapping_stmt */ - 229, /* field[229] = dropdb_stmt */ - 246, /* field[246] = execute_stmt */ - 234, /* field[234] = explain_stmt */ - 196, /* field[196] = fetch_stmt */ - 22, /* field[22] = field_select */ - 23, /* field[23] = field_store */ - 260, /* field[260] = float */ - 61, /* field[61] = from_expr */ - 71, /* field[71] = func_call */ - 12, /* field[12] = func_expr */ - 202, /* field[202] = function_parameter */ - 148, /* field[148] = grant_role_stmt */ - 145, /* field[145] = grant_stmt */ - 7, /* field[7] = grouping_func */ - 103, /* field[103] = grouping_set */ - 170, /* field[170] = import_foreign_schema_stmt */ - 87, /* field[87] = index_elem */ - 197, /* field[197] = index_stmt */ - 107, /* field[107] = infer_clause */ - 57, /* field[57] = inference_elem */ - 205, /* field[205] = inline_code_block */ - 131, /* field[131] = insert_stmt */ - 265, /* field[265] = int_list */ - 259, /* field[259] = integer */ - 3, /* field[3] = into_clause */ - 60, /* field[60] = join_expr */ - 127, /* field[127] = json_agg_constructor */ - 115, /* field[115] = json_argument */ - 129, /* field[129] = json_array_agg */ - 125, /* field[125] = json_array_constructor */ - 126, /* field[126] = json_array_query_constructor */ - 44, /* field[44] = json_behavior */ - 42, /* field[42] = json_constructor_expr */ - 45, /* field[45] = json_expr */ - 39, /* field[39] = json_format */ - 116, /* field[116] = json_func_expr */ - 43, /* field[43] = json_is_predicate */ - 120, /* field[120] = json_key_value */ - 128, /* field[128] = json_object_agg */ - 124, /* field[124] = json_object_constructor */ - 114, /* field[114] = json_output */ - 121, /* field[121] = json_parse_expr */ - 40, /* field[40] = json_returning */ - 122, /* field[122] = json_scalar_expr */ - 123, /* field[123] = json_serialize_expr */ - 118, /* field[118] = json_table */ - 119, /* field[119] = json_table_column */ - 46, /* field[46] = json_table_path */ - 47, /* field[47] = json_table_path_scan */ - 117, /* field[117] = json_table_path_spec */ - 48, /* field[48] = json_table_sibling_join */ - 41, /* field[41] = json_value_expr */ - 264, /* field[264] = list */ - 216, /* field[216] = listen_stmt */ - 224, /* field[224] = load_stmt */ - 239, /* field[239] = lock_stmt */ - 89, /* field[89] = locking_clause */ - 51, /* field[51] = merge_action */ - 134, /* field[134] = merge_stmt */ - 10, /* field[10] = merge_support_func */ - 112, /* field[112] = merge_when_clause */ - 36, /* field[36] = min_max_expr */ - 77, /* field[77] = multi_assign_ref */ - 13, /* field[13] = named_arg_expr */ - 56, /* field[56] = next_value_expr */ - 215, /* field[215] = notify_stmt */ - 16, /* field[16] = null_if_expr */ - 49, /* field[49] = null_test */ - 146, /* field[146] = object_with_args */ - 266, /* field[266] = oid_list */ - 108, /* field[108] = on_conflict_clause */ - 62, /* field[62] = on_conflict_expr */ - 14, /* field[14] = op_expr */ - 5, /* field[5] = param */ - 66, /* field[66] = param_ref */ - 93, /* field[93] = partition_bound_spec */ - 96, /* field[96] = partition_cmd */ - 91, /* field[91] = partition_elem */ - 94, /* field[94] = partition_range_datum */ - 92, /* field[92] = partition_spec */ - 138, /* field[138] = plassign_stmt */ - 245, /* field[245] = prepare_stmt */ - 253, /* field[253] = publication_obj_spec */ - 252, /* field[252] = publication_table */ - 63, /* field[63] = query */ - 81, /* field[81] = range_function */ - 80, /* field[80] = range_subselect */ - 82, /* field[82] = range_table_func */ - 83, /* field[83] = range_table_func_col */ - 84, /* field[84] = range_table_sample */ - 97, /* field[97] = range_tbl_entry */ - 99, /* field[99] = range_tbl_function */ - 59, /* field[59] = range_tbl_ref */ - 1, /* field[1] = range_var */ - 130, /* field[130] = raw_stmt */ - 249, /* field[249] = reassign_owned_stmt */ - 236, /* field[236] = refresh_mat_view_stmt */ - 241, /* field[241] = reindex_stmt */ - 24, /* field[24] = relabel_type */ - 208, /* field[208] = rename_stmt */ - 141, /* field[141] = replica_identity_stmt */ - 76, /* field[76] = res_target */ - 137, /* field[137] = return_stmt */ - 70, /* field[70] = role_spec */ - 34, /* field[34] = row_compare_expr */ - 33, /* field[33] = row_expr */ - 105, /* field[105] = row_mark_clause */ - 98, /* field[98] = rtepermission_info */ - 214, /* field[214] = rule_stmt */ - 17, /* field[17] = scalar_array_op_expr */ - 193, /* field[193] = sec_label_stmt */ - 135, /* field[135] = select_stmt */ - 136, /* field[136] = set_operation_stmt */ - 54, /* field[54] = set_to_default */ - 95, /* field[95] = single_partition_spec */ - 78, /* field[78] = sort_by */ - 102, /* field[102] = sort_group_clause */ - 37, /* field[37] = sqlvalue_function */ - 199, /* field[199] = stats_elem */ - 262, /* field[262] = string */ - 19, /* field[19] = sub_link */ - 20, /* field[20] = sub_plan */ - 11, /* field[11] = subscripting_ref */ - 2, /* field[2] = table_func */ - 86, /* field[86] = table_like_clause */ - 100, /* field[100] = table_sample_clause */ - 58, /* field[58] = target_entry */ - 218, /* field[218] = transaction_stmt */ - 113, /* field[113] = trigger_transition */ - 191, /* field[191] = truncate_stmt */ - 68, /* field[68] = type_cast */ - 64, /* field[64] = type_name */ - 217, /* field[217] = unlisten_stmt */ - 133, /* field[133] = update_stmt */ - 233, /* field[233] = vacuum_relation */ - 232, /* field[232] = vacuum_stmt */ - 4, /* field[4] = var */ - 151, /* field[151] = variable_set_stmt */ - 152, /* field[152] = variable_show_stmt */ - 223, /* field[223] = view_stmt */ - 104, /* field[104] = window_clause */ - 79, /* field[79] = window_def */ - 8, /* field[8] = window_func */ - 9, /* field[9] = window_func_run_condition */ - 101, /* field[101] = with_check_option */ - 106, /* field[106] = with_clause */ - 38, /* field[38] = xml_expr */ - 90, /* field[90] = xml_serialize */ -}; -static const ProtobufCIntRange pg_query__node__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 268 } -}; -const ProtobufCMessageDescriptor pg_query__node__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Node", - "Node", - "PgQuery__Node", - "pg_query", - sizeof(PgQuery__Node), - 268, - pg_query__node__field_descriptors, - pg_query__node__field_indices_by_name, - 1, pg_query__node__number_ranges, - (ProtobufCMessageInit) pg_query__node__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__integer__field_descriptors[1] = -{ { - "ival", - 1, + "per_call_cost", + 17, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_DOUBLE, 0, /* quantifier_offset */ - offsetof(PgQuery__Integer, ival), + offsetof(PgQuery__SubPlan, per_call_cost), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__integer__field_indices_by_name[] = { - 0, /* field[0] = ival */ +static const unsigned pg_query__sub_plan__field_indices_by_name[] = { + 14, /* field[14] = args */ + 8, /* field[8] = first_col_collation */ + 6, /* field[6] = first_col_type */ + 7, /* field[7] = first_col_typmod */ + 13, /* field[13] = par_param */ + 11, /* field[11] = parallel_safe */ + 3, /* field[3] = param_ids */ + 16, /* field[16] = per_call_cost */ + 4, /* field[4] = plan_id */ + 5, /* field[5] = plan_name */ + 12, /* field[12] = set_param */ + 15, /* field[15] = startup_cost */ + 1, /* field[1] = sub_link_type */ + 2, /* field[2] = testexpr */ + 10, /* field[10] = unknown_eq_false */ + 9, /* field[9] = use_hash_table */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__integer__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__sub_plan__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 17 } }; -const ProtobufCMessageDescriptor pg_query__integer__descriptor = +const ProtobufCMessageDescriptor pg_query__sub_plan__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Integer", - "Integer", - "PgQuery__Integer", + "pg_query.SubPlan", + "SubPlan", + "PgQuery__SubPlan", "pg_query", - sizeof(PgQuery__Integer), - 1, - pg_query__integer__field_descriptors, - pg_query__integer__field_indices_by_name, - 1, pg_query__integer__number_ranges, - (ProtobufCMessageInit) pg_query__integer__init, + sizeof(PgQuery__SubPlan), + 17, + pg_query__sub_plan__field_descriptors, + pg_query__sub_plan__field_indices_by_name, + 1, pg_query__sub_plan__number_ranges, + (ProtobufCMessageInit) pg_query__sub_plan__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__float__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__alternative_sub_plan__field_descriptors[2] = { { - "fval", + "xpr", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Float, fval), + offsetof(PgQuery__AlternativeSubPlan, xpr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "subplans", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlternativeSubPlan, n_subplans), + offsetof(PgQuery__AlternativeSubPlan, subplans), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__float__field_indices_by_name[] = { - 0, /* field[0] = fval */ +static const unsigned pg_query__alternative_sub_plan__field_indices_by_name[] = { + 1, /* field[1] = subplans */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__float__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alternative_sub_plan__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__float__descriptor = +const ProtobufCMessageDescriptor pg_query__alternative_sub_plan__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Float", - "Float", - "PgQuery__Float", + "pg_query.AlternativeSubPlan", + "AlternativeSubPlan", + "PgQuery__AlternativeSubPlan", "pg_query", - sizeof(PgQuery__Float), - 1, - pg_query__float__field_descriptors, - pg_query__float__field_indices_by_name, - 1, pg_query__float__number_ranges, - (ProtobufCMessageInit) pg_query__float__init, + sizeof(PgQuery__AlternativeSubPlan), + 2, + pg_query__alternative_sub_plan__field_descriptors, + pg_query__alternative_sub_plan__field_indices_by_name, + 1, pg_query__alternative_sub_plan__number_ranges, + (ProtobufCMessageInit) pg_query__alternative_sub_plan__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__boolean__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__field_select__field_descriptors[6] = { { - "boolval", + "xpr", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Boolean, boolval), + offsetof(PgQuery__FieldSelect, xpr), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "arg", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__FieldSelect, arg), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__boolean__field_indices_by_name[] = { - 0, /* field[0] = boolval */ -}; -static const ProtobufCIntRange pg_query__boolean__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__boolean__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Boolean", - "Boolean", - "PgQuery__Boolean", - "pg_query", - sizeof(PgQuery__Boolean), - 1, - pg_query__boolean__field_descriptors, - pg_query__boolean__field_indices_by_name, - 1, pg_query__boolean__number_ranges, - (ProtobufCMessageInit) pg_query__boolean__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__string__field_descriptors[1] = -{ { - "sval", - 1, + "fieldnum", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__String, sval), + offsetof(PgQuery__FieldSelect, fieldnum), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__string__field_indices_by_name[] = { - 0, /* field[0] = sval */ -}; -static const ProtobufCIntRange pg_query__string__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__string__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.String", - "String", - "PgQuery__String", - "pg_query", - sizeof(PgQuery__String), - 1, - pg_query__string__field_descriptors, - pg_query__string__field_indices_by_name, - 1, pg_query__string__number_ranges, - (ProtobufCMessageInit) pg_query__string__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__bit_string__field_descriptors[1] = -{ { - "bsval", - 1, + "resulttype", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__BitString, bsval), + offsetof(PgQuery__FieldSelect, resulttype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "resulttypmod", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FieldSelect, resulttypmod), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "resultcollid", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FieldSelect, resultcollid), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__bit_string__field_indices_by_name[] = { - 0, /* field[0] = bsval */ +static const unsigned pg_query__field_select__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 2, /* field[2] = fieldnum */ + 5, /* field[5] = resultcollid */ + 3, /* field[3] = resulttype */ + 4, /* field[4] = resulttypmod */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__bit_string__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__field_select__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__bit_string__descriptor = +const ProtobufCMessageDescriptor pg_query__field_select__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.BitString", - "BitString", - "PgQuery__BitString", + "pg_query.FieldSelect", + "FieldSelect", + "PgQuery__FieldSelect", "pg_query", - sizeof(PgQuery__BitString), - 1, - pg_query__bit_string__field_descriptors, - pg_query__bit_string__field_indices_by_name, - 1, pg_query__bit_string__number_ranges, - (ProtobufCMessageInit) pg_query__bit_string__init, + sizeof(PgQuery__FieldSelect), + 6, + pg_query__field_select__field_descriptors, + pg_query__field_select__field_indices_by_name, + 1, pg_query__field_select__number_ranges, + (ProtobufCMessageInit) pg_query__field_select__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__list__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__field_store__field_descriptors[5] = { { - "items", + "xpr", 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__FieldStore, xpr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "arg", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__FieldStore, arg), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "newvals", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__List, n_items), - offsetof(PgQuery__List, items), + offsetof(PgQuery__FieldStore, n_newvals), + offsetof(PgQuery__FieldStore, newvals), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "fieldnums", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__FieldStore, n_fieldnums), + offsetof(PgQuery__FieldStore, fieldnums), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "resulttype", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__FieldStore, resulttype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const unsigned pg_query__list__field_indices_by_name[] = { - 0, /* field[0] = items */ +static const unsigned pg_query__field_store__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 3, /* field[3] = fieldnums */ + 2, /* field[2] = newvals */ + 4, /* field[4] = resulttype */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__list__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__field_store__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__list__descriptor = +const ProtobufCMessageDescriptor pg_query__field_store__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.List", - "List", - "PgQuery__List", + "pg_query.FieldStore", + "FieldStore", + "PgQuery__FieldStore", "pg_query", - sizeof(PgQuery__List), - 1, - pg_query__list__field_descriptors, - pg_query__list__field_indices_by_name, - 1, pg_query__list__number_ranges, - (ProtobufCMessageInit) pg_query__list__init, + sizeof(PgQuery__FieldStore), + 5, + pg_query__field_store__field_descriptors, + pg_query__field_store__field_indices_by_name, + 1, pg_query__field_store__number_ranges, + (ProtobufCMessageInit) pg_query__field_store__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__oid_list__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__relabel_type__field_descriptors[7] = { { - "items", + "xpr", 1, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__OidList, n_items), - offsetof(PgQuery__OidList, items), + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, xpr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "arg", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "resulttype", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, resulttype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "resulttypmod", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, resulttypmod), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "resultcollid", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, resultcollid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "relabelformat", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, relabelformat), + &pg_query__coercion_form__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RelabelType, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const unsigned pg_query__oid_list__field_indices_by_name[] = { - 0, /* field[0] = items */ +static const unsigned pg_query__relabel_type__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 6, /* field[6] = location */ + 5, /* field[5] = relabelformat */ + 4, /* field[4] = resultcollid */ + 2, /* field[2] = resulttype */ + 3, /* field[3] = resulttypmod */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__oid_list__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__relabel_type__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__oid_list__descriptor = +const ProtobufCMessageDescriptor pg_query__relabel_type__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.OidList", - "OidList", - "PgQuery__OidList", + "pg_query.RelabelType", + "RelabelType", + "PgQuery__RelabelType", "pg_query", - sizeof(PgQuery__OidList), - 1, - pg_query__oid_list__field_descriptors, - pg_query__oid_list__field_indices_by_name, - 1, pg_query__oid_list__number_ranges, - (ProtobufCMessageInit) pg_query__oid_list__init, + sizeof(PgQuery__RelabelType), + 7, + pg_query__relabel_type__field_descriptors, + pg_query__relabel_type__field_indices_by_name, + 1, pg_query__relabel_type__number_ranges, + (ProtobufCMessageInit) pg_query__relabel_type__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__int_list__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__coerce_via_io__field_descriptors[6] = { { - "items", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IntList, n_items), - offsetof(PgQuery__IntList, items), - &pg_query__node__descriptor, + "xpr", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CoerceViaIO, xpr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "arg", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CoerceViaIO, arg), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "resulttype", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CoerceViaIO, resulttype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "resultcollid", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CoerceViaIO, resultcollid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coerceformat", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__CoerceViaIO, coerceformat), + &pg_query__coercion_form__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CoerceViaIO, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__int_list__field_indices_by_name[] = { - 0, /* field[0] = items */ +static const unsigned pg_query__coerce_via_io__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 4, /* field[4] = coerceformat */ + 5, /* field[5] = location */ + 3, /* field[3] = resultcollid */ + 2, /* field[2] = resulttype */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__int_list__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__coerce_via_io__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__int_list__descriptor = +const ProtobufCMessageDescriptor pg_query__coerce_via_io__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.IntList", - "IntList", - "PgQuery__IntList", + "pg_query.CoerceViaIO", + "CoerceViaIO", + "PgQuery__CoerceViaIO", "pg_query", - sizeof(PgQuery__IntList), - 1, - pg_query__int_list__field_descriptors, - pg_query__int_list__field_indices_by_name, - 1, pg_query__int_list__number_ranges, - (ProtobufCMessageInit) pg_query__int_list__init, + sizeof(PgQuery__CoerceViaIO), + 6, + pg_query__coerce_via_io__field_descriptors, + pg_query__coerce_via_io__field_indices_by_name, + 1, pg_query__coerce_via_io__number_ranges, + (ProtobufCMessageInit) pg_query__coerce_via_io__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__a__const__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__array_coerce_expr__field_descriptors[8] = { { - "ival", + "xpr", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AConst, val_case), - offsetof(PgQuery__AConst, ival), - &pg_query__integer__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayCoerceExpr, xpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fval", + "arg", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AConst, val_case), - offsetof(PgQuery__AConst, fval), - &pg_query__float__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayCoerceExpr, arg), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "boolval", + "elemexpr", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AConst, val_case), - offsetof(PgQuery__AConst, boolval), - &pg_query__boolean__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayCoerceExpr, elemexpr), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sval", + "resulttype", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AConst, val_case), - offsetof(PgQuery__AConst, sval), - &pg_query__string__descriptor, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayCoerceExpr, resulttype), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "bsval", + "resulttypmod", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AConst, val_case), - offsetof(PgQuery__AConst, bsval), - &pg_query__bit_string__descriptor, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayCoerceExpr, resulttypmod), NULL, - PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "isnull", - 10, + "resultcollid", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AConst, isnull), + offsetof(PgQuery__ArrayCoerceExpr, resultcollid), + NULL, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coerceformat", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayCoerceExpr, coerceformat), + &pg_query__coercion_form__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 11, + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AConst, location), + offsetof(PgQuery__ArrayCoerceExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__a__const__field_indices_by_name[] = { - 2, /* field[2] = boolval */ - 4, /* field[4] = bsval */ - 1, /* field[1] = fval */ - 5, /* field[5] = isnull */ - 0, /* field[0] = ival */ - 6, /* field[6] = location */ - 3, /* field[3] = sval */ +static const unsigned pg_query__array_coerce_expr__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 6, /* field[6] = coerceformat */ + 2, /* field[2] = elemexpr */ + 7, /* field[7] = location */ + 5, /* field[5] = resultcollid */ + 3, /* field[3] = resulttype */ + 4, /* field[4] = resulttypmod */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__a__const__number_ranges[2 + 1] = +static const ProtobufCIntRange pg_query__array_coerce_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 10, 5 }, - { 0, 7 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__a__const__descriptor = +const ProtobufCMessageDescriptor pg_query__array_coerce_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.A_Const", - "AConst", - "PgQuery__AConst", + "pg_query.ArrayCoerceExpr", + "ArrayCoerceExpr", + "PgQuery__ArrayCoerceExpr", "pg_query", - sizeof(PgQuery__AConst), - 7, - pg_query__a__const__field_descriptors, - pg_query__a__const__field_indices_by_name, - 2, pg_query__a__const__number_ranges, - (ProtobufCMessageInit) pg_query__a__const__init, + sizeof(PgQuery__ArrayCoerceExpr), + 8, + pg_query__array_coerce_expr__field_descriptors, + pg_query__array_coerce_expr__field_indices_by_name, + 1, pg_query__array_coerce_expr__number_ranges, + (ProtobufCMessageInit) pg_query__array_coerce_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alias__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__convert_rowtype_expr__field_descriptors[5] = { { - "aliasname", + "xpr", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Alias, aliasname), + offsetof(PgQuery__ConvertRowtypeExpr, xpr), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "colnames", + "arg", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Alias, n_colnames), - offsetof(PgQuery__Alias, colnames), + 0, /* quantifier_offset */ + offsetof(PgQuery__ConvertRowtypeExpr, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "resulttype", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ConvertRowtypeExpr, resulttype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "convertformat", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__ConvertRowtypeExpr, convertformat), + &pg_query__coercion_form__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ConvertRowtypeExpr, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const unsigned pg_query__alias__field_indices_by_name[] = { - 0, /* field[0] = aliasname */ - 1, /* field[1] = colnames */ +static const unsigned pg_query__convert_rowtype_expr__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 3, /* field[3] = convertformat */ + 4, /* field[4] = location */ + 2, /* field[2] = resulttype */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__alias__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__convert_rowtype_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__alias__descriptor = +const ProtobufCMessageDescriptor pg_query__convert_rowtype_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Alias", - "Alias", - "PgQuery__Alias", + "pg_query.ConvertRowtypeExpr", + "ConvertRowtypeExpr", + "PgQuery__ConvertRowtypeExpr", "pg_query", - sizeof(PgQuery__Alias), - 2, - pg_query__alias__field_descriptors, - pg_query__alias__field_indices_by_name, - 1, pg_query__alias__number_ranges, - (ProtobufCMessageInit) pg_query__alias__init, + sizeof(PgQuery__ConvertRowtypeExpr), + 5, + pg_query__convert_rowtype_expr__field_descriptors, + pg_query__convert_rowtype_expr__field_indices_by_name, + 1, pg_query__convert_rowtype_expr__number_ranges, + (ProtobufCMessageInit) pg_query__convert_rowtype_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__range_var__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__collate_expr__field_descriptors[4] = { { - "catalogname", + "xpr", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, catalogname), + offsetof(PgQuery__CollateExpr, xpr), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "schemaname", + "arg", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, schemaname), + offsetof(PgQuery__CollateExpr, arg), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relname", + "coll_oid", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, relname), + offsetof(PgQuery__CollateExpr, coll_oid), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inh", + "location", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, inh), + offsetof(PgQuery__CollateExpr, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__collate_expr__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 2, /* field[2] = coll_oid */ + 3, /* field[3] = location */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__collate_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__collate_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CollateExpr", + "CollateExpr", + "PgQuery__CollateExpr", + "pg_query", + sizeof(PgQuery__CollateExpr), + 4, + pg_query__collate_expr__field_descriptors, + pg_query__collate_expr__field_indices_by_name, + 1, pg_query__collate_expr__number_ranges, + (ProtobufCMessageInit) pg_query__collate_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__case_expr__field_descriptors[7] = +{ + { + "xpr", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseExpr, xpr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "casetype", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseExpr, casetype), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relpersistence", - 5, + "casecollid", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, relpersistence), + offsetof(PgQuery__CaseExpr, casecollid), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alias", + "arg", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseExpr, arg), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "args", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CaseExpr, n_args), + offsetof(PgQuery__CaseExpr, args), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "defresult", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__CaseExpr, defresult), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -16479,418 +22006,532 @@ static const ProtobufCFieldDescriptor pg_query__range_var__field_descriptors[7] PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeVar, location), + offsetof(PgQuery__CaseExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__range_var__field_indices_by_name[] = { - 5, /* field[5] = alias */ - 0, /* field[0] = catalogname */ - 3, /* field[3] = inh */ +static const unsigned pg_query__case_expr__field_indices_by_name[] = { + 3, /* field[3] = arg */ + 4, /* field[4] = args */ + 2, /* field[2] = casecollid */ + 1, /* field[1] = casetype */ + 5, /* field[5] = defresult */ 6, /* field[6] = location */ - 2, /* field[2] = relname */ - 4, /* field[4] = relpersistence */ - 1, /* field[1] = schemaname */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__range_var__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__case_expr__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__range_var__descriptor = +const ProtobufCMessageDescriptor pg_query__case_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeVar", - "RangeVar", - "PgQuery__RangeVar", + "pg_query.CaseExpr", + "CaseExpr", + "PgQuery__CaseExpr", "pg_query", - sizeof(PgQuery__RangeVar), + sizeof(PgQuery__CaseExpr), 7, - pg_query__range_var__field_descriptors, - pg_query__range_var__field_indices_by_name, - 1, pg_query__range_var__number_ranges, - (ProtobufCMessageInit) pg_query__range_var__init, + pg_query__case_expr__field_descriptors, + pg_query__case_expr__field_indices_by_name, + 1, pg_query__case_expr__number_ranges, + (ProtobufCMessageInit) pg_query__case_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__table_func__field_descriptors[17] = +static const ProtobufCFieldDescriptor pg_query__case_when__field_descriptors[4] = { { - "functype", + "xpr", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TableFunc, functype), - &pg_query__table_func_type__descriptor, + offsetof(PgQuery__CaseWhen, xpr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ns_uris", + "expr", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_ns_uris), - offsetof(PgQuery__TableFunc, ns_uris), + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseWhen, expr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "result", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseWhen, result), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseWhen, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__case_when__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 3, /* field[3] = location */ + 2, /* field[2] = result */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__case_when__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__case_when__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CaseWhen", + "CaseWhen", + "PgQuery__CaseWhen", + "pg_query", + sizeof(PgQuery__CaseWhen), + 4, + pg_query__case_when__field_descriptors, + pg_query__case_when__field_indices_by_name, + 1, pg_query__case_when__number_ranges, + (ProtobufCMessageInit) pg_query__case_when__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__case_test_expr__field_descriptors[4] = +{ + { + "xpr", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseTestExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ns_names", + "type_id", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseTestExpr, type_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "type_mod", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_ns_names), - offsetof(PgQuery__TableFunc, ns_names), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CaseTestExpr, type_mod), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "docexpr", + "collation", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TableFunc, docexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__CaseTestExpr, collation), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__case_test_expr__field_indices_by_name[] = { + 3, /* field[3] = collation */ + 1, /* field[1] = type_id */ + 2, /* field[2] = type_mod */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__case_test_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__case_test_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CaseTestExpr", + "CaseTestExpr", + "PgQuery__CaseTestExpr", + "pg_query", + sizeof(PgQuery__CaseTestExpr), + 4, + pg_query__case_test_expr__field_descriptors, + pg_query__case_test_expr__field_indices_by_name, + 1, pg_query__case_test_expr__number_ranges, + (ProtobufCMessageInit) pg_query__case_test_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__array_expr__field_descriptors[7] = +{ { - "rowexpr", - 5, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TableFunc, rowexpr), + offsetof(PgQuery__ArrayExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "colnames", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_colnames), - offsetof(PgQuery__TableFunc, colnames), - &pg_query__node__descriptor, + "array_typeid", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayExpr, array_typeid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coltypes", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_coltypes), - offsetof(PgQuery__TableFunc, coltypes), - &pg_query__node__descriptor, + "array_collid", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayExpr, array_collid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coltypmods", - 8, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_coltypmods), - offsetof(PgQuery__TableFunc, coltypmods), - &pg_query__node__descriptor, + "element_typeid", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayExpr, element_typeid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "colcollations", - 9, + "elements", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_colcollations), - offsetof(PgQuery__TableFunc, colcollations), + offsetof(PgQuery__ArrayExpr, n_elements), + offsetof(PgQuery__ArrayExpr, elements), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "colexprs", - 10, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_colexprs), - offsetof(PgQuery__TableFunc, colexprs), - &pg_query__node__descriptor, + "multidims", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayExpr, multidims), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coldefexprs", - 11, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_coldefexprs), - offsetof(PgQuery__TableFunc, coldefexprs), - &pg_query__node__descriptor, + "location", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ArrayExpr, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__array_expr__field_indices_by_name[] = { + 2, /* field[2] = array_collid */ + 1, /* field[1] = array_typeid */ + 3, /* field[3] = element_typeid */ + 4, /* field[4] = elements */ + 6, /* field[6] = location */ + 5, /* field[5] = multidims */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__array_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__array_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ArrayExpr", + "ArrayExpr", + "PgQuery__ArrayExpr", + "pg_query", + sizeof(PgQuery__ArrayExpr), + 7, + pg_query__array_expr__field_descriptors, + pg_query__array_expr__field_indices_by_name, + 1, pg_query__array_expr__number_ranges, + (ProtobufCMessageInit) pg_query__array_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__row_expr__field_descriptors[6] = +{ { - "colvalexprs", - 12, - PROTOBUF_C_LABEL_REPEATED, + "xpr", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_colvalexprs), - offsetof(PgQuery__TableFunc, colvalexprs), + 0, /* quantifier_offset */ + offsetof(PgQuery__RowExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "passingvalexprs", - 13, + "args", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableFunc, n_passingvalexprs), - offsetof(PgQuery__TableFunc, passingvalexprs), + offsetof(PgQuery__RowExpr, n_args), + offsetof(PgQuery__RowExpr, args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "notnulls", - 14, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(PgQuery__TableFunc, n_notnulls), - offsetof(PgQuery__TableFunc, notnulls), + "row_typeid", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RowExpr, row_typeid), NULL, NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plan", - 15, + "row_format", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__TableFunc, plan), - &pg_query__node__descriptor, + offsetof(PgQuery__RowExpr, row_format), + &pg_query__coercion_form__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ordinalitycol", - 16, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__TableFunc, ordinalitycol), - NULL, + "colnames", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RowExpr, n_colnames), + offsetof(PgQuery__RowExpr, colnames), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 17, + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TableFunc, location), + offsetof(PgQuery__RowExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__table_func__field_indices_by_name[] = { - 8, /* field[8] = colcollations */ - 10, /* field[10] = coldefexprs */ - 9, /* field[9] = colexprs */ - 5, /* field[5] = colnames */ - 6, /* field[6] = coltypes */ - 7, /* field[7] = coltypmods */ - 11, /* field[11] = colvalexprs */ - 3, /* field[3] = docexpr */ - 0, /* field[0] = functype */ - 16, /* field[16] = location */ - 13, /* field[13] = notnulls */ - 2, /* field[2] = ns_names */ - 1, /* field[1] = ns_uris */ - 15, /* field[15] = ordinalitycol */ - 12, /* field[12] = passingvalexprs */ - 14, /* field[14] = plan */ - 4, /* field[4] = rowexpr */ +static const unsigned pg_query__row_expr__field_indices_by_name[] = { + 1, /* field[1] = args */ + 4, /* field[4] = colnames */ + 5, /* field[5] = location */ + 3, /* field[3] = row_format */ + 2, /* field[2] = row_typeid */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__table_func__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__row_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 17 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__table_func__descriptor = +const ProtobufCMessageDescriptor pg_query__row_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TableFunc", - "TableFunc", - "PgQuery__TableFunc", + "pg_query.RowExpr", + "RowExpr", + "PgQuery__RowExpr", "pg_query", - sizeof(PgQuery__TableFunc), - 17, - pg_query__table_func__field_descriptors, - pg_query__table_func__field_indices_by_name, - 1, pg_query__table_func__number_ranges, - (ProtobufCMessageInit) pg_query__table_func__init, + sizeof(PgQuery__RowExpr), + 6, + pg_query__row_expr__field_descriptors, + pg_query__row_expr__field_indices_by_name, + 1, pg_query__row_expr__number_ranges, + (ProtobufCMessageInit) pg_query__row_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__into_clause__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__row_compare_expr__field_descriptors[7] = { { - "rel", + "xpr", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__IntoClause, rel), - &pg_query__range_var__descriptor, + offsetof(PgQuery__RowCompareExpr, xpr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "col_names", + "rctype", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IntoClause, n_col_names), - offsetof(PgQuery__IntoClause, col_names), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__RowCompareExpr, rctype), + &pg_query__row_compare_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "access_method", + "opnos", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__IntoClause, access_method), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RowCompareExpr, n_opnos), + offsetof(PgQuery__RowCompareExpr, opnos), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "opfamilies", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IntoClause, n_options), - offsetof(PgQuery__IntoClause, options), + offsetof(PgQuery__RowCompareExpr, n_opfamilies), + offsetof(PgQuery__RowCompareExpr, opfamilies), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_commit", + "inputcollids", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__IntoClause, on_commit), - &pg_query__on_commit_action__descriptor, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RowCompareExpr, n_inputcollids), + offsetof(PgQuery__RowCompareExpr, inputcollids), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_space_name", + "largs", 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__IntoClause, table_space_name), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RowCompareExpr, n_largs), + offsetof(PgQuery__RowCompareExpr, largs), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "view_query", + "rargs", 7, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__IntoClause, view_query), + offsetof(PgQuery__RowCompareExpr, n_rargs), + offsetof(PgQuery__RowCompareExpr, rargs), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "skip_data", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__IntoClause, skip_data), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, }; -static const unsigned pg_query__into_clause__field_indices_by_name[] = { - 2, /* field[2] = access_method */ - 1, /* field[1] = col_names */ - 4, /* field[4] = on_commit */ - 3, /* field[3] = options */ - 0, /* field[0] = rel */ - 7, /* field[7] = skip_data */ - 5, /* field[5] = table_space_name */ - 6, /* field[6] = view_query */ +static const unsigned pg_query__row_compare_expr__field_indices_by_name[] = { + 4, /* field[4] = inputcollids */ + 5, /* field[5] = largs */ + 3, /* field[3] = opfamilies */ + 2, /* field[2] = opnos */ + 6, /* field[6] = rargs */ + 1, /* field[1] = rctype */ + 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__into_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__row_compare_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__into_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__row_compare_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.IntoClause", - "IntoClause", - "PgQuery__IntoClause", + "pg_query.RowCompareExpr", + "RowCompareExpr", + "PgQuery__RowCompareExpr", "pg_query", - sizeof(PgQuery__IntoClause), - 8, - pg_query__into_clause__field_descriptors, - pg_query__into_clause__field_indices_by_name, - 1, pg_query__into_clause__number_ranges, - (ProtobufCMessageInit) pg_query__into_clause__init, + sizeof(PgQuery__RowCompareExpr), + 7, + pg_query__row_compare_expr__field_descriptors, + pg_query__row_compare_expr__field_indices_by_name, + 1, pg_query__row_compare_expr__number_ranges, + (ProtobufCMessageInit) pg_query__row_compare_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__var__field_descriptors[9] = +static const ProtobufCFieldDescriptor pg_query__coalesce_expr__field_descriptors[5] = { { "xpr", @@ -16898,141 +22539,89 @@ static const ProtobufCFieldDescriptor pg_query__var__field_descriptors[9] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Var, xpr), + offsetof(PgQuery__CoalesceExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "varno", + "coalescetype", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__Var, varno), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "varattno", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__Var, varattno), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "vartype", - 4, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Var, vartype), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "vartypmod", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__Var, vartypmod), + offsetof(PgQuery__CoalesceExpr, coalescetype), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "varcollid", - 6, + "coalescecollid", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Var, varcollid), + offsetof(PgQuery__CoalesceExpr, coalescecollid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "varnullingrels", - 7, + "args", + 4, PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(PgQuery__Var, n_varnullingrels), - offsetof(PgQuery__Var, varnullingrels), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "varlevelsup", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__Var, varlevelsup), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CoalesceExpr, n_args), + offsetof(PgQuery__CoalesceExpr, args), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 9, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Var, location), + offsetof(PgQuery__CoalesceExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__var__field_indices_by_name[] = { - 8, /* field[8] = location */ - 2, /* field[2] = varattno */ - 5, /* field[5] = varcollid */ - 7, /* field[7] = varlevelsup */ - 1, /* field[1] = varno */ - 6, /* field[6] = varnullingrels */ - 3, /* field[3] = vartype */ - 4, /* field[4] = vartypmod */ +static const unsigned pg_query__coalesce_expr__field_indices_by_name[] = { + 3, /* field[3] = args */ + 2, /* field[2] = coalescecollid */ + 1, /* field[1] = coalescetype */ + 4, /* field[4] = location */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__var__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__coalesce_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 9 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__var__descriptor = +const ProtobufCMessageDescriptor pg_query__coalesce_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Var", - "Var", - "PgQuery__Var", - "pg_query", - sizeof(PgQuery__Var), - 9, - pg_query__var__field_descriptors, - pg_query__var__field_indices_by_name, - 1, pg_query__var__number_ranges, - (ProtobufCMessageInit) pg_query__var__init, + "pg_query.CoalesceExpr", + "CoalesceExpr", + "PgQuery__CoalesceExpr", + "pg_query", + sizeof(PgQuery__CoalesceExpr), + 5, + pg_query__coalesce_expr__field_descriptors, + pg_query__coalesce_expr__field_indices_by_name, + 1, pg_query__coalesce_expr__number_ranges, + (ProtobufCMessageInit) pg_query__coalesce_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__param__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__min_max_expr__field_descriptors[7] = { { "xpr", @@ -17040,68 +22629,68 @@ static const ProtobufCFieldDescriptor pg_query__param__field_descriptors[7] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Param, xpr), + offsetof(PgQuery__MinMaxExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "paramkind", + "minmaxtype", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Param, paramkind), - &pg_query__param_kind__descriptor, + offsetof(PgQuery__MinMaxExpr, minmaxtype), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "paramid", + "minmaxcollid", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Param, paramid), + offsetof(PgQuery__MinMaxExpr, minmaxcollid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "paramtype", + "inputcollid", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Param, paramtype), + offsetof(PgQuery__MinMaxExpr, inputcollid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "paramtypmod", + "op", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Param, paramtypmod), - NULL, + offsetof(PgQuery__MinMaxExpr, op), + &pg_query__min_max_op__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "paramcollid", + "args", 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__Param, paramcollid), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__MinMaxExpr, n_args), + offsetof(PgQuery__MinMaxExpr, args), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -17112,43 +22701,43 @@ static const ProtobufCFieldDescriptor pg_query__param__field_descriptors[7] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Param, location), + offsetof(PgQuery__MinMaxExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__param__field_indices_by_name[] = { +static const unsigned pg_query__min_max_expr__field_indices_by_name[] = { + 5, /* field[5] = args */ + 3, /* field[3] = inputcollid */ 6, /* field[6] = location */ - 5, /* field[5] = paramcollid */ - 2, /* field[2] = paramid */ - 1, /* field[1] = paramkind */ - 3, /* field[3] = paramtype */ - 4, /* field[4] = paramtypmod */ + 2, /* field[2] = minmaxcollid */ + 1, /* field[1] = minmaxtype */ + 4, /* field[4] = op */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__param__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__min_max_expr__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__param__descriptor = +const ProtobufCMessageDescriptor pg_query__min_max_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Param", - "Param", - "PgQuery__Param", + "pg_query.MinMaxExpr", + "MinMaxExpr", + "PgQuery__MinMaxExpr", "pg_query", - sizeof(PgQuery__Param), + sizeof(PgQuery__MinMaxExpr), 7, - pg_query__param__field_descriptors, - pg_query__param__field_indices_by_name, - 1, pg_query__param__number_ranges, - (ProtobufCMessageInit) pg_query__param__init, + pg_query__min_max_expr__field_descriptors, + pg_query__min_max_expr__field_indices_by_name, + 1, pg_query__min_max_expr__number_ranges, + (ProtobufCMessageInit) pg_query__min_max_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__aggref__field_descriptors[19] = +static const ProtobufCFieldDescriptor pg_query__sqlvalue_function__field_descriptors[5] = { { "xpr", @@ -17156,489 +22745,541 @@ static const ProtobufCFieldDescriptor pg_query__aggref__field_descriptors[19] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, xpr), + offsetof(PgQuery__SQLValueFunction, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggfnoid", + "op", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggfnoid), - NULL, + offsetof(PgQuery__SQLValueFunction, op), + &pg_query__sqlvalue_function_op__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggtype", + "type", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggtype), + offsetof(PgQuery__SQLValueFunction, type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggcollid", + "typmod", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggcollid), + offsetof(PgQuery__SQLValueFunction, typmod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", + "location", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, inputcollid), + offsetof(PgQuery__SQLValueFunction, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__sqlvalue_function__field_indices_by_name[] = { + 4, /* field[4] = location */ + 1, /* field[1] = op */ + 2, /* field[2] = type */ + 3, /* field[3] = typmod */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__sqlvalue_function__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__sqlvalue_function__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SQLValueFunction", + "SQLValueFunction", + "PgQuery__SQLValueFunction", + "pg_query", + sizeof(PgQuery__SQLValueFunction), + 5, + pg_query__sqlvalue_function__field_descriptors, + pg_query__sqlvalue_function__field_indices_by_name, + 1, pg_query__sqlvalue_function__number_ranges, + (ProtobufCMessageInit) pg_query__sqlvalue_function__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__xml_expr__field_descriptors[11] = +{ { - "aggargtypes", - 6, - PROTOBUF_C_LABEL_REPEATED, + "xpr", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Aggref, n_aggargtypes), - offsetof(PgQuery__Aggref, aggargtypes), + 0, /* quantifier_offset */ + offsetof(PgQuery__XmlExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggdirectargs", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Aggref, n_aggdirectargs), - offsetof(PgQuery__Aggref, aggdirectargs), - &pg_query__node__descriptor, + "op", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__XmlExpr, op), + &pg_query__xml_expr_op__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 8, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Aggref, n_args), - offsetof(PgQuery__Aggref, args), - &pg_query__node__descriptor, + "name", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__XmlExpr, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggorder", - 9, + "named_args", + 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Aggref, n_aggorder), - offsetof(PgQuery__Aggref, aggorder), + offsetof(PgQuery__XmlExpr, n_named_args), + offsetof(PgQuery__XmlExpr, named_args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggdistinct", - 10, + "arg_names", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Aggref, n_aggdistinct), - offsetof(PgQuery__Aggref, aggdistinct), + offsetof(PgQuery__XmlExpr, n_arg_names), + offsetof(PgQuery__XmlExpr, arg_names), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggfilter", - 11, - PROTOBUF_C_LABEL_NONE, + "args", + 6, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggfilter), + offsetof(PgQuery__XmlExpr, n_args), + offsetof(PgQuery__XmlExpr, args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggstar", - 12, + "xmloption", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggstar), - NULL, + offsetof(PgQuery__XmlExpr, xmloption), + &pg_query__xml_option_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggvariadic", - 13, + "indent", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggvariadic), + offsetof(PgQuery__XmlExpr, indent), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggkind", - 14, + "type", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggkind), + offsetof(PgQuery__XmlExpr, type), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agglevelsup", - 15, + "typmod", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, agglevelsup), + offsetof(PgQuery__XmlExpr, typmod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggsplit", - 16, + "location", + 11, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggsplit), - &pg_query__agg_split__descriptor, + offsetof(PgQuery__XmlExpr, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__xml_expr__field_indices_by_name[] = { + 4, /* field[4] = arg_names */ + 5, /* field[5] = args */ + 7, /* field[7] = indent */ + 10, /* field[10] = location */ + 2, /* field[2] = name */ + 3, /* field[3] = named_args */ + 1, /* field[1] = op */ + 8, /* field[8] = type */ + 9, /* field[9] = typmod */ + 6, /* field[6] = xmloption */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__xml_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 11 } +}; +const ProtobufCMessageDescriptor pg_query__xml_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.XmlExpr", + "XmlExpr", + "PgQuery__XmlExpr", + "pg_query", + sizeof(PgQuery__XmlExpr), + 11, + pg_query__xml_expr__field_descriptors, + pg_query__xml_expr__field_indices_by_name, + 1, pg_query__xml_expr__number_ranges, + (ProtobufCMessageInit) pg_query__xml_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_format__field_descriptors[3] = +{ { - "aggno", - 17, + "format_type", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggno), - NULL, + offsetof(PgQuery__JsonFormat, format_type), + &pg_query__json_format_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggtransno", - 18, + "encoding", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, aggtransno), - NULL, + offsetof(PgQuery__JsonFormat, encoding), + &pg_query__json_encoding__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 19, + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Aggref, location), + offsetof(PgQuery__JsonFormat, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__aggref__field_indices_by_name[] = { - 5, /* field[5] = aggargtypes */ - 3, /* field[3] = aggcollid */ - 6, /* field[6] = aggdirectargs */ - 9, /* field[9] = aggdistinct */ - 10, /* field[10] = aggfilter */ - 1, /* field[1] = aggfnoid */ - 13, /* field[13] = aggkind */ - 14, /* field[14] = agglevelsup */ - 16, /* field[16] = aggno */ - 8, /* field[8] = aggorder */ - 15, /* field[15] = aggsplit */ - 11, /* field[11] = aggstar */ - 17, /* field[17] = aggtransno */ - 2, /* field[2] = aggtype */ - 12, /* field[12] = aggvariadic */ - 7, /* field[7] = args */ - 4, /* field[4] = inputcollid */ - 18, /* field[18] = location */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__json_format__field_indices_by_name[] = { + 1, /* field[1] = encoding */ + 0, /* field[0] = format_type */ + 2, /* field[2] = location */ }; -static const ProtobufCIntRange pg_query__aggref__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_format__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 19 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__aggref__descriptor = +const ProtobufCMessageDescriptor pg_query__json_format__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Aggref", - "Aggref", - "PgQuery__Aggref", + "pg_query.JsonFormat", + "JsonFormat", + "PgQuery__JsonFormat", "pg_query", - sizeof(PgQuery__Aggref), - 19, - pg_query__aggref__field_descriptors, - pg_query__aggref__field_indices_by_name, - 1, pg_query__aggref__number_ranges, - (ProtobufCMessageInit) pg_query__aggref__init, + sizeof(PgQuery__JsonFormat), + 3, + pg_query__json_format__field_descriptors, + pg_query__json_format__field_indices_by_name, + 1, pg_query__json_format__number_ranges, + (ProtobufCMessageInit) pg_query__json_format__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__grouping_func__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__json_returning__field_descriptors[3] = { { - "xpr", + "format", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__GroupingFunc, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonReturning, format), + &pg_query__json_format__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "typid", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GroupingFunc, n_args), - offsetof(PgQuery__GroupingFunc, args), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "refs", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GroupingFunc, n_refs), - offsetof(PgQuery__GroupingFunc, refs), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "agglevelsup", - 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__GroupingFunc, agglevelsup), + offsetof(PgQuery__JsonReturning, typid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 5, + "typmod", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__GroupingFunc, location), + offsetof(PgQuery__JsonReturning, typmod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__grouping_func__field_indices_by_name[] = { - 3, /* field[3] = agglevelsup */ - 1, /* field[1] = args */ - 4, /* field[4] = location */ - 2, /* field[2] = refs */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__json_returning__field_indices_by_name[] = { + 0, /* field[0] = format */ + 1, /* field[1] = typid */ + 2, /* field[2] = typmod */ }; -static const ProtobufCIntRange pg_query__grouping_func__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_returning__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__grouping_func__descriptor = +const ProtobufCMessageDescriptor pg_query__json_returning__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.GroupingFunc", - "GroupingFunc", - "PgQuery__GroupingFunc", + "pg_query.JsonReturning", + "JsonReturning", + "PgQuery__JsonReturning", "pg_query", - sizeof(PgQuery__GroupingFunc), - 5, - pg_query__grouping_func__field_descriptors, - pg_query__grouping_func__field_indices_by_name, - 1, pg_query__grouping_func__number_ranges, - (ProtobufCMessageInit) pg_query__grouping_func__init, + sizeof(PgQuery__JsonReturning), + 3, + pg_query__json_returning__field_descriptors, + pg_query__json_returning__field_indices_by_name, + 1, pg_query__json_returning__number_ranges, + (ProtobufCMessageInit) pg_query__json_returning__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__window_func__field_descriptors[12] = +static const ProtobufCFieldDescriptor pg_query__json_value_expr__field_descriptors[3] = { { - "xpr", + "raw_expr", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, xpr), + offsetof(PgQuery__JsonValueExpr, raw_expr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "winfnoid", + "formatted_expr", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, winfnoid), - NULL, + offsetof(PgQuery__JsonValueExpr, formatted_expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "wintype", + "format", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, wintype), - NULL, + offsetof(PgQuery__JsonValueExpr, format), + &pg_query__json_format__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__json_value_expr__field_indices_by_name[] = { + 2, /* field[2] = format */ + 1, /* field[1] = formatted_expr */ + 0, /* field[0] = raw_expr */ +}; +static const ProtobufCIntRange pg_query__json_value_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__json_value_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonValueExpr", + "JsonValueExpr", + "PgQuery__JsonValueExpr", + "pg_query", + sizeof(PgQuery__JsonValueExpr), + 3, + pg_query__json_value_expr__field_descriptors, + pg_query__json_value_expr__field_indices_by_name, + 1, pg_query__json_value_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_value_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_constructor_expr__field_descriptors[9] = +{ { - "wincollid", - 4, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, wincollid), - NULL, + offsetof(PgQuery__JsonConstructorExpr, xpr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", - 5, + "type", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, inputcollid), - NULL, + offsetof(PgQuery__JsonConstructorExpr, type), + &pg_query__json_constructor_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "args", - 6, + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WindowFunc, n_args), - offsetof(PgQuery__WindowFunc, args), + offsetof(PgQuery__JsonConstructorExpr, n_args), + offsetof(PgQuery__JsonConstructorExpr, args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aggfilter", - 7, + "func", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, aggfilter), + offsetof(PgQuery__JsonConstructorExpr, func), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "run_condition", - 8, - PROTOBUF_C_LABEL_REPEATED, + "coercion", + 5, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WindowFunc, n_run_condition), - offsetof(PgQuery__WindowFunc, run_condition), + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonConstructorExpr, coercion), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "winref", - 9, + "returning", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, winref), - NULL, + offsetof(PgQuery__JsonConstructorExpr, returning), + &pg_query__json_returning__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "winstar", - 10, + "absent_on_null", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, winstar), + offsetof(PgQuery__JsonConstructorExpr, absent_on_null), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "winagg", - 11, + "unique", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, winagg), + offsetof(PgQuery__JsonConstructorExpr, unique), NULL, NULL, 0, /* flags */ @@ -17646,174 +23287,171 @@ static const ProtobufCFieldDescriptor pg_query__window_func__field_descriptors[1 }, { "location", - 12, + 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFunc, location), + offsetof(PgQuery__JsonConstructorExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__window_func__field_indices_by_name[] = { - 6, /* field[6] = aggfilter */ - 5, /* field[5] = args */ - 4, /* field[4] = inputcollid */ - 11, /* field[11] = location */ - 7, /* field[7] = run_condition */ - 10, /* field[10] = winagg */ - 3, /* field[3] = wincollid */ - 1, /* field[1] = winfnoid */ - 8, /* field[8] = winref */ - 9, /* field[9] = winstar */ - 2, /* field[2] = wintype */ +static const unsigned pg_query__json_constructor_expr__field_indices_by_name[] = { + 6, /* field[6] = absent_on_null */ + 2, /* field[2] = args */ + 4, /* field[4] = coercion */ + 3, /* field[3] = func */ + 8, /* field[8] = location */ + 5, /* field[5] = returning */ + 1, /* field[1] = type */ + 7, /* field[7] = unique */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__window_func__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_constructor_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 12 } + { 0, 9 } }; -const ProtobufCMessageDescriptor pg_query__window_func__descriptor = +const ProtobufCMessageDescriptor pg_query__json_constructor_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.WindowFunc", - "WindowFunc", - "PgQuery__WindowFunc", + "pg_query.JsonConstructorExpr", + "JsonConstructorExpr", + "PgQuery__JsonConstructorExpr", "pg_query", - sizeof(PgQuery__WindowFunc), - 12, - pg_query__window_func__field_descriptors, - pg_query__window_func__field_indices_by_name, - 1, pg_query__window_func__number_ranges, - (ProtobufCMessageInit) pg_query__window_func__init, + sizeof(PgQuery__JsonConstructorExpr), + 9, + pg_query__json_constructor_expr__field_descriptors, + pg_query__json_constructor_expr__field_indices_by_name, + 1, pg_query__json_constructor_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_constructor_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__window_func_run_condition__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__json_is_predicate__field_descriptors[5] = { { - "xpr", + "expr", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFuncRunCondition, xpr), + offsetof(PgQuery__JsonIsPredicate, expr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opno", + "format", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFuncRunCondition, opno), - NULL, + offsetof(PgQuery__JsonIsPredicate, format), + &pg_query__json_format__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", + "item_type", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFuncRunCondition, inputcollid), - NULL, + offsetof(PgQuery__JsonIsPredicate, item_type), + &pg_query__json_value_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "wfunc_left", + "unique_keys", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFuncRunCondition, wfunc_left), + offsetof(PgQuery__JsonIsPredicate, unique_keys), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "location", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowFuncRunCondition, arg), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonIsPredicate, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__window_func_run_condition__field_indices_by_name[] = { - 4, /* field[4] = arg */ - 2, /* field[2] = inputcollid */ - 1, /* field[1] = opno */ - 3, /* field[3] = wfunc_left */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__json_is_predicate__field_indices_by_name[] = { + 0, /* field[0] = expr */ + 1, /* field[1] = format */ + 2, /* field[2] = item_type */ + 4, /* field[4] = location */ + 3, /* field[3] = unique_keys */ }; -static const ProtobufCIntRange pg_query__window_func_run_condition__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_is_predicate__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__window_func_run_condition__descriptor = +const ProtobufCMessageDescriptor pg_query__json_is_predicate__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.WindowFuncRunCondition", - "WindowFuncRunCondition", - "PgQuery__WindowFuncRunCondition", + "pg_query.JsonIsPredicate", + "JsonIsPredicate", + "PgQuery__JsonIsPredicate", "pg_query", - sizeof(PgQuery__WindowFuncRunCondition), + sizeof(PgQuery__JsonIsPredicate), 5, - pg_query__window_func_run_condition__field_descriptors, - pg_query__window_func_run_condition__field_indices_by_name, - 1, pg_query__window_func_run_condition__number_ranges, - (ProtobufCMessageInit) pg_query__window_func_run_condition__init, + pg_query__json_is_predicate__field_descriptors, + pg_query__json_is_predicate__field_indices_by_name, + 1, pg_query__json_is_predicate__number_ranges, + (ProtobufCMessageInit) pg_query__json_is_predicate__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__merge_support_func__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__json_behavior__field_descriptors[4] = { { - "xpr", + "btype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeSupportFunc, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonBehavior, btype), + &pg_query__json_behavior_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "msftype", + "expr", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeSupportFunc, msftype), - NULL, + offsetof(PgQuery__JsonBehavior, expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "msfcollid", + "coerce", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeSupportFunc, msfcollid), + offsetof(PgQuery__JsonBehavior, coerce), NULL, NULL, 0, /* flags */ @@ -17825,40 +23463,40 @@ static const ProtobufCFieldDescriptor pg_query__merge_support_func__field_descri PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeSupportFunc, location), + offsetof(PgQuery__JsonBehavior, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__merge_support_func__field_indices_by_name[] = { +static const unsigned pg_query__json_behavior__field_indices_by_name[] = { + 0, /* field[0] = btype */ + 2, /* field[2] = coerce */ + 1, /* field[1] = expr */ 3, /* field[3] = location */ - 2, /* field[2] = msfcollid */ - 1, /* field[1] = msftype */ - 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__merge_support_func__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_behavior__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__merge_support_func__descriptor = +const ProtobufCMessageDescriptor pg_query__json_behavior__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.MergeSupportFunc", - "MergeSupportFunc", - "PgQuery__MergeSupportFunc", + "pg_query.JsonBehavior", + "JsonBehavior", + "PgQuery__JsonBehavior", "pg_query", - sizeof(PgQuery__MergeSupportFunc), + sizeof(PgQuery__JsonBehavior), 4, - pg_query__merge_support_func__field_descriptors, - pg_query__merge_support_func__field_indices_by_name, - 1, pg_query__merge_support_func__number_ranges, - (ProtobufCMessageInit) pg_query__merge_support_func__init, + pg_query__json_behavior__field_descriptors, + pg_query__json_behavior__field_indices_by_name, + 1, pg_query__json_behavior__number_ranges, + (ProtobufCMessageInit) pg_query__json_behavior__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__subscripting_ref__field_descriptors[10] = +static const ProtobufCFieldDescriptor pg_query__json_expr__field_descriptors[17] = { { "xpr", @@ -17866,309 +23504,450 @@ static const ProtobufCFieldDescriptor pg_query__subscripting_ref__field_descript PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, xpr), + offsetof(PgQuery__JsonExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refcontainertype", + "op", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, refcontainertype), - NULL, + offsetof(PgQuery__JsonExpr, op), + &pg_query__json_expr_op__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refelemtype", + "column_name", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, refelemtype), - NULL, + offsetof(PgQuery__JsonExpr, column_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refrestype", + "formatted_expr", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, refrestype), - NULL, + offsetof(PgQuery__JsonExpr, formatted_expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "reftypmod", + "format", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, reftypmod), - NULL, + offsetof(PgQuery__JsonExpr, format), + &pg_query__json_format__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refcollid", + "path_spec", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, refcollid), - NULL, + offsetof(PgQuery__JsonExpr, path_spec), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refupperindexpr", + "returning", 7, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubscriptingRef, n_refupperindexpr), - offsetof(PgQuery__SubscriptingRef, refupperindexpr), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, returning), + &pg_query__json_returning__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "reflowerindexpr", + "passing_names", 8, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubscriptingRef, n_reflowerindexpr), - offsetof(PgQuery__SubscriptingRef, reflowerindexpr), + offsetof(PgQuery__JsonExpr, n_passing_names), + offsetof(PgQuery__JsonExpr, passing_names), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refexpr", + "passing_values", 9, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, refexpr), + offsetof(PgQuery__JsonExpr, n_passing_values), + offsetof(PgQuery__JsonExpr, passing_values), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refassgnexpr", + "on_empty", 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubscriptingRef, refassgnexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonExpr, on_empty), + &pg_query__json_behavior__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "on_error", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, on_error), + &pg_query__json_behavior__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "use_io_coercion", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, use_io_coercion), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "use_json_coercion", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, use_json_coercion), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "wrapper", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, wrapper), + &pg_query__json_wrapper__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "omit_quotes", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, omit_quotes), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "collation", + 16, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, collation), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 17, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonExpr, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__subscripting_ref__field_indices_by_name[] = { - 9, /* field[9] = refassgnexpr */ - 5, /* field[5] = refcollid */ - 1, /* field[1] = refcontainertype */ - 2, /* field[2] = refelemtype */ - 8, /* field[8] = refexpr */ - 7, /* field[7] = reflowerindexpr */ - 3, /* field[3] = refrestype */ - 4, /* field[4] = reftypmod */ - 6, /* field[6] = refupperindexpr */ +static const unsigned pg_query__json_expr__field_indices_by_name[] = { + 15, /* field[15] = collation */ + 2, /* field[2] = column_name */ + 4, /* field[4] = format */ + 3, /* field[3] = formatted_expr */ + 16, /* field[16] = location */ + 14, /* field[14] = omit_quotes */ + 9, /* field[9] = on_empty */ + 10, /* field[10] = on_error */ + 1, /* field[1] = op */ + 7, /* field[7] = passing_names */ + 8, /* field[8] = passing_values */ + 5, /* field[5] = path_spec */ + 6, /* field[6] = returning */ + 11, /* field[11] = use_io_coercion */ + 12, /* field[12] = use_json_coercion */ + 13, /* field[13] = wrapper */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__subscripting_ref__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 10 } + { 0, 17 } }; -const ProtobufCMessageDescriptor pg_query__subscripting_ref__descriptor = +const ProtobufCMessageDescriptor pg_query__json_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SubscriptingRef", - "SubscriptingRef", - "PgQuery__SubscriptingRef", + "pg_query.JsonExpr", + "JsonExpr", + "PgQuery__JsonExpr", "pg_query", - sizeof(PgQuery__SubscriptingRef), - 10, - pg_query__subscripting_ref__field_descriptors, - pg_query__subscripting_ref__field_indices_by_name, - 1, pg_query__subscripting_ref__number_ranges, - (ProtobufCMessageInit) pg_query__subscripting_ref__init, + sizeof(PgQuery__JsonExpr), + 17, + pg_query__json_expr__field_descriptors, + pg_query__json_expr__field_indices_by_name, + 1, pg_query__json_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__func_expr__field_descriptors[10] = +static const ProtobufCFieldDescriptor pg_query__json_table_path__field_descriptors[1] = { { - "xpr", + "name", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonTablePath, name), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__json_table_path__field_indices_by_name[] = { + 0, /* field[0] = name */ +}; +static const ProtobufCIntRange pg_query__json_table_path__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__json_table_path__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonTablePath", + "JsonTablePath", + "PgQuery__JsonTablePath", + "pg_query", + sizeof(PgQuery__JsonTablePath), + 1, + pg_query__json_table_path__field_descriptors, + pg_query__json_table_path__field_indices_by_name, + 1, pg_query__json_table_path__number_ranges, + (ProtobufCMessageInit) pg_query__json_table_path__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_table_path_scan__field_descriptors[6] = +{ + { + "plan", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, xpr), + offsetof(PgQuery__JsonTablePathScan, plan), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcid", + "path", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, funcid), - NULL, + offsetof(PgQuery__JsonTablePathScan, path), + &pg_query__json_table_path__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcresulttype", + "error_on_error", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, funcresulttype), + offsetof(PgQuery__JsonTablePathScan, error_on_error), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcretset", + "child", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, funcretset), - NULL, + offsetof(PgQuery__JsonTablePathScan, child), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcvariadic", + "col_min", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, funcvariadic), + offsetof(PgQuery__JsonTablePathScan, col_min), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcformat", + "col_max", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, funcformat), - &pg_query__coercion_form__descriptor, + offsetof(PgQuery__JsonTablePathScan, col_max), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__json_table_path_scan__field_indices_by_name[] = { + 3, /* field[3] = child */ + 5, /* field[5] = col_max */ + 4, /* field[4] = col_min */ + 2, /* field[2] = error_on_error */ + 1, /* field[1] = path */ + 0, /* field[0] = plan */ +}; +static const ProtobufCIntRange pg_query__json_table_path_scan__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__json_table_path_scan__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonTablePathScan", + "JsonTablePathScan", + "PgQuery__JsonTablePathScan", + "pg_query", + sizeof(PgQuery__JsonTablePathScan), + 6, + pg_query__json_table_path_scan__field_descriptors, + pg_query__json_table_path_scan__field_indices_by_name, + 1, pg_query__json_table_path_scan__number_ranges, + (ProtobufCMessageInit) pg_query__json_table_path_scan__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_table_sibling_join__field_descriptors[3] = +{ { - "funccollid", - 7, + "plan", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, funccollid), - NULL, + offsetof(PgQuery__JsonTableSiblingJoin, plan), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", - 8, + "lplan", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, inputcollid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "args", - 9, - PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FuncExpr, n_args), - offsetof(PgQuery__FuncExpr, args), + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonTableSiblingJoin, lplan), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 10, + "rplan", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncExpr, location), - NULL, + offsetof(PgQuery__JsonTableSiblingJoin, rplan), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__func_expr__field_indices_by_name[] = { - 8, /* field[8] = args */ - 6, /* field[6] = funccollid */ - 5, /* field[5] = funcformat */ - 1, /* field[1] = funcid */ - 2, /* field[2] = funcresulttype */ - 3, /* field[3] = funcretset */ - 4, /* field[4] = funcvariadic */ - 7, /* field[7] = inputcollid */ - 9, /* field[9] = location */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__json_table_sibling_join__field_indices_by_name[] = { + 1, /* field[1] = lplan */ + 0, /* field[0] = plan */ + 2, /* field[2] = rplan */ }; -static const ProtobufCIntRange pg_query__func_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_table_sibling_join__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 10 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__func_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__json_table_sibling_join__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FuncExpr", - "FuncExpr", - "PgQuery__FuncExpr", + "pg_query.JsonTableSiblingJoin", + "JsonTableSiblingJoin", + "PgQuery__JsonTableSiblingJoin", "pg_query", - sizeof(PgQuery__FuncExpr), - 10, - pg_query__func_expr__field_descriptors, - pg_query__func_expr__field_indices_by_name, - 1, pg_query__func_expr__number_ranges, - (ProtobufCMessageInit) pg_query__func_expr__init, + sizeof(PgQuery__JsonTableSiblingJoin), + 3, + pg_query__json_table_sibling_join__field_descriptors, + pg_query__json_table_sibling_join__field_indices_by_name, + 1, pg_query__json_table_sibling_join__number_ranges, + (ProtobufCMessageInit) pg_query__json_table_sibling_join__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__named_arg_expr__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__null_test__field_descriptors[5] = { { "xpr", @@ -18176,7 +23955,7 @@ static const ProtobufCFieldDescriptor pg_query__named_arg_expr__field_descriptor PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__NamedArgExpr, xpr), + offsetof(PgQuery__NullTest, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ @@ -18188,31 +23967,31 @@ static const ProtobufCFieldDescriptor pg_query__named_arg_expr__field_descriptor PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__NamedArgExpr, arg), + offsetof(PgQuery__NullTest, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", + "nulltesttype", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__NamedArgExpr, name), + offsetof(PgQuery__NullTest, nulltesttype), + &pg_query__null_test_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "argnumber", + "argisrow", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__NamedArgExpr, argnumber), + offsetof(PgQuery__NullTest, argisrow), NULL, NULL, 0, /* flags */ @@ -18224,41 +24003,41 @@ static const ProtobufCFieldDescriptor pg_query__named_arg_expr__field_descriptor PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NamedArgExpr, location), + offsetof(PgQuery__NullTest, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__named_arg_expr__field_indices_by_name[] = { +static const unsigned pg_query__null_test__field_indices_by_name[] = { 1, /* field[1] = arg */ - 3, /* field[3] = argnumber */ + 3, /* field[3] = argisrow */ 4, /* field[4] = location */ - 2, /* field[2] = name */ + 2, /* field[2] = nulltesttype */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__named_arg_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__null_test__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__named_arg_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__null_test__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.NamedArgExpr", - "NamedArgExpr", - "PgQuery__NamedArgExpr", + "pg_query.NullTest", + "NullTest", + "PgQuery__NullTest", "pg_query", - sizeof(PgQuery__NamedArgExpr), + sizeof(PgQuery__NullTest), 5, - pg_query__named_arg_expr__field_descriptors, - pg_query__named_arg_expr__field_indices_by_name, - 1, pg_query__named_arg_expr__number_ranges, - (ProtobufCMessageInit) pg_query__named_arg_expr__init, + pg_query__null_test__field_descriptors, + pg_query__null_test__field_indices_by_name, + 1, pg_query__null_test__number_ranges, + (ProtobufCMessageInit) pg_query__null_test__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__op_expr__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__boolean_test__field_descriptors[4] = { { "xpr", @@ -18266,128 +24045,179 @@ static const ProtobufCFieldDescriptor pg_query__op_expr__field_descriptors[8] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, xpr), + offsetof(PgQuery__BooleanTest, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opno", + "arg", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, opno), - NULL, + offsetof(PgQuery__BooleanTest, arg), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opresulttype", + "booltesttype", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, opresulttype), - NULL, + offsetof(PgQuery__BooleanTest, booltesttype), + &pg_query__bool_test_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opretset", + "location", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, opretset), + offsetof(PgQuery__BooleanTest, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__boolean_test__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 2, /* field[2] = booltesttype */ + 3, /* field[3] = location */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__boolean_test__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__boolean_test__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.BooleanTest", + "BooleanTest", + "PgQuery__BooleanTest", + "pg_query", + sizeof(PgQuery__BooleanTest), + 4, + pg_query__boolean_test__field_descriptors, + pg_query__boolean_test__field_indices_by_name, + 1, pg_query__boolean_test__number_ranges, + (ProtobufCMessageInit) pg_query__boolean_test__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__merge_action__field_descriptors[6] = +{ { - "opcollid", - 5, + "match_kind", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, opcollid), + offsetof(PgQuery__MergeAction, match_kind), + &pg_query__merge_match_kind__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "command_type", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeAction, command_type), + &pg_query__cmd_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", - 6, + "override", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, inputcollid), + offsetof(PgQuery__MergeAction, override), + &pg_query__overriding_kind__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "qual", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeAction, qual), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 7, + "target_list", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__OpExpr, n_args), - offsetof(PgQuery__OpExpr, args), + offsetof(PgQuery__MergeAction, n_target_list), + offsetof(PgQuery__MergeAction, target_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__OpExpr, location), - NULL, + "update_colnos", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__MergeAction, n_update_colnos), + offsetof(PgQuery__MergeAction, update_colnos), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__op_expr__field_indices_by_name[] = { - 6, /* field[6] = args */ - 5, /* field[5] = inputcollid */ - 7, /* field[7] = location */ - 4, /* field[4] = opcollid */ - 1, /* field[1] = opno */ - 2, /* field[2] = opresulttype */ - 3, /* field[3] = opretset */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__merge_action__field_indices_by_name[] = { + 1, /* field[1] = command_type */ + 0, /* field[0] = match_kind */ + 2, /* field[2] = override */ + 3, /* field[3] = qual */ + 4, /* field[4] = target_list */ + 5, /* field[5] = update_colnos */ }; -static const ProtobufCIntRange pg_query__op_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__merge_action__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__op_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__merge_action__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.OpExpr", - "OpExpr", - "PgQuery__OpExpr", + "pg_query.MergeAction", + "MergeAction", + "PgQuery__MergeAction", "pg_query", - sizeof(PgQuery__OpExpr), - 8, - pg_query__op_expr__field_descriptors, - pg_query__op_expr__field_indices_by_name, - 1, pg_query__op_expr__number_ranges, - (ProtobufCMessageInit) pg_query__op_expr__init, + sizeof(PgQuery__MergeAction), + 6, + pg_query__merge_action__field_descriptors, + pg_query__merge_action__field_indices_by_name, + 1, pg_query__merge_action__number_ranges, + (ProtobufCMessageInit) pg_query__merge_action__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__distinct_expr__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__coerce_to_domain__field_descriptors[7] = { { "xpr", @@ -18395,128 +24225,115 @@ static const ProtobufCFieldDescriptor pg_query__distinct_expr__field_descriptors PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, xpr), + offsetof(PgQuery__CoerceToDomain, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opno", + "arg", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, opno), - NULL, + offsetof(PgQuery__CoerceToDomain, arg), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opresulttype", + "resulttype", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, opresulttype), + offsetof(PgQuery__CoerceToDomain, resulttype), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opretset", + "resulttypmod", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, opretset), + offsetof(PgQuery__CoerceToDomain, resulttypmod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opcollid", + "resultcollid", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, opcollid), + offsetof(PgQuery__CoerceToDomain, resultcollid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", + "coercionformat", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, inputcollid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "args", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DistinctExpr, n_args), - offsetof(PgQuery__DistinctExpr, args), - &pg_query__node__descriptor, + offsetof(PgQuery__CoerceToDomain, coercionformat), + &pg_query__coercion_form__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 8, + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DistinctExpr, location), + offsetof(PgQuery__CoerceToDomain, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__distinct_expr__field_indices_by_name[] = { - 6, /* field[6] = args */ - 5, /* field[5] = inputcollid */ - 7, /* field[7] = location */ - 4, /* field[4] = opcollid */ - 1, /* field[1] = opno */ - 2, /* field[2] = opresulttype */ - 3, /* field[3] = opretset */ +static const unsigned pg_query__coerce_to_domain__field_indices_by_name[] = { + 1, /* field[1] = arg */ + 5, /* field[5] = coercionformat */ + 6, /* field[6] = location */ + 4, /* field[4] = resultcollid */ + 2, /* field[2] = resulttype */ + 3, /* field[3] = resulttypmod */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__distinct_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__coerce_to_domain__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__distinct_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__coerce_to_domain__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DistinctExpr", - "DistinctExpr", - "PgQuery__DistinctExpr", + "pg_query.CoerceToDomain", + "CoerceToDomain", + "PgQuery__CoerceToDomain", "pg_query", - sizeof(PgQuery__DistinctExpr), - 8, - pg_query__distinct_expr__field_descriptors, - pg_query__distinct_expr__field_indices_by_name, - 1, pg_query__distinct_expr__number_ranges, - (ProtobufCMessageInit) pg_query__distinct_expr__init, + sizeof(PgQuery__CoerceToDomain), + 7, + pg_query__coerce_to_domain__field_descriptors, + pg_query__coerce_to_domain__field_indices_by_name, + 1, pg_query__coerce_to_domain__number_ranges, + (ProtobufCMessageInit) pg_query__coerce_to_domain__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__null_if_expr__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__coerce_to_domain_value__field_descriptors[5] = { { "xpr", @@ -18524,128 +24341,89 @@ static const ProtobufCFieldDescriptor pg_query__null_if_expr__field_descriptors[ PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, xpr), + offsetof(PgQuery__CoerceToDomainValue, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opno", + "type_id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, opno), + offsetof(PgQuery__CoerceToDomainValue, type_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opresulttype", + "type_mod", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, opresulttype), + offsetof(PgQuery__CoerceToDomainValue, type_mod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opretset", + "collation", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, opretset), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "opcollid", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, opcollid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "inputcollid", - 6, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, inputcollid), - NULL, + offsetof(PgQuery__CoerceToDomainValue, collation), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "args", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__NullIfExpr, n_args), - offsetof(PgQuery__NullIfExpr, args), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 8, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NullIfExpr, location), + offsetof(PgQuery__CoerceToDomainValue, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__null_if_expr__field_indices_by_name[] = { - 6, /* field[6] = args */ - 5, /* field[5] = inputcollid */ - 7, /* field[7] = location */ - 4, /* field[4] = opcollid */ - 1, /* field[1] = opno */ - 2, /* field[2] = opresulttype */ - 3, /* field[3] = opretset */ +static const unsigned pg_query__coerce_to_domain_value__field_indices_by_name[] = { + 3, /* field[3] = collation */ + 4, /* field[4] = location */ + 1, /* field[1] = type_id */ + 2, /* field[2] = type_mod */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__null_if_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__coerce_to_domain_value__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__null_if_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__coerce_to_domain_value__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.NullIfExpr", - "NullIfExpr", - "PgQuery__NullIfExpr", + "pg_query.CoerceToDomainValue", + "CoerceToDomainValue", + "PgQuery__CoerceToDomainValue", "pg_query", - sizeof(PgQuery__NullIfExpr), - 8, - pg_query__null_if_expr__field_descriptors, - pg_query__null_if_expr__field_indices_by_name, - 1, pg_query__null_if_expr__number_ranges, - (ProtobufCMessageInit) pg_query__null_if_expr__init, + sizeof(PgQuery__CoerceToDomainValue), + 5, + pg_query__coerce_to_domain_value__field_descriptors, + pg_query__coerce_to_domain_value__field_indices_by_name, + 1, pg_query__coerce_to_domain_value__number_ranges, + (ProtobufCMessageInit) pg_query__coerce_to_domain_value__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__scalar_array_op_expr__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__set_to_default__field_descriptors[5] = { { "xpr", @@ -18653,102 +24431,89 @@ static const ProtobufCFieldDescriptor pg_query__scalar_array_op_expr__field_desc PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ScalarArrayOpExpr, xpr), + offsetof(PgQuery__SetToDefault, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opno", + "type_id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ScalarArrayOpExpr, opno), + offsetof(PgQuery__SetToDefault, type_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "use_or", + "type_mod", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ScalarArrayOpExpr, use_or), + offsetof(PgQuery__SetToDefault, type_mod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", + "collation", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ScalarArrayOpExpr, inputcollid), - NULL, + offsetof(PgQuery__SetToDefault, collation), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "args", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ScalarArrayOpExpr, n_args), - offsetof(PgQuery__ScalarArrayOpExpr, args), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 6, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ScalarArrayOpExpr, location), + offsetof(PgQuery__SetToDefault, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__scalar_array_op_expr__field_indices_by_name[] = { - 4, /* field[4] = args */ - 3, /* field[3] = inputcollid */ - 5, /* field[5] = location */ - 1, /* field[1] = opno */ - 2, /* field[2] = use_or */ +static const unsigned pg_query__set_to_default__field_indices_by_name[] = { + 3, /* field[3] = collation */ + 4, /* field[4] = location */ + 1, /* field[1] = type_id */ + 2, /* field[2] = type_mod */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__scalar_array_op_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__set_to_default__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__scalar_array_op_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__set_to_default__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ScalarArrayOpExpr", - "ScalarArrayOpExpr", - "PgQuery__ScalarArrayOpExpr", + "pg_query.SetToDefault", + "SetToDefault", + "PgQuery__SetToDefault", "pg_query", - sizeof(PgQuery__ScalarArrayOpExpr), - 6, - pg_query__scalar_array_op_expr__field_descriptors, - pg_query__scalar_array_op_expr__field_indices_by_name, - 1, pg_query__scalar_array_op_expr__number_ranges, - (ProtobufCMessageInit) pg_query__scalar_array_op_expr__init, + sizeof(PgQuery__SetToDefault), + 5, + pg_query__set_to_default__field_descriptors, + pg_query__set_to_default__field_indices_by_name, + 1, pg_query__set_to_default__number_ranges, + (ProtobufCMessageInit) pg_query__set_to_default__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__bool_expr__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__current_of_expr__field_descriptors[4] = { { "xpr", @@ -18756,76 +24521,76 @@ static const ProtobufCFieldDescriptor pg_query__bool_expr__field_descriptors[4] PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__BoolExpr, xpr), + offsetof(PgQuery__CurrentOfExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "boolop", + "cvarno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__BoolExpr, boolop), - &pg_query__bool_expr_type__descriptor, + offsetof(PgQuery__CurrentOfExpr, cvarno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "cursor_name", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__BoolExpr, n_args), - offsetof(PgQuery__BoolExpr, args), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CurrentOfExpr, cursor_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "cursor_param", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__BoolExpr, location), + offsetof(PgQuery__CurrentOfExpr, cursor_param), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__bool_expr__field_indices_by_name[] = { - 2, /* field[2] = args */ - 1, /* field[1] = boolop */ - 3, /* field[3] = location */ +static const unsigned pg_query__current_of_expr__field_indices_by_name[] = { + 2, /* field[2] = cursor_name */ + 3, /* field[3] = cursor_param */ + 1, /* field[1] = cvarno */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__bool_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__current_of_expr__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__bool_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__current_of_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.BoolExpr", - "BoolExpr", - "PgQuery__BoolExpr", + "pg_query.CurrentOfExpr", + "CurrentOfExpr", + "PgQuery__CurrentOfExpr", "pg_query", - sizeof(PgQuery__BoolExpr), + sizeof(PgQuery__CurrentOfExpr), 4, - pg_query__bool_expr__field_descriptors, - pg_query__bool_expr__field_indices_by_name, - 1, pg_query__bool_expr__number_ranges, - (ProtobufCMessageInit) pg_query__bool_expr__init, + pg_query__current_of_expr__field_descriptors, + pg_query__current_of_expr__field_indices_by_name, + 1, pg_query__current_of_expr__number_ranges, + (ProtobufCMessageInit) pg_query__current_of_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__sub_link__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__next_value_expr__field_descriptors[3] = { { "xpr", @@ -18833,115 +24598,140 @@ static const ProtobufCFieldDescriptor pg_query__sub_link__field_descriptors[7] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubLink, xpr), + offsetof(PgQuery__NextValueExpr, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sub_link_type", + "seqid", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubLink, sub_link_type), - &pg_query__sub_link_type__descriptor, + offsetof(PgQuery__NextValueExpr, seqid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sub_link_id", + "type_id", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubLink, sub_link_id), + offsetof(PgQuery__NextValueExpr, type_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__next_value_expr__field_indices_by_name[] = { + 1, /* field[1] = seqid */ + 2, /* field[2] = type_id */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__next_value_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__next_value_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.NextValueExpr", + "NextValueExpr", + "PgQuery__NextValueExpr", + "pg_query", + sizeof(PgQuery__NextValueExpr), + 3, + pg_query__next_value_expr__field_descriptors, + pg_query__next_value_expr__field_indices_by_name, + 1, pg_query__next_value_expr__number_ranges, + (ProtobufCMessageInit) pg_query__next_value_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__inference_elem__field_descriptors[4] = +{ { - "testexpr", - 4, + "xpr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubLink, testexpr), + offsetof(PgQuery__InferenceElem, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "oper_name", - 5, - PROTOBUF_C_LABEL_REPEATED, + "expr", + 2, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubLink, n_oper_name), - offsetof(PgQuery__SubLink, oper_name), + 0, /* quantifier_offset */ + offsetof(PgQuery__InferenceElem, expr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "subselect", - 6, + "infercollid", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubLink, subselect), - &pg_query__node__descriptor, + offsetof(PgQuery__InferenceElem, infercollid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 7, + "inferopclass", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubLink, location), + offsetof(PgQuery__InferenceElem, inferopclass), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__sub_link__field_indices_by_name[] = { - 6, /* field[6] = location */ - 4, /* field[4] = oper_name */ - 2, /* field[2] = sub_link_id */ - 1, /* field[1] = sub_link_type */ - 5, /* field[5] = subselect */ - 3, /* field[3] = testexpr */ +static const unsigned pg_query__inference_elem__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 2, /* field[2] = infercollid */ + 3, /* field[3] = inferopclass */ 0, /* field[0] = xpr */ }; -static const ProtobufCIntRange pg_query__sub_link__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__inference_elem__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__sub_link__descriptor = +const ProtobufCMessageDescriptor pg_query__inference_elem__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SubLink", - "SubLink", - "PgQuery__SubLink", + "pg_query.InferenceElem", + "InferenceElem", + "PgQuery__InferenceElem", "pg_query", - sizeof(PgQuery__SubLink), - 7, - pg_query__sub_link__field_descriptors, - pg_query__sub_link__field_indices_by_name, - 1, pg_query__sub_link__number_ranges, - (ProtobufCMessageInit) pg_query__sub_link__init, + sizeof(PgQuery__InferenceElem), + 4, + pg_query__inference_elem__field_descriptors, + pg_query__inference_elem__field_indices_by_name, + 1, pg_query__inference_elem__number_ranges, + (ProtobufCMessageInit) pg_query__inference_elem__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__sub_plan__field_descriptors[17] = +static const ProtobufCFieldDescriptor pg_query__target_entry__field_descriptors[8] = { { "xpr", @@ -18949,1342 +24739,1247 @@ static const ProtobufCFieldDescriptor pg_query__sub_plan__field_descriptors[17] PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, xpr), + offsetof(PgQuery__TargetEntry, xpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sub_link_type", + "expr", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, sub_link_type), - &pg_query__sub_link_type__descriptor, + offsetof(PgQuery__TargetEntry, expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "testexpr", + "resno", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, testexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__TargetEntry, resno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "param_ids", + "resname", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubPlan, n_param_ids), - offsetof(PgQuery__SubPlan, param_ids), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__TargetEntry, resname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plan_id", + "ressortgroupref", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, plan_id), + offsetof(PgQuery__TargetEntry, ressortgroupref), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plan_name", + "resorigtbl", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, plan_name), + offsetof(PgQuery__TargetEntry, resorigtbl), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "first_col_type", + "resorigcol", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, first_col_type), + offsetof(PgQuery__TargetEntry, resorigcol), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "first_col_typmod", + "resjunk", 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, first_col_typmod), + offsetof(PgQuery__TargetEntry, resjunk), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__target_entry__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 7, /* field[7] = resjunk */ + 3, /* field[3] = resname */ + 2, /* field[2] = resno */ + 6, /* field[6] = resorigcol */ + 5, /* field[5] = resorigtbl */ + 4, /* field[4] = ressortgroupref */ + 0, /* field[0] = xpr */ +}; +static const ProtobufCIntRange pg_query__target_entry__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor pg_query__target_entry__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.TargetEntry", + "TargetEntry", + "PgQuery__TargetEntry", + "pg_query", + sizeof(PgQuery__TargetEntry), + 8, + pg_query__target_entry__field_descriptors, + pg_query__target_entry__field_indices_by_name, + 1, pg_query__target_entry__number_ranges, + (ProtobufCMessageInit) pg_query__target_entry__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__range_tbl_ref__field_descriptors[1] = +{ { - "first_col_collation", - 9, + "rtindex", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, first_col_collation), + offsetof(PgQuery__RangeTblRef, rtindex), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__range_tbl_ref__field_indices_by_name[] = { + 0, /* field[0] = rtindex */ +}; +static const ProtobufCIntRange pg_query__range_tbl_ref__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__range_tbl_ref__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RangeTblRef", + "RangeTblRef", + "PgQuery__RangeTblRef", + "pg_query", + sizeof(PgQuery__RangeTblRef), + 1, + pg_query__range_tbl_ref__field_descriptors, + pg_query__range_tbl_ref__field_indices_by_name, + 1, pg_query__range_tbl_ref__number_ranges, + (ProtobufCMessageInit) pg_query__range_tbl_ref__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__join_expr__field_descriptors[9] = +{ { - "use_hash_table", - 10, + "jointype", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, use_hash_table), - NULL, + offsetof(PgQuery__JoinExpr, jointype), + &pg_query__join_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unknown_eq_false", - 11, + "is_natural", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, unknown_eq_false), + offsetof(PgQuery__JoinExpr, is_natural), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "parallel_safe", - 12, + "larg", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, parallel_safe), - NULL, + offsetof(PgQuery__JoinExpr, larg), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "set_param", - 13, - PROTOBUF_C_LABEL_REPEATED, + "rarg", + 4, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubPlan, n_set_param), - offsetof(PgQuery__SubPlan, set_param), + 0, /* quantifier_offset */ + offsetof(PgQuery__JoinExpr, rarg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "par_param", - 14, + "using_clause", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubPlan, n_par_param), - offsetof(PgQuery__SubPlan, par_param), + offsetof(PgQuery__JoinExpr, n_using_clause), + offsetof(PgQuery__JoinExpr, using_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 15, - PROTOBUF_C_LABEL_REPEATED, + "join_using_alias", + 6, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SubPlan, n_args), - offsetof(PgQuery__SubPlan, args), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JoinExpr, join_using_alias), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "startup_cost", - 16, + "quals", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_DOUBLE, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, startup_cost), + offsetof(PgQuery__JoinExpr, quals), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alias", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__JoinExpr, alias), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "per_call_cost", - 17, + "rtindex", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_DOUBLE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SubPlan, per_call_cost), + offsetof(PgQuery__JoinExpr, rtindex), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__sub_plan__field_indices_by_name[] = { - 14, /* field[14] = args */ - 8, /* field[8] = first_col_collation */ - 6, /* field[6] = first_col_type */ - 7, /* field[7] = first_col_typmod */ - 13, /* field[13] = par_param */ - 11, /* field[11] = parallel_safe */ - 3, /* field[3] = param_ids */ - 16, /* field[16] = per_call_cost */ - 4, /* field[4] = plan_id */ - 5, /* field[5] = plan_name */ - 12, /* field[12] = set_param */ - 15, /* field[15] = startup_cost */ - 1, /* field[1] = sub_link_type */ - 2, /* field[2] = testexpr */ - 10, /* field[10] = unknown_eq_false */ - 9, /* field[9] = use_hash_table */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__join_expr__field_indices_by_name[] = { + 7, /* field[7] = alias */ + 1, /* field[1] = is_natural */ + 5, /* field[5] = join_using_alias */ + 0, /* field[0] = jointype */ + 2, /* field[2] = larg */ + 6, /* field[6] = quals */ + 3, /* field[3] = rarg */ + 8, /* field[8] = rtindex */ + 4, /* field[4] = using_clause */ }; -static const ProtobufCIntRange pg_query__sub_plan__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__join_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 17 } + { 0, 9 } }; -const ProtobufCMessageDescriptor pg_query__sub_plan__descriptor = +const ProtobufCMessageDescriptor pg_query__join_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SubPlan", - "SubPlan", - "PgQuery__SubPlan", + "pg_query.JoinExpr", + "JoinExpr", + "PgQuery__JoinExpr", "pg_query", - sizeof(PgQuery__SubPlan), - 17, - pg_query__sub_plan__field_descriptors, - pg_query__sub_plan__field_indices_by_name, - 1, pg_query__sub_plan__number_ranges, - (ProtobufCMessageInit) pg_query__sub_plan__init, + sizeof(PgQuery__JoinExpr), + 9, + pg_query__join_expr__field_descriptors, + pg_query__join_expr__field_indices_by_name, + 1, pg_query__join_expr__number_ranges, + (ProtobufCMessageInit) pg_query__join_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alternative_sub_plan__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__from_expr__field_descriptors[2] = { { - "xpr", + "fromlist", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlternativeSubPlan, xpr), + offsetof(PgQuery__FromExpr, n_fromlist), + offsetof(PgQuery__FromExpr, fromlist), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "subplans", + "quals", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlternativeSubPlan, n_subplans), - offsetof(PgQuery__AlternativeSubPlan, subplans), + 0, /* quantifier_offset */ + offsetof(PgQuery__FromExpr, quals), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alternative_sub_plan__field_indices_by_name[] = { - 1, /* field[1] = subplans */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__from_expr__field_indices_by_name[] = { + 0, /* field[0] = fromlist */ + 1, /* field[1] = quals */ }; -static const ProtobufCIntRange pg_query__alternative_sub_plan__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__from_expr__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alternative_sub_plan__descriptor = +const ProtobufCMessageDescriptor pg_query__from_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlternativeSubPlan", - "AlternativeSubPlan", - "PgQuery__AlternativeSubPlan", + "pg_query.FromExpr", + "FromExpr", + "PgQuery__FromExpr", "pg_query", - sizeof(PgQuery__AlternativeSubPlan), + sizeof(PgQuery__FromExpr), 2, - pg_query__alternative_sub_plan__field_descriptors, - pg_query__alternative_sub_plan__field_indices_by_name, - 1, pg_query__alternative_sub_plan__number_ranges, - (ProtobufCMessageInit) pg_query__alternative_sub_plan__init, + pg_query__from_expr__field_descriptors, + pg_query__from_expr__field_indices_by_name, + 1, pg_query__from_expr__number_ranges, + (ProtobufCMessageInit) pg_query__from_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__field_select__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__on_conflict_expr__field_descriptors[8] = { { - "xpr", + "action", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldSelect, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__OnConflictExpr, action), + &pg_query__on_conflict_action__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "arbiter_elems", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__FieldSelect, arg), + offsetof(PgQuery__OnConflictExpr, n_arbiter_elems), + offsetof(PgQuery__OnConflictExpr, arbiter_elems), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fieldnum", + "arbiter_where", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldSelect, fieldnum), - NULL, + offsetof(PgQuery__OnConflictExpr, arbiter_where), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", + "constraint", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldSelect, resulttype), + offsetof(PgQuery__OnConflictExpr, constraint), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttypmod", + "on_conflict_set", 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__OnConflictExpr, n_on_conflict_set), + offsetof(PgQuery__OnConflictExpr, on_conflict_set), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "on_conflict_where", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldSelect, resulttypmod), - NULL, + offsetof(PgQuery__OnConflictExpr, on_conflict_where), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resultcollid", - 6, + "excl_rel_index", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldSelect, resultcollid), + offsetof(PgQuery__OnConflictExpr, excl_rel_index), + NULL, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "excl_rel_tlist", + 8, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__OnConflictExpr, n_excl_rel_tlist), + offsetof(PgQuery__OnConflictExpr, excl_rel_tlist), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__field_select__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 2, /* field[2] = fieldnum */ - 5, /* field[5] = resultcollid */ - 3, /* field[3] = resulttype */ - 4, /* field[4] = resulttypmod */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__on_conflict_expr__field_indices_by_name[] = { + 0, /* field[0] = action */ + 1, /* field[1] = arbiter_elems */ + 2, /* field[2] = arbiter_where */ + 3, /* field[3] = constraint */ + 6, /* field[6] = excl_rel_index */ + 7, /* field[7] = excl_rel_tlist */ + 4, /* field[4] = on_conflict_set */ + 5, /* field[5] = on_conflict_where */ }; -static const ProtobufCIntRange pg_query__field_select__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__on_conflict_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__field_select__descriptor = +const ProtobufCMessageDescriptor pg_query__on_conflict_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FieldSelect", - "FieldSelect", - "PgQuery__FieldSelect", + "pg_query.OnConflictExpr", + "OnConflictExpr", + "PgQuery__OnConflictExpr", "pg_query", - sizeof(PgQuery__FieldSelect), - 6, - pg_query__field_select__field_descriptors, - pg_query__field_select__field_indices_by_name, - 1, pg_query__field_select__number_ranges, - (ProtobufCMessageInit) pg_query__field_select__init, + sizeof(PgQuery__OnConflictExpr), + 8, + pg_query__on_conflict_expr__field_descriptors, + pg_query__on_conflict_expr__field_indices_by_name, + 1, pg_query__on_conflict_expr__number_ranges, + (ProtobufCMessageInit) pg_query__on_conflict_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__field_store__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__query__field_descriptors[42] = { { - "xpr", + "command_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldStore, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, command_type), + &pg_query__cmd_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "query_source", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldStore, arg), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, query_source), + &pg_query__query_source__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "newvals", + "can_set_tag", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FieldStore, n_newvals), - offsetof(PgQuery__FieldStore, newvals), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__Query, can_set_tag), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fieldnums", + "utility_stmt", 4, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FieldStore, n_fieldnums), - offsetof(PgQuery__FieldStore, fieldnums), + 0, /* quantifier_offset */ + offsetof(PgQuery__Query, utility_stmt), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", + "result_relation", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FieldStore, resulttype), + offsetof(PgQuery__Query, result_relation), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__field_store__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 3, /* field[3] = fieldnums */ - 2, /* field[2] = newvals */ - 4, /* field[4] = resulttype */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__field_store__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor pg_query__field_store__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FieldStore", - "FieldStore", - "PgQuery__FieldStore", - "pg_query", - sizeof(PgQuery__FieldStore), - 5, - pg_query__field_store__field_descriptors, - pg_query__field_store__field_indices_by_name, - 1, pg_query__field_store__number_ranges, - (ProtobufCMessageInit) pg_query__field_store__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__relabel_type__field_descriptors[7] = -{ { - "xpr", - 1, + "has_aggs", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, has_aggs), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "arg", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, arg), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", - 3, + "has_window_funcs", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, resulttype), + offsetof(PgQuery__Query, has_window_funcs), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttypmod", - 4, + "has_target_srfs", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, resulttypmod), + offsetof(PgQuery__Query, has_target_srfs), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resultcollid", - 5, + "has_sub_links", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, resultcollid), + offsetof(PgQuery__Query, has_sub_links), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relabelformat", - 6, + "has_distinct_on", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, relabelformat), - &pg_query__coercion_form__descriptor, + offsetof(PgQuery__Query, has_distinct_on), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 7, + "has_recursive", + 11, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RelabelType, location), + offsetof(PgQuery__Query, has_recursive), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__relabel_type__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 6, /* field[6] = location */ - 5, /* field[5] = relabelformat */ - 4, /* field[4] = resultcollid */ - 2, /* field[2] = resulttype */ - 3, /* field[3] = resulttypmod */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__relabel_type__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor pg_query__relabel_type__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RelabelType", - "RelabelType", - "PgQuery__RelabelType", - "pg_query", - sizeof(PgQuery__RelabelType), - 7, - pg_query__relabel_type__field_descriptors, - pg_query__relabel_type__field_indices_by_name, - 1, pg_query__relabel_type__number_ranges, - (ProtobufCMessageInit) pg_query__relabel_type__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__coerce_via_io__field_descriptors[6] = -{ { - "xpr", - 1, + "has_modifying_cte", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceViaIO, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, has_modifying_cte), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", - 2, + "has_for_update", + 13, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceViaIO, arg), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, has_for_update), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", - 3, + "has_row_security", + 14, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceViaIO, resulttype), + offsetof(PgQuery__Query, has_row_security), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resultcollid", - 4, + "is_return", + 15, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceViaIO, resultcollid), + offsetof(PgQuery__Query, is_return), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coerceformat", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceViaIO, coerceformat), - &pg_query__coercion_form__descriptor, + "cte_list", + 16, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Query, n_cte_list), + offsetof(PgQuery__Query, cte_list), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceViaIO, location), - NULL, + "rtable", + 17, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Query, n_rtable), + offsetof(PgQuery__Query, rtable), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__coerce_via_io__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 4, /* field[4] = coerceformat */ - 5, /* field[5] = location */ - 3, /* field[3] = resultcollid */ - 2, /* field[2] = resulttype */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__coerce_via_io__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 6 } -}; -const ProtobufCMessageDescriptor pg_query__coerce_via_io__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CoerceViaIO", - "CoerceViaIO", - "PgQuery__CoerceViaIO", - "pg_query", - sizeof(PgQuery__CoerceViaIO), - 6, - pg_query__coerce_via_io__field_descriptors, - pg_query__coerce_via_io__field_indices_by_name, - 1, pg_query__coerce_via_io__number_ranges, - (ProtobufCMessageInit) pg_query__coerce_via_io__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__array_coerce_expr__field_descriptors[8] = -{ { - "xpr", - 1, - PROTOBUF_C_LABEL_NONE, + "rteperminfos", + 18, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, xpr), + offsetof(PgQuery__Query, n_rteperminfos), + offsetof(PgQuery__Query, rteperminfos), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", - 2, + "jointree", + 19, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, arg), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, jointree), + &pg_query__from_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "elemexpr", - 3, - PROTOBUF_C_LABEL_NONE, + "merge_action_list", + 20, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, elemexpr), + offsetof(PgQuery__Query, n_merge_action_list), + offsetof(PgQuery__Query, merge_action_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", - 4, + "merge_target_relation", + 21, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, resulttype), + offsetof(PgQuery__Query, merge_target_relation), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttypmod", - 5, + "merge_join_condition", + 22, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, resulttypmod), - NULL, + offsetof(PgQuery__Query, merge_join_condition), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resultcollid", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, resultcollid), - NULL, + "target_list", + 23, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Query, n_target_list), + offsetof(PgQuery__Query, target_list), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coerceformat", - 7, + "override", + 24, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, coerceformat), - &pg_query__coercion_form__descriptor, + offsetof(PgQuery__Query, override), + &pg_query__overriding_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 8, + "on_conflict", + 25, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayCoerceExpr, location), - NULL, + offsetof(PgQuery__Query, on_conflict), + &pg_query__on_conflict_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__array_coerce_expr__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 6, /* field[6] = coerceformat */ - 2, /* field[2] = elemexpr */ - 7, /* field[7] = location */ - 5, /* field[5] = resultcollid */ - 3, /* field[3] = resulttype */ - 4, /* field[4] = resulttypmod */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__array_coerce_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 8 } -}; -const ProtobufCMessageDescriptor pg_query__array_coerce_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ArrayCoerceExpr", - "ArrayCoerceExpr", - "PgQuery__ArrayCoerceExpr", - "pg_query", - sizeof(PgQuery__ArrayCoerceExpr), - 8, - pg_query__array_coerce_expr__field_descriptors, - pg_query__array_coerce_expr__field_indices_by_name, - 1, pg_query__array_coerce_expr__number_ranges, - (ProtobufCMessageInit) pg_query__array_coerce_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__convert_rowtype_expr__field_descriptors[5] = -{ { - "xpr", - 1, - PROTOBUF_C_LABEL_NONE, + "returning_list", + 26, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__ConvertRowtypeExpr, xpr), + offsetof(PgQuery__Query, n_returning_list), + offsetof(PgQuery__Query, returning_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", - 2, - PROTOBUF_C_LABEL_NONE, + "group_clause", + 27, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__ConvertRowtypeExpr, arg), + offsetof(PgQuery__Query, n_group_clause), + offsetof(PgQuery__Query, group_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", - 3, + "group_distinct", + 28, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ConvertRowtypeExpr, resulttype), + offsetof(PgQuery__Query, group_distinct), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "convertformat", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__ConvertRowtypeExpr, convertformat), - &pg_query__coercion_form__descriptor, + "grouping_sets", + 29, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Query, n_grouping_sets), + offsetof(PgQuery__Query, grouping_sets), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 5, + "having_qual", + 30, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ConvertRowtypeExpr, location), - NULL, + offsetof(PgQuery__Query, having_qual), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__convert_rowtype_expr__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 3, /* field[3] = convertformat */ - 4, /* field[4] = location */ - 2, /* field[2] = resulttype */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__convert_rowtype_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor pg_query__convert_rowtype_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ConvertRowtypeExpr", - "ConvertRowtypeExpr", - "PgQuery__ConvertRowtypeExpr", - "pg_query", - sizeof(PgQuery__ConvertRowtypeExpr), - 5, - pg_query__convert_rowtype_expr__field_descriptors, - pg_query__convert_rowtype_expr__field_indices_by_name, - 1, pg_query__convert_rowtype_expr__number_ranges, - (ProtobufCMessageInit) pg_query__convert_rowtype_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__collate_expr__field_descriptors[4] = -{ { - "xpr", - 1, - PROTOBUF_C_LABEL_NONE, + "window_clause", + 31, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CollateExpr, xpr), + offsetof(PgQuery__Query, n_window_clause), + offsetof(PgQuery__Query, window_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", - 2, - PROTOBUF_C_LABEL_NONE, + "distinct_clause", + 32, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CollateExpr, arg), + offsetof(PgQuery__Query, n_distinct_clause), + offsetof(PgQuery__Query, distinct_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coll_oid", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CollateExpr, coll_oid), - NULL, + "sort_clause", + 33, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Query, n_sort_clause), + offsetof(PgQuery__Query, sort_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 4, + "limit_offset", + 34, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CollateExpr, location), - NULL, + offsetof(PgQuery__Query, limit_offset), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__collate_expr__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 2, /* field[2] = coll_oid */ - 3, /* field[3] = location */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__collate_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__collate_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CollateExpr", - "CollateExpr", - "PgQuery__CollateExpr", - "pg_query", - sizeof(PgQuery__CollateExpr), - 4, - pg_query__collate_expr__field_descriptors, - pg_query__collate_expr__field_indices_by_name, - 1, pg_query__collate_expr__number_ranges, - (ProtobufCMessageInit) pg_query__collate_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__case_expr__field_descriptors[7] = -{ { - "xpr", - 1, + "limit_count", + 35, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseExpr, xpr), + offsetof(PgQuery__Query, limit_count), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "casetype", - 2, + "limit_option", + 36, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseExpr, casetype), + offsetof(PgQuery__Query, limit_option), + &pg_query__limit_option__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "row_marks", + 37, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Query, n_row_marks), + offsetof(PgQuery__Query, row_marks), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "casecollid", - 3, + "set_operations", + 38, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseExpr, casecollid), - NULL, + offsetof(PgQuery__Query, set_operations), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", - 4, - PROTOBUF_C_LABEL_NONE, + "constraint_deps", + 39, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CaseExpr, arg), + offsetof(PgQuery__Query, n_constraint_deps), + offsetof(PgQuery__Query, constraint_deps), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 5, + "with_check_options", + 40, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CaseExpr, n_args), - offsetof(PgQuery__CaseExpr, args), + offsetof(PgQuery__Query, n_with_check_options), + offsetof(PgQuery__Query, with_check_options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "defresult", - 6, + "stmt_location", + 41, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseExpr, defresult), - &pg_query__node__descriptor, + offsetof(PgQuery__Query, stmt_location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 7, + "stmt_len", + 42, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseExpr, location), + offsetof(PgQuery__Query, stmt_len), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__case_expr__field_indices_by_name[] = { - 3, /* field[3] = arg */ - 4, /* field[4] = args */ - 2, /* field[2] = casecollid */ - 1, /* field[1] = casetype */ - 5, /* field[5] = defresult */ - 6, /* field[6] = location */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__query__field_indices_by_name[] = { + 2, /* field[2] = can_set_tag */ + 0, /* field[0] = command_type */ + 38, /* field[38] = constraint_deps */ + 15, /* field[15] = cte_list */ + 31, /* field[31] = distinct_clause */ + 26, /* field[26] = group_clause */ + 27, /* field[27] = group_distinct */ + 28, /* field[28] = grouping_sets */ + 5, /* field[5] = has_aggs */ + 9, /* field[9] = has_distinct_on */ + 12, /* field[12] = has_for_update */ + 11, /* field[11] = has_modifying_cte */ + 10, /* field[10] = has_recursive */ + 13, /* field[13] = has_row_security */ + 8, /* field[8] = has_sub_links */ + 7, /* field[7] = has_target_srfs */ + 6, /* field[6] = has_window_funcs */ + 29, /* field[29] = having_qual */ + 14, /* field[14] = is_return */ + 18, /* field[18] = jointree */ + 34, /* field[34] = limit_count */ + 33, /* field[33] = limit_offset */ + 35, /* field[35] = limit_option */ + 19, /* field[19] = merge_action_list */ + 21, /* field[21] = merge_join_condition */ + 20, /* field[20] = merge_target_relation */ + 24, /* field[24] = on_conflict */ + 23, /* field[23] = override */ + 1, /* field[1] = query_source */ + 4, /* field[4] = result_relation */ + 25, /* field[25] = returning_list */ + 36, /* field[36] = row_marks */ + 16, /* field[16] = rtable */ + 17, /* field[17] = rteperminfos */ + 37, /* field[37] = set_operations */ + 32, /* field[32] = sort_clause */ + 41, /* field[41] = stmt_len */ + 40, /* field[40] = stmt_location */ + 22, /* field[22] = target_list */ + 3, /* field[3] = utility_stmt */ + 30, /* field[30] = window_clause */ + 39, /* field[39] = with_check_options */ }; -static const ProtobufCIntRange pg_query__case_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__query__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 42 } }; -const ProtobufCMessageDescriptor pg_query__case_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__query__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CaseExpr", - "CaseExpr", - "PgQuery__CaseExpr", + "pg_query.Query", + "Query", + "PgQuery__Query", "pg_query", - sizeof(PgQuery__CaseExpr), - 7, - pg_query__case_expr__field_descriptors, - pg_query__case_expr__field_indices_by_name, - 1, pg_query__case_expr__number_ranges, - (ProtobufCMessageInit) pg_query__case_expr__init, + sizeof(PgQuery__Query), + 42, + pg_query__query__field_descriptors, + pg_query__query__field_indices_by_name, + 1, pg_query__query__number_ranges, + (ProtobufCMessageInit) pg_query__query__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__case_when__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__type_name__field_descriptors[8] = { { - "xpr", + "names", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CaseWhen, xpr), + offsetof(PgQuery__TypeName, n_names), + offsetof(PgQuery__TypeName, names), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "type_oid", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseWhen, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__TypeName, type_oid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "result", + "setof", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseWhen, result), - &pg_query__node__descriptor, + offsetof(PgQuery__TypeName, setof), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "pct_type", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseWhen, location), + offsetof(PgQuery__TypeName, pct_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__case_when__field_indices_by_name[] = { - 1, /* field[1] = expr */ - 3, /* field[3] = location */ - 2, /* field[2] = result */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__case_when__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__case_when__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CaseWhen", - "CaseWhen", - "PgQuery__CaseWhen", - "pg_query", - sizeof(PgQuery__CaseWhen), - 4, - pg_query__case_when__field_descriptors, - pg_query__case_when__field_indices_by_name, - 1, pg_query__case_when__number_ranges, - (ProtobufCMessageInit) pg_query__case_when__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__case_test_expr__field_descriptors[4] = -{ { - "xpr", - 1, - PROTOBUF_C_LABEL_NONE, + "typmods", + 5, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CaseTestExpr, xpr), + offsetof(PgQuery__TypeName, n_typmods), + offsetof(PgQuery__TypeName, typmods), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_id", - 2, + "typemod", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseTestExpr, type_id), + offsetof(PgQuery__TypeName, typemod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_mod", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CaseTestExpr, type_mod), - NULL, + "array_bounds", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__TypeName, n_array_bounds), + offsetof(PgQuery__TypeName, array_bounds), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collation", - 4, + "location", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CaseTestExpr, collation), + offsetof(PgQuery__TypeName, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__case_test_expr__field_indices_by_name[] = { - 3, /* field[3] = collation */ - 1, /* field[1] = type_id */ - 2, /* field[2] = type_mod */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__type_name__field_indices_by_name[] = { + 6, /* field[6] = array_bounds */ + 7, /* field[7] = location */ + 0, /* field[0] = names */ + 3, /* field[3] = pct_type */ + 2, /* field[2] = setof */ + 1, /* field[1] = type_oid */ + 5, /* field[5] = typemod */ + 4, /* field[4] = typmods */ }; -static const ProtobufCIntRange pg_query__case_test_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__type_name__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__case_test_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__type_name__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CaseTestExpr", - "CaseTestExpr", - "PgQuery__CaseTestExpr", + "pg_query.TypeName", + "TypeName", + "PgQuery__TypeName", "pg_query", - sizeof(PgQuery__CaseTestExpr), - 4, - pg_query__case_test_expr__field_descriptors, - pg_query__case_test_expr__field_indices_by_name, - 1, pg_query__case_test_expr__number_ranges, - (ProtobufCMessageInit) pg_query__case_test_expr__init, + sizeof(PgQuery__TypeName), + 8, + pg_query__type_name__field_descriptors, + pg_query__type_name__field_indices_by_name, + 1, pg_query__type_name__number_ranges, + (ProtobufCMessageInit) pg_query__type_name__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__array_expr__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__column_ref__field_descriptors[2] = { { - "xpr", + "fields", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayExpr, xpr), + offsetof(PgQuery__ColumnRef, n_fields), + offsetof(PgQuery__ColumnRef, fields), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "array_typeid", + "location", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayExpr, array_typeid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "array_collid", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayExpr, array_collid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "element_typeid", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayExpr, element_typeid), - NULL, + offsetof(PgQuery__ColumnRef, location), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "elements", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ArrayExpr, n_elements), - offsetof(PgQuery__ArrayExpr, elements), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__column_ref__field_indices_by_name[] = { + 0, /* field[0] = fields */ + 1, /* field[1] = location */ +}; +static const ProtobufCIntRange pg_query__column_ref__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__column_ref__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ColumnRef", + "ColumnRef", + "PgQuery__ColumnRef", + "pg_query", + sizeof(PgQuery__ColumnRef), + 2, + pg_query__column_ref__field_descriptors, + pg_query__column_ref__field_indices_by_name, + 1, pg_query__column_ref__number_ranges, + (ProtobufCMessageInit) pg_query__column_ref__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__param_ref__field_descriptors[2] = +{ { - "multidims", - 6, + "number", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayExpr, multidims), + offsetof(PgQuery__ParamRef, number), NULL, NULL, 0, /* flags */ @@ -20292,103 +25987,86 @@ static const ProtobufCFieldDescriptor pg_query__array_expr__field_descriptors[7] }, { "location", - 7, + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ArrayExpr, location), + offsetof(PgQuery__ParamRef, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__array_expr__field_indices_by_name[] = { - 2, /* field[2] = array_collid */ - 1, /* field[1] = array_typeid */ - 3, /* field[3] = element_typeid */ - 4, /* field[4] = elements */ - 6, /* field[6] = location */ - 5, /* field[5] = multidims */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__array_expr__number_ranges[1 + 1] = +static const unsigned pg_query__param_ref__field_indices_by_name[] = { + 1, /* field[1] = location */ + 0, /* field[0] = number */ +}; +static const ProtobufCIntRange pg_query__param_ref__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__array_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__param_ref__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ArrayExpr", - "ArrayExpr", - "PgQuery__ArrayExpr", + "pg_query.ParamRef", + "ParamRef", + "PgQuery__ParamRef", "pg_query", - sizeof(PgQuery__ArrayExpr), - 7, - pg_query__array_expr__field_descriptors, - pg_query__array_expr__field_indices_by_name, - 1, pg_query__array_expr__number_ranges, - (ProtobufCMessageInit) pg_query__array_expr__init, + sizeof(PgQuery__ParamRef), + 2, + pg_query__param_ref__field_descriptors, + pg_query__param_ref__field_indices_by_name, + 1, pg_query__param_ref__number_ranges, + (ProtobufCMessageInit) pg_query__param_ref__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__row_expr__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__a__expr__field_descriptors[5] = { { - "xpr", + "kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__RowExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__AExpr, kind), + &pg_query__a__expr__kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "name", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowExpr, n_args), - offsetof(PgQuery__RowExpr, args), + offsetof(PgQuery__AExpr, n_name), + offsetof(PgQuery__AExpr, name), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "row_typeid", + "lexpr", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RowExpr, row_typeid), - NULL, + offsetof(PgQuery__AExpr, lexpr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "row_format", + "rexpr", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__RowExpr, row_format), - &pg_query__coercion_form__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "colnames", - 5, - PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowExpr, n_colnames), - offsetof(PgQuery__RowExpr, colnames), + 0, /* quantifier_offset */ + offsetof(PgQuery__AExpr, rexpr), &pg_query__node__descriptor, NULL, 0, /* flags */ @@ -20396,2009 +26074,2192 @@ static const ProtobufCFieldDescriptor pg_query__row_expr__field_descriptors[6] = }, { "location", - 6, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RowExpr, location), + offsetof(PgQuery__AExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__row_expr__field_indices_by_name[] = { - 1, /* field[1] = args */ - 4, /* field[4] = colnames */ - 5, /* field[5] = location */ - 3, /* field[3] = row_format */ - 2, /* field[2] = row_typeid */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__a__expr__field_indices_by_name[] = { + 0, /* field[0] = kind */ + 2, /* field[2] = lexpr */ + 4, /* field[4] = location */ + 1, /* field[1] = name */ + 3, /* field[3] = rexpr */ }; -static const ProtobufCIntRange pg_query__row_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__a__expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__row_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__a__expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RowExpr", - "RowExpr", - "PgQuery__RowExpr", + "pg_query.A_Expr", + "AExpr", + "PgQuery__AExpr", "pg_query", - sizeof(PgQuery__RowExpr), - 6, - pg_query__row_expr__field_descriptors, - pg_query__row_expr__field_indices_by_name, - 1, pg_query__row_expr__number_ranges, - (ProtobufCMessageInit) pg_query__row_expr__init, + sizeof(PgQuery__AExpr), + 5, + pg_query__a__expr__field_descriptors, + pg_query__a__expr__field_indices_by_name, + 1, pg_query__a__expr__number_ranges, + (ProtobufCMessageInit) pg_query__a__expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__row_compare_expr__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__type_cast__field_descriptors[3] = { { - "xpr", + "arg", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RowCompareExpr, xpr), + offsetof(PgQuery__TypeCast, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rctype", + "type_name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RowCompareExpr, rctype), - &pg_query__row_compare_type__descriptor, + offsetof(PgQuery__TypeCast, type_name), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opnos", + "location", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowCompareExpr, n_opnos), - offsetof(PgQuery__RowCompareExpr, opnos), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__TypeCast, location), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "opfamilies", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowCompareExpr, n_opfamilies), - offsetof(PgQuery__RowCompareExpr, opfamilies), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__type_cast__field_indices_by_name[] = { + 0, /* field[0] = arg */ + 2, /* field[2] = location */ + 1, /* field[1] = type_name */ +}; +static const ProtobufCIntRange pg_query__type_cast__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__type_cast__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.TypeCast", + "TypeCast", + "PgQuery__TypeCast", + "pg_query", + sizeof(PgQuery__TypeCast), + 3, + pg_query__type_cast__field_descriptors, + pg_query__type_cast__field_indices_by_name, + 1, pg_query__type_cast__number_ranges, + (ProtobufCMessageInit) pg_query__type_cast__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__collate_clause__field_descriptors[3] = +{ { - "inputcollids", - 5, - PROTOBUF_C_LABEL_REPEATED, + "arg", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowCompareExpr, n_inputcollids), - offsetof(PgQuery__RowCompareExpr, inputcollids), + 0, /* quantifier_offset */ + offsetof(PgQuery__CollateClause, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "largs", - 6, + "collname", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowCompareExpr, n_largs), - offsetof(PgQuery__RowCompareExpr, largs), + offsetof(PgQuery__CollateClause, n_collname), + offsetof(PgQuery__CollateClause, collname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rargs", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RowCompareExpr, n_rargs), - offsetof(PgQuery__RowCompareExpr, rargs), - &pg_query__node__descriptor, + "location", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__CollateClause, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__row_compare_expr__field_indices_by_name[] = { - 4, /* field[4] = inputcollids */ - 5, /* field[5] = largs */ - 3, /* field[3] = opfamilies */ - 2, /* field[2] = opnos */ - 6, /* field[6] = rargs */ - 1, /* field[1] = rctype */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__collate_clause__field_indices_by_name[] = { + 0, /* field[0] = arg */ + 1, /* field[1] = collname */ + 2, /* field[2] = location */ }; -static const ProtobufCIntRange pg_query__row_compare_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__collate_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__row_compare_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__collate_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RowCompareExpr", - "RowCompareExpr", - "PgQuery__RowCompareExpr", + "pg_query.CollateClause", + "CollateClause", + "PgQuery__CollateClause", "pg_query", - sizeof(PgQuery__RowCompareExpr), - 7, - pg_query__row_compare_expr__field_descriptors, - pg_query__row_compare_expr__field_indices_by_name, - 1, pg_query__row_compare_expr__number_ranges, - (ProtobufCMessageInit) pg_query__row_compare_expr__init, + sizeof(PgQuery__CollateClause), + 3, + pg_query__collate_clause__field_descriptors, + pg_query__collate_clause__field_indices_by_name, + 1, pg_query__collate_clause__number_ranges, + (ProtobufCMessageInit) pg_query__collate_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__coalesce_expr__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__role_spec__field_descriptors[3] = { { - "xpr", + "roletype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CoalesceExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__RoleSpec, roletype), + &pg_query__role_spec_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coalescetype", + "rolename", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoalesceExpr, coalescetype), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "coalescecollid", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CoalesceExpr, coalescecollid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "args", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CoalesceExpr, n_args), - offsetof(PgQuery__CoalesceExpr, args), - &pg_query__node__descriptor, + offsetof(PgQuery__RoleSpec, rolename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 5, + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CoalesceExpr, location), + offsetof(PgQuery__RoleSpec, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__coalesce_expr__field_indices_by_name[] = { - 3, /* field[3] = args */ - 2, /* field[2] = coalescecollid */ - 1, /* field[1] = coalescetype */ - 4, /* field[4] = location */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__role_spec__field_indices_by_name[] = { + 2, /* field[2] = location */ + 1, /* field[1] = rolename */ + 0, /* field[0] = roletype */ }; -static const ProtobufCIntRange pg_query__coalesce_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__role_spec__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__coalesce_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__role_spec__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CoalesceExpr", - "CoalesceExpr", - "PgQuery__CoalesceExpr", + "pg_query.RoleSpec", + "RoleSpec", + "PgQuery__RoleSpec", "pg_query", - sizeof(PgQuery__CoalesceExpr), - 5, - pg_query__coalesce_expr__field_descriptors, - pg_query__coalesce_expr__field_indices_by_name, - 1, pg_query__coalesce_expr__number_ranges, - (ProtobufCMessageInit) pg_query__coalesce_expr__init, + sizeof(PgQuery__RoleSpec), + 3, + pg_query__role_spec__field_descriptors, + pg_query__role_spec__field_indices_by_name, + 1, pg_query__role_spec__number_ranges, + (ProtobufCMessageInit) pg_query__role_spec__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__min_max_expr__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__func_call__field_descriptors[11] = { { - "xpr", + "funcname", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__MinMaxExpr, xpr), + offsetof(PgQuery__FuncCall, n_funcname), + offsetof(PgQuery__FuncCall, funcname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "minmaxtype", + "args", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__MinMaxExpr, minmaxtype), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__FuncCall, n_args), + offsetof(PgQuery__FuncCall, args), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "minmaxcollid", + "agg_order", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__MinMaxExpr, minmaxcollid), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__FuncCall, n_agg_order), + offsetof(PgQuery__FuncCall, agg_order), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inputcollid", + "agg_filter", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__MinMaxExpr, inputcollid), - NULL, + offsetof(PgQuery__FuncCall, agg_filter), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "op", + "over", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__MinMaxExpr, op), - &pg_query__min_max_op__descriptor, + offsetof(PgQuery__FuncCall, over), + &pg_query__window_def__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "agg_within_group", 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MinMaxExpr, n_args), - offsetof(PgQuery__MinMaxExpr, args), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__MinMaxExpr, location), + offsetof(PgQuery__FuncCall, agg_within_group), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__min_max_expr__field_indices_by_name[] = { - 5, /* field[5] = args */ - 3, /* field[3] = inputcollid */ - 6, /* field[6] = location */ - 2, /* field[2] = minmaxcollid */ - 1, /* field[1] = minmaxtype */ - 4, /* field[4] = op */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__min_max_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor pg_query__min_max_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.MinMaxExpr", - "MinMaxExpr", - "PgQuery__MinMaxExpr", - "pg_query", - sizeof(PgQuery__MinMaxExpr), - 7, - pg_query__min_max_expr__field_descriptors, - pg_query__min_max_expr__field_indices_by_name, - 1, pg_query__min_max_expr__number_ranges, - (ProtobufCMessageInit) pg_query__min_max_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__sqlvalue_function__field_descriptors[5] = -{ { - "xpr", - 1, + "agg_star", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SQLValueFunction, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__FuncCall, agg_star), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "op", - 2, + "agg_distinct", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SQLValueFunction, op), - &pg_query__sqlvalue_function_op__descriptor, + offsetof(PgQuery__FuncCall, agg_distinct), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type", - 3, + "func_variadic", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SQLValueFunction, type), + offsetof(PgQuery__FuncCall, func_variadic), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "typmod", - 4, + "funcformat", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SQLValueFunction, typmod), - NULL, + offsetof(PgQuery__FuncCall, funcformat), + &pg_query__coercion_form__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 5, + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SQLValueFunction, location), + offsetof(PgQuery__FuncCall, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__sqlvalue_function__field_indices_by_name[] = { - 4, /* field[4] = location */ - 1, /* field[1] = op */ - 2, /* field[2] = type */ - 3, /* field[3] = typmod */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__func_call__field_indices_by_name[] = { + 7, /* field[7] = agg_distinct */ + 3, /* field[3] = agg_filter */ + 2, /* field[2] = agg_order */ + 6, /* field[6] = agg_star */ + 5, /* field[5] = agg_within_group */ + 1, /* field[1] = args */ + 8, /* field[8] = func_variadic */ + 9, /* field[9] = funcformat */ + 0, /* field[0] = funcname */ + 10, /* field[10] = location */ + 4, /* field[4] = over */ }; -static const ProtobufCIntRange pg_query__sqlvalue_function__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__func_call__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 11 } }; -const ProtobufCMessageDescriptor pg_query__sqlvalue_function__descriptor = +const ProtobufCMessageDescriptor pg_query__func_call__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SQLValueFunction", - "SQLValueFunction", - "PgQuery__SQLValueFunction", + "pg_query.FuncCall", + "FuncCall", + "PgQuery__FuncCall", + "pg_query", + sizeof(PgQuery__FuncCall), + 11, + pg_query__func_call__field_descriptors, + pg_query__func_call__field_indices_by_name, + 1, pg_query__func_call__number_ranges, + (ProtobufCMessageInit) pg_query__func_call__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define pg_query__a__star__field_descriptors NULL +#define pg_query__a__star__field_indices_by_name NULL +#define pg_query__a__star__number_ranges NULL +const ProtobufCMessageDescriptor pg_query__a__star__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.A_Star", + "AStar", + "PgQuery__AStar", "pg_query", - sizeof(PgQuery__SQLValueFunction), - 5, - pg_query__sqlvalue_function__field_descriptors, - pg_query__sqlvalue_function__field_indices_by_name, - 1, pg_query__sqlvalue_function__number_ranges, - (ProtobufCMessageInit) pg_query__sqlvalue_function__init, + sizeof(PgQuery__AStar), + 0, + pg_query__a__star__field_descriptors, + pg_query__a__star__field_indices_by_name, + 0, pg_query__a__star__number_ranges, + (ProtobufCMessageInit) pg_query__a__star__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__xml_expr__field_descriptors[11] = +static const ProtobufCFieldDescriptor pg_query__a__indices__field_descriptors[3] = { { - "xpr", + "is_slice", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__AIndices, is_slice), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "op", + "lidx", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, op), - &pg_query__xml_expr_op__descriptor, + offsetof(PgQuery__AIndices, lidx), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", + "uidx", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, name), + offsetof(PgQuery__AIndices, uidx), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__a__indices__field_indices_by_name[] = { + 0, /* field[0] = is_slice */ + 1, /* field[1] = lidx */ + 2, /* field[2] = uidx */ +}; +static const ProtobufCIntRange pg_query__a__indices__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__a__indices__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.A_Indices", + "AIndices", + "PgQuery__AIndices", + "pg_query", + sizeof(PgQuery__AIndices), + 3, + pg_query__a__indices__field_descriptors, + pg_query__a__indices__field_indices_by_name, + 1, pg_query__a__indices__number_ranges, + (ProtobufCMessageInit) pg_query__a__indices__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__a__indirection__field_descriptors[2] = +{ { - "named_args", - 4, - PROTOBUF_C_LABEL_REPEATED, + "arg", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__XmlExpr, n_named_args), - offsetof(PgQuery__XmlExpr, named_args), + 0, /* quantifier_offset */ + offsetof(PgQuery__AIndirection, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg_names", - 5, + "indirection", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__XmlExpr, n_arg_names), - offsetof(PgQuery__XmlExpr, arg_names), + offsetof(PgQuery__AIndirection, n_indirection), + offsetof(PgQuery__AIndirection, indirection), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__a__indirection__field_indices_by_name[] = { + 0, /* field[0] = arg */ + 1, /* field[1] = indirection */ +}; +static const ProtobufCIntRange pg_query__a__indirection__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__a__indirection__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.A_Indirection", + "AIndirection", + "PgQuery__AIndirection", + "pg_query", + sizeof(PgQuery__AIndirection), + 2, + pg_query__a__indirection__field_descriptors, + pg_query__a__indirection__field_indices_by_name, + 1, pg_query__a__indirection__number_ranges, + (ProtobufCMessageInit) pg_query__a__indirection__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__a__array_expr__field_descriptors[2] = +{ { - "args", - 6, + "elements", + 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__XmlExpr, n_args), - offsetof(PgQuery__XmlExpr, args), + offsetof(PgQuery__AArrayExpr, n_elements), + offsetof(PgQuery__AArrayExpr, elements), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "xmloption", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, xmloption), - &pg_query__xml_option_type__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "indent", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, indent), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "type", - 9, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, type), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "typmod", - 10, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, typmod), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, { "location", - 11, + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlExpr, location), + offsetof(PgQuery__AArrayExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__xml_expr__field_indices_by_name[] = { - 4, /* field[4] = arg_names */ - 5, /* field[5] = args */ - 7, /* field[7] = indent */ - 10, /* field[10] = location */ - 2, /* field[2] = name */ - 3, /* field[3] = named_args */ - 1, /* field[1] = op */ - 8, /* field[8] = type */ - 9, /* field[9] = typmod */ - 6, /* field[6] = xmloption */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__a__array_expr__field_indices_by_name[] = { + 0, /* field[0] = elements */ + 1, /* field[1] = location */ }; -static const ProtobufCIntRange pg_query__xml_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__a__array_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 11 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__xml_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__a__array_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.XmlExpr", - "XmlExpr", - "PgQuery__XmlExpr", + "pg_query.A_ArrayExpr", + "AArrayExpr", + "PgQuery__AArrayExpr", "pg_query", - sizeof(PgQuery__XmlExpr), - 11, - pg_query__xml_expr__field_descriptors, - pg_query__xml_expr__field_indices_by_name, - 1, pg_query__xml_expr__number_ranges, - (ProtobufCMessageInit) pg_query__xml_expr__init, + sizeof(PgQuery__AArrayExpr), + 2, + pg_query__a__array_expr__field_descriptors, + pg_query__a__array_expr__field_indices_by_name, + 1, pg_query__a__array_expr__number_ranges, + (ProtobufCMessageInit) pg_query__a__array_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_format__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__res_target__field_descriptors[4] = { { - "format_type", + "name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFormat, format_type), - &pg_query__json_format_type__descriptor, + offsetof(PgQuery__ResTarget, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "encoding", + "indirection", 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ResTarget, n_indirection), + offsetof(PgQuery__ResTarget, indirection), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "val", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFormat, encoding), - &pg_query__json_encoding__descriptor, + offsetof(PgQuery__ResTarget, val), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 3, + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFormat, location), + offsetof(PgQuery__ResTarget, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_format__field_indices_by_name[] = { - 1, /* field[1] = encoding */ - 0, /* field[0] = format_type */ - 2, /* field[2] = location */ +static const unsigned pg_query__res_target__field_indices_by_name[] = { + 1, /* field[1] = indirection */ + 3, /* field[3] = location */ + 0, /* field[0] = name */ + 2, /* field[2] = val */ }; -static const ProtobufCIntRange pg_query__json_format__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__res_target__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__json_format__descriptor = +const ProtobufCMessageDescriptor pg_query__res_target__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonFormat", - "JsonFormat", - "PgQuery__JsonFormat", + "pg_query.ResTarget", + "ResTarget", + "PgQuery__ResTarget", "pg_query", - sizeof(PgQuery__JsonFormat), - 3, - pg_query__json_format__field_descriptors, - pg_query__json_format__field_indices_by_name, - 1, pg_query__json_format__number_ranges, - (ProtobufCMessageInit) pg_query__json_format__init, + sizeof(PgQuery__ResTarget), + 4, + pg_query__res_target__field_descriptors, + pg_query__res_target__field_indices_by_name, + 1, pg_query__res_target__number_ranges, + (ProtobufCMessageInit) pg_query__res_target__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_returning__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__multi_assign_ref__field_descriptors[3] = { { - "format", + "source", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonReturning, format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__MultiAssignRef, source), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "typid", + "colno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonReturning, typid), + offsetof(PgQuery__MultiAssignRef, colno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "typmod", + "ncolumns", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonReturning, typmod), + offsetof(PgQuery__MultiAssignRef, ncolumns), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_returning__field_indices_by_name[] = { - 0, /* field[0] = format */ - 1, /* field[1] = typid */ - 2, /* field[2] = typmod */ +static const unsigned pg_query__multi_assign_ref__field_indices_by_name[] = { + 1, /* field[1] = colno */ + 2, /* field[2] = ncolumns */ + 0, /* field[0] = source */ }; -static const ProtobufCIntRange pg_query__json_returning__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__multi_assign_ref__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_returning__descriptor = +const ProtobufCMessageDescriptor pg_query__multi_assign_ref__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonReturning", - "JsonReturning", - "PgQuery__JsonReturning", + "pg_query.MultiAssignRef", + "MultiAssignRef", + "PgQuery__MultiAssignRef", "pg_query", - sizeof(PgQuery__JsonReturning), + sizeof(PgQuery__MultiAssignRef), 3, - pg_query__json_returning__field_descriptors, - pg_query__json_returning__field_indices_by_name, - 1, pg_query__json_returning__number_ranges, - (ProtobufCMessageInit) pg_query__json_returning__init, + pg_query__multi_assign_ref__field_descriptors, + pg_query__multi_assign_ref__field_indices_by_name, + 1, pg_query__multi_assign_ref__number_ranges, + (ProtobufCMessageInit) pg_query__multi_assign_ref__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_value_expr__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__sort_by__field_descriptors[5] = { { - "raw_expr", + "node", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonValueExpr, raw_expr), + offsetof(PgQuery__SortBy, node), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "formatted_expr", + "sortby_dir", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonValueExpr, formatted_expr), - &pg_query__node__descriptor, + offsetof(PgQuery__SortBy, sortby_dir), + &pg_query__sort_by_dir__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "format", + "sortby_nulls", 3, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__SortBy, sortby_nulls), + &pg_query__sort_by_nulls__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "use_op", + 4, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SortBy, n_use_op), + offsetof(PgQuery__SortBy, use_op), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonValueExpr, format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__SortBy, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_value_expr__field_indices_by_name[] = { - 2, /* field[2] = format */ - 1, /* field[1] = formatted_expr */ - 0, /* field[0] = raw_expr */ +static const unsigned pg_query__sort_by__field_indices_by_name[] = { + 4, /* field[4] = location */ + 0, /* field[0] = node */ + 1, /* field[1] = sortby_dir */ + 2, /* field[2] = sortby_nulls */ + 3, /* field[3] = use_op */ }; -static const ProtobufCIntRange pg_query__json_value_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__sort_by__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__json_value_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__sort_by__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonValueExpr", - "JsonValueExpr", - "PgQuery__JsonValueExpr", + "pg_query.SortBy", + "SortBy", + "PgQuery__SortBy", "pg_query", - sizeof(PgQuery__JsonValueExpr), - 3, - pg_query__json_value_expr__field_descriptors, - pg_query__json_value_expr__field_indices_by_name, - 1, pg_query__json_value_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_value_expr__init, + sizeof(PgQuery__SortBy), + 5, + pg_query__sort_by__field_descriptors, + pg_query__sort_by__field_indices_by_name, + 1, pg_query__sort_by__number_ranges, + (ProtobufCMessageInit) pg_query__sort_by__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_constructor_expr__field_descriptors[9] = +static const ProtobufCFieldDescriptor pg_query__window_def__field_descriptors[8] = { { - "xpr", + "name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__WindowDef, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type", + "refname", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, type), - &pg_query__json_constructor_type__descriptor, + offsetof(PgQuery__WindowDef, refname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "partition_clause", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonConstructorExpr, n_args), - offsetof(PgQuery__JsonConstructorExpr, args), + offsetof(PgQuery__WindowDef, n_partition_clause), + offsetof(PgQuery__WindowDef, partition_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func", + "order_clause", 4, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, func), + offsetof(PgQuery__WindowDef, n_order_clause), + offsetof(PgQuery__WindowDef, order_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coercion", + "frame_options", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, coercion), - &pg_query__node__descriptor, + offsetof(PgQuery__WindowDef, frame_options), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning", + "start_offset", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, returning), - &pg_query__json_returning__descriptor, + offsetof(PgQuery__WindowDef, start_offset), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "absent_on_null", + "end_offset", 7, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowDef, end_offset), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowDef, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__window_def__field_indices_by_name[] = { + 6, /* field[6] = end_offset */ + 4, /* field[4] = frame_options */ + 7, /* field[7] = location */ + 0, /* field[0] = name */ + 3, /* field[3] = order_clause */ + 2, /* field[2] = partition_clause */ + 1, /* field[1] = refname */ + 5, /* field[5] = start_offset */ +}; +static const ProtobufCIntRange pg_query__window_def__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor pg_query__window_def__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.WindowDef", + "WindowDef", + "PgQuery__WindowDef", + "pg_query", + sizeof(PgQuery__WindowDef), + 8, + pg_query__window_def__field_descriptors, + pg_query__window_def__field_indices_by_name, + 1, pg_query__window_def__number_ranges, + (ProtobufCMessageInit) pg_query__window_def__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__range_subselect__field_descriptors[3] = +{ + { + "lateral", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, absent_on_null), + offsetof(PgQuery__RangeSubselect, lateral), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unique", - 8, + "subquery", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, unique), - NULL, + offsetof(PgQuery__RangeSubselect, subquery), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 9, + "alias", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonConstructorExpr, location), - NULL, + offsetof(PgQuery__RangeSubselect, alias), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_constructor_expr__field_indices_by_name[] = { - 6, /* field[6] = absent_on_null */ - 2, /* field[2] = args */ - 4, /* field[4] = coercion */ - 3, /* field[3] = func */ - 8, /* field[8] = location */ - 5, /* field[5] = returning */ - 1, /* field[1] = type */ - 7, /* field[7] = unique */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__range_subselect__field_indices_by_name[] = { + 2, /* field[2] = alias */ + 0, /* field[0] = lateral */ + 1, /* field[1] = subquery */ }; -static const ProtobufCIntRange pg_query__json_constructor_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__range_subselect__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 9 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_constructor_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__range_subselect__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonConstructorExpr", - "JsonConstructorExpr", - "PgQuery__JsonConstructorExpr", + "pg_query.RangeSubselect", + "RangeSubselect", + "PgQuery__RangeSubselect", "pg_query", - sizeof(PgQuery__JsonConstructorExpr), - 9, - pg_query__json_constructor_expr__field_descriptors, - pg_query__json_constructor_expr__field_indices_by_name, - 1, pg_query__json_constructor_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_constructor_expr__init, + sizeof(PgQuery__RangeSubselect), + 3, + pg_query__range_subselect__field_descriptors, + pg_query__range_subselect__field_indices_by_name, + 1, pg_query__range_subselect__number_ranges, + (ProtobufCMessageInit) pg_query__range_subselect__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_is_predicate__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__range_function__field_descriptors[6] = { { - "expr", + "lateral", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonIsPredicate, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeFunction, lateral), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "format", + "ordinality", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonIsPredicate, format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__RangeFunction, ordinality), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "item_type", + "is_rowsfrom", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonIsPredicate, item_type), - &pg_query__json_value_type__descriptor, + offsetof(PgQuery__RangeFunction, is_rowsfrom), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unique_keys", + "functions", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonIsPredicate, unique_keys), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RangeFunction, n_functions), + offsetof(PgQuery__RangeFunction, functions), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "alias", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonIsPredicate, location), + offsetof(PgQuery__RangeFunction, alias), + &pg_query__alias__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coldeflist", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RangeFunction, n_coldeflist), + offsetof(PgQuery__RangeFunction, coldeflist), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_is_predicate__field_indices_by_name[] = { - 0, /* field[0] = expr */ - 1, /* field[1] = format */ - 2, /* field[2] = item_type */ - 4, /* field[4] = location */ - 3, /* field[3] = unique_keys */ +static const unsigned pg_query__range_function__field_indices_by_name[] = { + 4, /* field[4] = alias */ + 5, /* field[5] = coldeflist */ + 3, /* field[3] = functions */ + 2, /* field[2] = is_rowsfrom */ + 0, /* field[0] = lateral */ + 1, /* field[1] = ordinality */ }; -static const ProtobufCIntRange pg_query__json_is_predicate__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__range_function__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__json_is_predicate__descriptor = +const ProtobufCMessageDescriptor pg_query__range_function__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonIsPredicate", - "JsonIsPredicate", - "PgQuery__JsonIsPredicate", + "pg_query.RangeFunction", + "RangeFunction", + "PgQuery__RangeFunction", "pg_query", - sizeof(PgQuery__JsonIsPredicate), - 5, - pg_query__json_is_predicate__field_descriptors, - pg_query__json_is_predicate__field_indices_by_name, - 1, pg_query__json_is_predicate__number_ranges, - (ProtobufCMessageInit) pg_query__json_is_predicate__init, + sizeof(PgQuery__RangeFunction), + 6, + pg_query__range_function__field_descriptors, + pg_query__range_function__field_indices_by_name, + 1, pg_query__range_function__number_ranges, + (ProtobufCMessageInit) pg_query__range_function__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_behavior__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__range_table_func__field_descriptors[7] = { { - "btype", + "lateral", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonBehavior, btype), - &pg_query__json_behavior_type__descriptor, + offsetof(PgQuery__RangeTableFunc, lateral), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "docexpr", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonBehavior, expr), + offsetof(PgQuery__RangeTableFunc, docexpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coerce", + "rowexpr", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonBehavior, coerce), + offsetof(PgQuery__RangeTableFunc, rowexpr), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "namespaces", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RangeTableFunc, n_namespaces), + offsetof(PgQuery__RangeTableFunc, namespaces), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "columns", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RangeTableFunc, n_columns), + offsetof(PgQuery__RangeTableFunc, columns), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "alias", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeTableFunc, alias), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 4, + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonBehavior, location), + offsetof(PgQuery__RangeTableFunc, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_behavior__field_indices_by_name[] = { - 0, /* field[0] = btype */ - 2, /* field[2] = coerce */ - 1, /* field[1] = expr */ - 3, /* field[3] = location */ +static const unsigned pg_query__range_table_func__field_indices_by_name[] = { + 5, /* field[5] = alias */ + 4, /* field[4] = columns */ + 1, /* field[1] = docexpr */ + 0, /* field[0] = lateral */ + 6, /* field[6] = location */ + 3, /* field[3] = namespaces */ + 2, /* field[2] = rowexpr */ }; -static const ProtobufCIntRange pg_query__json_behavior__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__range_table_func__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__json_behavior__descriptor = +const ProtobufCMessageDescriptor pg_query__range_table_func__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonBehavior", - "JsonBehavior", - "PgQuery__JsonBehavior", + "pg_query.RangeTableFunc", + "RangeTableFunc", + "PgQuery__RangeTableFunc", "pg_query", - sizeof(PgQuery__JsonBehavior), - 4, - pg_query__json_behavior__field_descriptors, - pg_query__json_behavior__field_indices_by_name, - 1, pg_query__json_behavior__number_ranges, - (ProtobufCMessageInit) pg_query__json_behavior__init, + sizeof(PgQuery__RangeTableFunc), + 7, + pg_query__range_table_func__field_descriptors, + pg_query__range_table_func__field_indices_by_name, + 1, pg_query__range_table_func__number_ranges, + (ProtobufCMessageInit) pg_query__range_table_func__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_expr__field_descriptors[17] = +static const ProtobufCFieldDescriptor pg_query__range_table_func_col__field_descriptors[7] = { { - "xpr", + "colname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTableFuncCol, colname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "op", + "type_name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, op), - &pg_query__json_expr_op__descriptor, + offsetof(PgQuery__RangeTableFuncCol, type_name), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "column_name", + "for_ordinality", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, column_name), + offsetof(PgQuery__RangeTableFuncCol, for_ordinality), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "formatted_expr", + "is_not_null", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, formatted_expr), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTableFuncCol, is_not_null), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "format", + "colexpr", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__RangeTableFuncCol, colexpr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "path_spec", + "coldefexpr", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, path_spec), + offsetof(PgQuery__RangeTableFuncCol, coldefexpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning", + "location", 7, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeTableFuncCol, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__range_table_func_col__field_indices_by_name[] = { + 5, /* field[5] = coldefexpr */ + 4, /* field[4] = colexpr */ + 0, /* field[0] = colname */ + 2, /* field[2] = for_ordinality */ + 3, /* field[3] = is_not_null */ + 6, /* field[6] = location */ + 1, /* field[1] = type_name */ +}; +static const ProtobufCIntRange pg_query__range_table_func_col__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__range_table_func_col__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RangeTableFuncCol", + "RangeTableFuncCol", + "PgQuery__RangeTableFuncCol", + "pg_query", + sizeof(PgQuery__RangeTableFuncCol), + 7, + pg_query__range_table_func_col__field_descriptors, + pg_query__range_table_func_col__field_indices_by_name, + 1, pg_query__range_table_func_col__number_ranges, + (ProtobufCMessageInit) pg_query__range_table_func_col__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__range_table_sample__field_descriptors[5] = +{ + { + "relation", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, returning), - &pg_query__json_returning__descriptor, + offsetof(PgQuery__RangeTableSample, relation), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "passing_names", - 8, + "method", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonExpr, n_passing_names), - offsetof(PgQuery__JsonExpr, passing_names), + offsetof(PgQuery__RangeTableSample, n_method), + offsetof(PgQuery__RangeTableSample, method), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "passing_values", - 9, + "args", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonExpr, n_passing_values), - offsetof(PgQuery__JsonExpr, passing_values), + offsetof(PgQuery__RangeTableSample, n_args), + offsetof(PgQuery__RangeTableSample, args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_empty", - 10, + "repeatable", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, on_empty), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__RangeTableSample, repeatable), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_error", - 11, + "location", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, on_error), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__RangeTableSample, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__range_table_sample__field_indices_by_name[] = { + 2, /* field[2] = args */ + 4, /* field[4] = location */ + 1, /* field[1] = method */ + 0, /* field[0] = relation */ + 3, /* field[3] = repeatable */ +}; +static const ProtobufCIntRange pg_query__range_table_sample__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__range_table_sample__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RangeTableSample", + "RangeTableSample", + "PgQuery__RangeTableSample", + "pg_query", + sizeof(PgQuery__RangeTableSample), + 5, + pg_query__range_table_sample__field_descriptors, + pg_query__range_table_sample__field_indices_by_name, + 1, pg_query__range_table_sample__number_ranges, + (ProtobufCMessageInit) pg_query__range_table_sample__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__column_def__field_descriptors[19] = +{ { - "use_io_coercion", - 12, + "colname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, use_io_coercion), - NULL, + offsetof(PgQuery__ColumnDef, colname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "use_json_coercion", - 13, + "type_name", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, use_json_coercion), + offsetof(PgQuery__ColumnDef, type_name), + &pg_query__type_name__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "compression", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__ColumnDef, compression), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "wrapper", - 14, + "inhcount", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, wrapper), - &pg_query__json_wrapper__descriptor, + offsetof(PgQuery__ColumnDef, inhcount), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "omit_quotes", - 15, + "is_local", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, omit_quotes), + offsetof(PgQuery__ColumnDef, is_local), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collation", - 16, + "is_not_null", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, collation), + offsetof(PgQuery__ColumnDef, is_not_null), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 17, + "is_from_type", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonExpr, location), + offsetof(PgQuery__ColumnDef, is_from_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__json_expr__field_indices_by_name[] = { - 15, /* field[15] = collation */ - 2, /* field[2] = column_name */ - 4, /* field[4] = format */ - 3, /* field[3] = formatted_expr */ - 16, /* field[16] = location */ - 14, /* field[14] = omit_quotes */ - 9, /* field[9] = on_empty */ - 10, /* field[10] = on_error */ - 1, /* field[1] = op */ - 7, /* field[7] = passing_names */ - 8, /* field[8] = passing_values */ - 5, /* field[5] = path_spec */ - 6, /* field[6] = returning */ - 11, /* field[11] = use_io_coercion */ - 12, /* field[12] = use_json_coercion */ - 13, /* field[13] = wrapper */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__json_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 17 } -}; -const ProtobufCMessageDescriptor pg_query__json_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonExpr", - "JsonExpr", - "PgQuery__JsonExpr", - "pg_query", - sizeof(PgQuery__JsonExpr), - 17, - pg_query__json_expr__field_descriptors, - pg_query__json_expr__field_indices_by_name, - 1, pg_query__json_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__json_table_path__field_descriptors[1] = -{ { - "name", - 1, + "storage", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__ColumnDef, storage), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "storage_name", + 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePath, name), + offsetof(PgQuery__ColumnDef, storage_name), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__json_table_path__field_indices_by_name[] = { - 0, /* field[0] = name */ -}; -static const ProtobufCIntRange pg_query__json_table_path__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__json_table_path__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonTablePath", - "JsonTablePath", - "PgQuery__JsonTablePath", - "pg_query", - sizeof(PgQuery__JsonTablePath), - 1, - pg_query__json_table_path__field_descriptors, - pg_query__json_table_path__field_indices_by_name, - 1, pg_query__json_table_path__number_ranges, - (ProtobufCMessageInit) pg_query__json_table_path__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__json_table_path_scan__field_descriptors[6] = -{ { - "plan", - 1, + "raw_default", + 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathScan, plan), + offsetof(PgQuery__ColumnDef, raw_default), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "path", - 2, + "cooked_default", + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathScan, path), - &pg_query__json_table_path__descriptor, + offsetof(PgQuery__ColumnDef, cooked_default), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "error_on_error", - 3, + "identity", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathScan, error_on_error), + offsetof(PgQuery__ColumnDef, identity), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "identity_sequence", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__ColumnDef, identity_sequence), + &pg_query__range_var__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "generated", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__ColumnDef, generated), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "child", - 4, + "coll_clause", + 15, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathScan, child), - &pg_query__node__descriptor, + offsetof(PgQuery__ColumnDef, coll_clause), + &pg_query__collate_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "col_min", - 5, + "coll_oid", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathScan, col_min), + offsetof(PgQuery__ColumnDef, coll_oid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "col_max", - 6, + "constraints", + 17, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ColumnDef, n_constraints), + offsetof(PgQuery__ColumnDef, constraints), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "fdwoptions", + 18, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ColumnDef, n_fdwoptions), + offsetof(PgQuery__ColumnDef, fdwoptions), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 19, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathScan, col_max), + offsetof(PgQuery__ColumnDef, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_table_path_scan__field_indices_by_name[] = { - 3, /* field[3] = child */ - 5, /* field[5] = col_max */ - 4, /* field[4] = col_min */ - 2, /* field[2] = error_on_error */ - 1, /* field[1] = path */ - 0, /* field[0] = plan */ +static const unsigned pg_query__column_def__field_indices_by_name[] = { + 14, /* field[14] = coll_clause */ + 15, /* field[15] = coll_oid */ + 0, /* field[0] = colname */ + 2, /* field[2] = compression */ + 16, /* field[16] = constraints */ + 10, /* field[10] = cooked_default */ + 17, /* field[17] = fdwoptions */ + 13, /* field[13] = generated */ + 11, /* field[11] = identity */ + 12, /* field[12] = identity_sequence */ + 3, /* field[3] = inhcount */ + 6, /* field[6] = is_from_type */ + 4, /* field[4] = is_local */ + 5, /* field[5] = is_not_null */ + 18, /* field[18] = location */ + 9, /* field[9] = raw_default */ + 7, /* field[7] = storage */ + 8, /* field[8] = storage_name */ + 1, /* field[1] = type_name */ }; -static const ProtobufCIntRange pg_query__json_table_path_scan__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__column_def__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 19 } }; -const ProtobufCMessageDescriptor pg_query__json_table_path_scan__descriptor = +const ProtobufCMessageDescriptor pg_query__column_def__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonTablePathScan", - "JsonTablePathScan", - "PgQuery__JsonTablePathScan", + "pg_query.ColumnDef", + "ColumnDef", + "PgQuery__ColumnDef", "pg_query", - sizeof(PgQuery__JsonTablePathScan), - 6, - pg_query__json_table_path_scan__field_descriptors, - pg_query__json_table_path_scan__field_indices_by_name, - 1, pg_query__json_table_path_scan__number_ranges, - (ProtobufCMessageInit) pg_query__json_table_path_scan__init, + sizeof(PgQuery__ColumnDef), + 19, + pg_query__column_def__field_descriptors, + pg_query__column_def__field_indices_by_name, + 1, pg_query__column_def__number_ranges, + (ProtobufCMessageInit) pg_query__column_def__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_table_sibling_join__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__table_like_clause__field_descriptors[3] = { { - "plan", + "relation", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableSiblingJoin, plan), - &pg_query__node__descriptor, + offsetof(PgQuery__TableLikeClause, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lplan", + "options", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableSiblingJoin, lplan), - &pg_query__node__descriptor, + offsetof(PgQuery__TableLikeClause, options), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rplan", + "relation_oid", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableSiblingJoin, rplan), - &pg_query__node__descriptor, + offsetof(PgQuery__TableLikeClause, relation_oid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_table_sibling_join__field_indices_by_name[] = { - 1, /* field[1] = lplan */ - 0, /* field[0] = plan */ - 2, /* field[2] = rplan */ +static const unsigned pg_query__table_like_clause__field_indices_by_name[] = { + 1, /* field[1] = options */ + 0, /* field[0] = relation */ + 2, /* field[2] = relation_oid */ }; -static const ProtobufCIntRange pg_query__json_table_sibling_join__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__table_like_clause__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_table_sibling_join__descriptor = +const ProtobufCMessageDescriptor pg_query__table_like_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonTableSiblingJoin", - "JsonTableSiblingJoin", - "PgQuery__JsonTableSiblingJoin", + "pg_query.TableLikeClause", + "TableLikeClause", + "PgQuery__TableLikeClause", "pg_query", - sizeof(PgQuery__JsonTableSiblingJoin), + sizeof(PgQuery__TableLikeClause), 3, - pg_query__json_table_sibling_join__field_descriptors, - pg_query__json_table_sibling_join__field_indices_by_name, - 1, pg_query__json_table_sibling_join__number_ranges, - (ProtobufCMessageInit) pg_query__json_table_sibling_join__init, + pg_query__table_like_clause__field_descriptors, + pg_query__table_like_clause__field_indices_by_name, + 1, pg_query__table_like_clause__number_ranges, + (ProtobufCMessageInit) pg_query__table_like_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__null_test__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__index_elem__field_descriptors[8] = { { - "xpr", + "name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__NullTest, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__IndexElem, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "expr", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__NullTest, arg), + offsetof(PgQuery__IndexElem, expr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nulltesttype", + "indexcolname", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__NullTest, nulltesttype), - &pg_query__null_test_type__descriptor, + offsetof(PgQuery__IndexElem, indexcolname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "argisrow", + "collation", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__NullTest, argisrow), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__IndexElem, n_collation), + offsetof(PgQuery__IndexElem, collation), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "opclass", 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__IndexElem, n_opclass), + offsetof(PgQuery__IndexElem, opclass), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "opclassopts", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__IndexElem, n_opclassopts), + offsetof(PgQuery__IndexElem, opclassopts), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ordering", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__NullTest, location), + offsetof(PgQuery__IndexElem, ordering), + &pg_query__sort_by_dir__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "nulls_ordering", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__IndexElem, nulls_ordering), + &pg_query__sort_by_nulls__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__null_test__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 3, /* field[3] = argisrow */ - 4, /* field[4] = location */ - 2, /* field[2] = nulltesttype */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__index_elem__field_indices_by_name[] = { + 3, /* field[3] = collation */ + 1, /* field[1] = expr */ + 2, /* field[2] = indexcolname */ + 0, /* field[0] = name */ + 7, /* field[7] = nulls_ordering */ + 4, /* field[4] = opclass */ + 5, /* field[5] = opclassopts */ + 6, /* field[6] = ordering */ }; -static const ProtobufCIntRange pg_query__null_test__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__index_elem__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__null_test__descriptor = +const ProtobufCMessageDescriptor pg_query__index_elem__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.NullTest", - "NullTest", - "PgQuery__NullTest", + "pg_query.IndexElem", + "IndexElem", + "PgQuery__IndexElem", "pg_query", - sizeof(PgQuery__NullTest), - 5, - pg_query__null_test__field_descriptors, - pg_query__null_test__field_indices_by_name, - 1, pg_query__null_test__number_ranges, - (ProtobufCMessageInit) pg_query__null_test__init, + sizeof(PgQuery__IndexElem), + 8, + pg_query__index_elem__field_descriptors, + pg_query__index_elem__field_indices_by_name, + 1, pg_query__index_elem__number_ranges, + (ProtobufCMessageInit) pg_query__index_elem__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__boolean_test__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__def_elem__field_descriptors[5] = { { - "xpr", + "defnamespace", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__BooleanTest, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__DefElem, defnamespace), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "defname", 2, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__DefElem, defname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "arg", + 3, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__BooleanTest, arg), + offsetof(PgQuery__DefElem, arg), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "booltesttype", - 3, + "defaction", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__BooleanTest, booltesttype), - &pg_query__bool_test_type__descriptor, + offsetof(PgQuery__DefElem, defaction), + &pg_query__def_elem_action__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 4, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__BooleanTest, location), + offsetof(PgQuery__DefElem, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__boolean_test__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 2, /* field[2] = booltesttype */ - 3, /* field[3] = location */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__def_elem__field_indices_by_name[] = { + 2, /* field[2] = arg */ + 3, /* field[3] = defaction */ + 1, /* field[1] = defname */ + 0, /* field[0] = defnamespace */ + 4, /* field[4] = location */ }; -static const ProtobufCIntRange pg_query__boolean_test__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__def_elem__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__boolean_test__descriptor = +const ProtobufCMessageDescriptor pg_query__def_elem__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.BooleanTest", - "BooleanTest", - "PgQuery__BooleanTest", + "pg_query.DefElem", + "DefElem", + "PgQuery__DefElem", "pg_query", - sizeof(PgQuery__BooleanTest), - 4, - pg_query__boolean_test__field_descriptors, - pg_query__boolean_test__field_indices_by_name, - 1, pg_query__boolean_test__number_ranges, - (ProtobufCMessageInit) pg_query__boolean_test__init, + sizeof(PgQuery__DefElem), + 5, + pg_query__def_elem__field_descriptors, + pg_query__def_elem__field_indices_by_name, + 1, pg_query__def_elem__number_ranges, + (ProtobufCMessageInit) pg_query__def_elem__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__merge_action__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__locking_clause__field_descriptors[3] = { { - "match_kind", + "locked_rels", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeAction, match_kind), - &pg_query__merge_match_kind__descriptor, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__LockingClause, n_locked_rels), + offsetof(PgQuery__LockingClause, locked_rels), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "command_type", + "strength", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeAction, command_type), - &pg_query__cmd_type__descriptor, + offsetof(PgQuery__LockingClause, strength), + &pg_query__lock_clause_strength__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "override", + "wait_policy", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeAction, override), - &pg_query__overriding_kind__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "qual", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeAction, qual), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "target_list", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MergeAction, n_target_list), - offsetof(PgQuery__MergeAction, target_list), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "update_colnos", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MergeAction, n_update_colnos), - offsetof(PgQuery__MergeAction, update_colnos), - &pg_query__node__descriptor, + offsetof(PgQuery__LockingClause, wait_policy), + &pg_query__lock_wait_policy__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__merge_action__field_indices_by_name[] = { - 1, /* field[1] = command_type */ - 0, /* field[0] = match_kind */ - 2, /* field[2] = override */ - 3, /* field[3] = qual */ - 4, /* field[4] = target_list */ - 5, /* field[5] = update_colnos */ +static const unsigned pg_query__locking_clause__field_indices_by_name[] = { + 0, /* field[0] = locked_rels */ + 1, /* field[1] = strength */ + 2, /* field[2] = wait_policy */ }; -static const ProtobufCIntRange pg_query__merge_action__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__locking_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__merge_action__descriptor = +const ProtobufCMessageDescriptor pg_query__locking_clause__descriptor = { - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.MergeAction", - "MergeAction", - "PgQuery__MergeAction", - "pg_query", - sizeof(PgQuery__MergeAction), - 6, - pg_query__merge_action__field_descriptors, - pg_query__merge_action__field_indices_by_name, - 1, pg_query__merge_action__number_ranges, - (ProtobufCMessageInit) pg_query__merge_action__init, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.LockingClause", + "LockingClause", + "PgQuery__LockingClause", + "pg_query", + sizeof(PgQuery__LockingClause), + 3, + pg_query__locking_clause__field_descriptors, + pg_query__locking_clause__field_indices_by_name, + 1, pg_query__locking_clause__number_ranges, + (ProtobufCMessageInit) pg_query__locking_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__coerce_to_domain__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__xml_serialize__field_descriptors[5] = { { - "xpr", + "xmloption", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__XmlSerialize, xmloption), + &pg_query__xml_option_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "expr", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, arg), + offsetof(PgQuery__XmlSerialize, expr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttype", + "type_name", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, resulttype), - NULL, + offsetof(PgQuery__XmlSerialize, type_name), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resulttypmod", + "indent", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, resulttypmod), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "resultcollid", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, resultcollid), - NULL, + offsetof(PgQuery__XmlSerialize, indent), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "coercionformat", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, coercionformat), - &pg_query__coercion_form__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 7, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomain, location), + offsetof(PgQuery__XmlSerialize, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__coerce_to_domain__field_indices_by_name[] = { - 1, /* field[1] = arg */ - 5, /* field[5] = coercionformat */ - 6, /* field[6] = location */ - 4, /* field[4] = resultcollid */ - 2, /* field[2] = resulttype */ - 3, /* field[3] = resulttypmod */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__xml_serialize__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 3, /* field[3] = indent */ + 4, /* field[4] = location */ + 2, /* field[2] = type_name */ + 0, /* field[0] = xmloption */ }; -static const ProtobufCIntRange pg_query__coerce_to_domain__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__xml_serialize__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__coerce_to_domain__descriptor = +const ProtobufCMessageDescriptor pg_query__xml_serialize__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CoerceToDomain", - "CoerceToDomain", - "PgQuery__CoerceToDomain", + "pg_query.XmlSerialize", + "XmlSerialize", + "PgQuery__XmlSerialize", "pg_query", - sizeof(PgQuery__CoerceToDomain), - 7, - pg_query__coerce_to_domain__field_descriptors, - pg_query__coerce_to_domain__field_indices_by_name, - 1, pg_query__coerce_to_domain__number_ranges, - (ProtobufCMessageInit) pg_query__coerce_to_domain__init, + sizeof(PgQuery__XmlSerialize), + 5, + pg_query__xml_serialize__field_descriptors, + pg_query__xml_serialize__field_indices_by_name, + 1, pg_query__xml_serialize__number_ranges, + (ProtobufCMessageInit) pg_query__xml_serialize__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__coerce_to_domain_value__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__partition_elem__field_descriptors[5] = { { - "xpr", + "name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomainValue, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__PartitionElem, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_id", + "expr", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomainValue, type_id), - NULL, + offsetof(PgQuery__PartitionElem, expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_mod", + "collation", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomainValue, type_mod), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PartitionElem, n_collation), + offsetof(PgQuery__PartitionElem, collation), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collation", + "opclass", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomainValue, collation), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PartitionElem, n_opclass), + offsetof(PgQuery__PartitionElem, opclass), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -22409,1597 +28270,1665 @@ static const ProtobufCFieldDescriptor pg_query__coerce_to_domain_value__field_de PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CoerceToDomainValue, location), + offsetof(PgQuery__PartitionElem, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__coerce_to_domain_value__field_indices_by_name[] = { - 3, /* field[3] = collation */ +static const unsigned pg_query__partition_elem__field_indices_by_name[] = { + 2, /* field[2] = collation */ + 1, /* field[1] = expr */ 4, /* field[4] = location */ - 1, /* field[1] = type_id */ - 2, /* field[2] = type_mod */ - 0, /* field[0] = xpr */ + 0, /* field[0] = name */ + 3, /* field[3] = opclass */ }; -static const ProtobufCIntRange pg_query__coerce_to_domain_value__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__partition_elem__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__coerce_to_domain_value__descriptor = +const ProtobufCMessageDescriptor pg_query__partition_elem__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CoerceToDomainValue", - "CoerceToDomainValue", - "PgQuery__CoerceToDomainValue", + "pg_query.PartitionElem", + "PartitionElem", + "PgQuery__PartitionElem", "pg_query", - sizeof(PgQuery__CoerceToDomainValue), + sizeof(PgQuery__PartitionElem), 5, - pg_query__coerce_to_domain_value__field_descriptors, - pg_query__coerce_to_domain_value__field_indices_by_name, - 1, pg_query__coerce_to_domain_value__number_ranges, - (ProtobufCMessageInit) pg_query__coerce_to_domain_value__init, + pg_query__partition_elem__field_descriptors, + pg_query__partition_elem__field_indices_by_name, + 1, pg_query__partition_elem__number_ranges, + (ProtobufCMessageInit) pg_query__partition_elem__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__set_to_default__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__partition_spec__field_descriptors[3] = { { - "xpr", + "strategy", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SetToDefault, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__PartitionSpec, strategy), + &pg_query__partition_strategy__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_id", + "part_params", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__SetToDefault, type_id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "type_mod", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__SetToDefault, type_mod), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "collation", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__SetToDefault, collation), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PartitionSpec, n_part_params), + offsetof(PgQuery__PartitionSpec, part_params), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 5, + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SetToDefault, location), + offsetof(PgQuery__PartitionSpec, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__set_to_default__field_indices_by_name[] = { - 3, /* field[3] = collation */ - 4, /* field[4] = location */ - 1, /* field[1] = type_id */ - 2, /* field[2] = type_mod */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__partition_spec__field_indices_by_name[] = { + 2, /* field[2] = location */ + 1, /* field[1] = part_params */ + 0, /* field[0] = strategy */ }; -static const ProtobufCIntRange pg_query__set_to_default__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__partition_spec__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__set_to_default__descriptor = +const ProtobufCMessageDescriptor pg_query__partition_spec__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SetToDefault", - "SetToDefault", - "PgQuery__SetToDefault", + "pg_query.PartitionSpec", + "PartitionSpec", + "PgQuery__PartitionSpec", "pg_query", - sizeof(PgQuery__SetToDefault), - 5, - pg_query__set_to_default__field_descriptors, - pg_query__set_to_default__field_indices_by_name, - 1, pg_query__set_to_default__number_ranges, - (ProtobufCMessageInit) pg_query__set_to_default__init, + sizeof(PgQuery__PartitionSpec), + 3, + pg_query__partition_spec__field_descriptors, + pg_query__partition_spec__field_indices_by_name, + 1, pg_query__partition_spec__number_ranges, + (ProtobufCMessageInit) pg_query__partition_spec__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__current_of_expr__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__partition_bound_spec__field_descriptors[8] = { { - "xpr", + "strategy", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CurrentOfExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__PartitionBoundSpec, strategy), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cvarno", + "is_default", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CurrentOfExpr, cvarno), + offsetof(PgQuery__PartitionBoundSpec, is_default), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cursor_name", + "modulus", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CurrentOfExpr, cursor_name), + offsetof(PgQuery__PartitionBoundSpec, modulus), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cursor_param", + "remainder", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CurrentOfExpr, cursor_param), + offsetof(PgQuery__PartitionBoundSpec, remainder), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "listdatums", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PartitionBoundSpec, n_listdatums), + offsetof(PgQuery__PartitionBoundSpec, listdatums), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lowerdatums", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PartitionBoundSpec, n_lowerdatums), + offsetof(PgQuery__PartitionBoundSpec, lowerdatums), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "upperdatums", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PartitionBoundSpec, n_upperdatums), + offsetof(PgQuery__PartitionBoundSpec, upperdatums), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PartitionBoundSpec, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__current_of_expr__field_indices_by_name[] = { - 2, /* field[2] = cursor_name */ - 3, /* field[3] = cursor_param */ - 1, /* field[1] = cvarno */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__partition_bound_spec__field_indices_by_name[] = { + 1, /* field[1] = is_default */ + 4, /* field[4] = listdatums */ + 7, /* field[7] = location */ + 5, /* field[5] = lowerdatums */ + 2, /* field[2] = modulus */ + 3, /* field[3] = remainder */ + 0, /* field[0] = strategy */ + 6, /* field[6] = upperdatums */ }; -static const ProtobufCIntRange pg_query__current_of_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__partition_bound_spec__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__current_of_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__partition_bound_spec__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CurrentOfExpr", - "CurrentOfExpr", - "PgQuery__CurrentOfExpr", + "pg_query.PartitionBoundSpec", + "PartitionBoundSpec", + "PgQuery__PartitionBoundSpec", "pg_query", - sizeof(PgQuery__CurrentOfExpr), - 4, - pg_query__current_of_expr__field_descriptors, - pg_query__current_of_expr__field_indices_by_name, - 1, pg_query__current_of_expr__number_ranges, - (ProtobufCMessageInit) pg_query__current_of_expr__init, + sizeof(PgQuery__PartitionBoundSpec), + 8, + pg_query__partition_bound_spec__field_descriptors, + pg_query__partition_bound_spec__field_indices_by_name, + 1, pg_query__partition_bound_spec__number_ranges, + (ProtobufCMessageInit) pg_query__partition_bound_spec__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__next_value_expr__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__partition_range_datum__field_descriptors[3] = { { - "xpr", + "kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__NextValueExpr, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__PartitionRangeDatum, kind), + &pg_query__partition_range_datum_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "seqid", + "value", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__NextValueExpr, seqid), - NULL, + offsetof(PgQuery__PartitionRangeDatum, value), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_id", + "location", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NextValueExpr, type_id), + offsetof(PgQuery__PartitionRangeDatum, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__next_value_expr__field_indices_by_name[] = { - 1, /* field[1] = seqid */ - 2, /* field[2] = type_id */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__partition_range_datum__field_indices_by_name[] = { + 0, /* field[0] = kind */ + 2, /* field[2] = location */ + 1, /* field[1] = value */ }; -static const ProtobufCIntRange pg_query__next_value_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__partition_range_datum__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__next_value_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__partition_range_datum__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.NextValueExpr", - "NextValueExpr", - "PgQuery__NextValueExpr", + "pg_query.PartitionRangeDatum", + "PartitionRangeDatum", + "PgQuery__PartitionRangeDatum", "pg_query", - sizeof(PgQuery__NextValueExpr), + sizeof(PgQuery__PartitionRangeDatum), 3, - pg_query__next_value_expr__field_descriptors, - pg_query__next_value_expr__field_indices_by_name, - 1, pg_query__next_value_expr__number_ranges, - (ProtobufCMessageInit) pg_query__next_value_expr__init, + pg_query__partition_range_datum__field_descriptors, + pg_query__partition_range_datum__field_indices_by_name, + 1, pg_query__partition_range_datum__number_ranges, + (ProtobufCMessageInit) pg_query__partition_range_datum__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__inference_elem__field_descriptors[4] = +#define pg_query__single_partition_spec__field_descriptors NULL +#define pg_query__single_partition_spec__field_indices_by_name NULL +#define pg_query__single_partition_spec__number_ranges NULL +const ProtobufCMessageDescriptor pg_query__single_partition_spec__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SinglePartitionSpec", + "SinglePartitionSpec", + "PgQuery__SinglePartitionSpec", + "pg_query", + sizeof(PgQuery__SinglePartitionSpec), + 0, + pg_query__single_partition_spec__field_descriptors, + pg_query__single_partition_spec__field_indices_by_name, + 0, pg_query__single_partition_spec__number_ranges, + (ProtobufCMessageInit) pg_query__single_partition_spec__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__partition_cmd__field_descriptors[3] = { { - "xpr", + "name", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__InferenceElem, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__PartitionCmd, name), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "bound", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__InferenceElem, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__PartitionCmd, bound), + &pg_query__partition_bound_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "infercollid", + "concurrent", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__InferenceElem, infercollid), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "inferopclass", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__InferenceElem, inferopclass), + offsetof(PgQuery__PartitionCmd, concurrent), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__inference_elem__field_indices_by_name[] = { - 1, /* field[1] = expr */ - 2, /* field[2] = infercollid */ - 3, /* field[3] = inferopclass */ - 0, /* field[0] = xpr */ +static const unsigned pg_query__partition_cmd__field_indices_by_name[] = { + 1, /* field[1] = bound */ + 2, /* field[2] = concurrent */ + 0, /* field[0] = name */ }; -static const ProtobufCIntRange pg_query__inference_elem__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__partition_cmd__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__inference_elem__descriptor = +const ProtobufCMessageDescriptor pg_query__partition_cmd__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.InferenceElem", - "InferenceElem", - "PgQuery__InferenceElem", + "pg_query.PartitionCmd", + "PartitionCmd", + "PgQuery__PartitionCmd", "pg_query", - sizeof(PgQuery__InferenceElem), - 4, - pg_query__inference_elem__field_descriptors, - pg_query__inference_elem__field_indices_by_name, - 1, pg_query__inference_elem__number_ranges, - (ProtobufCMessageInit) pg_query__inference_elem__init, + sizeof(PgQuery__PartitionCmd), + 3, + pg_query__partition_cmd__field_descriptors, + pg_query__partition_cmd__field_indices_by_name, + 1, pg_query__partition_cmd__number_ranges, + (ProtobufCMessageInit) pg_query__partition_cmd__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__target_entry__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__range_tbl_entry__field_descriptors[32] = { { - "xpr", + "alias", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, xpr), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTblEntry, alias), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "eref", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTblEntry, eref), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resno", + "rtekind", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, resno), - NULL, + offsetof(PgQuery__RangeTblEntry, rtekind), + &pg_query__rtekind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resname", + "relid", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, resname), + offsetof(PgQuery__RangeTblEntry, relid), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ressortgroupref", + "inh", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, ressortgroupref), + offsetof(PgQuery__RangeTblEntry, inh), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resorigtbl", + "relkind", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, resorigtbl), - NULL, + offsetof(PgQuery__RangeTblEntry, relkind), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resorigcol", + "rellockmode", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, resorigcol), + offsetof(PgQuery__RangeTblEntry, rellockmode), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "resjunk", + "perminfoindex", 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TargetEntry, resjunk), + offsetof(PgQuery__RangeTblEntry, perminfoindex), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__target_entry__field_indices_by_name[] = { - 1, /* field[1] = expr */ - 7, /* field[7] = resjunk */ - 3, /* field[3] = resname */ - 2, /* field[2] = resno */ - 6, /* field[6] = resorigcol */ - 5, /* field[5] = resorigtbl */ - 4, /* field[4] = ressortgroupref */ - 0, /* field[0] = xpr */ -}; -static const ProtobufCIntRange pg_query__target_entry__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 8 } -}; -const ProtobufCMessageDescriptor pg_query__target_entry__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TargetEntry", - "TargetEntry", - "PgQuery__TargetEntry", - "pg_query", - sizeof(PgQuery__TargetEntry), - 8, - pg_query__target_entry__field_descriptors, - pg_query__target_entry__field_indices_by_name, - 1, pg_query__target_entry__number_ranges, - (ProtobufCMessageInit) pg_query__target_entry__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__range_tbl_ref__field_descriptors[1] = -{ { - "rtindex", - 1, + "tablesample", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblRef, rtindex), - NULL, + offsetof(PgQuery__RangeTblEntry, tablesample), + &pg_query__table_sample_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__range_tbl_ref__field_indices_by_name[] = { - 0, /* field[0] = rtindex */ -}; -static const ProtobufCIntRange pg_query__range_tbl_ref__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__range_tbl_ref__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeTblRef", - "RangeTblRef", - "PgQuery__RangeTblRef", - "pg_query", - sizeof(PgQuery__RangeTblRef), - 1, - pg_query__range_tbl_ref__field_descriptors, - pg_query__range_tbl_ref__field_indices_by_name, - 1, pg_query__range_tbl_ref__number_ranges, - (ProtobufCMessageInit) pg_query__range_tbl_ref__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__join_expr__field_descriptors[9] = -{ { - "jointype", - 1, + "subquery", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, jointype), - &pg_query__join_type__descriptor, + offsetof(PgQuery__RangeTblEntry, subquery), + &pg_query__query__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_natural", - 2, + "security_barrier", + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, is_natural), + offsetof(PgQuery__RangeTblEntry, security_barrier), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "larg", - 3, + "jointype", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, larg), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTblEntry, jointype), + &pg_query__join_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rarg", - 4, + "joinmergedcols", + 13, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, rarg), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTblEntry, joinmergedcols), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "using_clause", - 5, + "joinaliasvars", + 14, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JoinExpr, n_using_clause), - offsetof(PgQuery__JoinExpr, using_clause), + offsetof(PgQuery__RangeTblEntry, n_joinaliasvars), + offsetof(PgQuery__RangeTblEntry, joinaliasvars), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "join_using_alias", - 6, - PROTOBUF_C_LABEL_NONE, + "joinleftcols", + 15, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, join_using_alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__RangeTblEntry, n_joinleftcols), + offsetof(PgQuery__RangeTblEntry, joinleftcols), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "quals", - 7, - PROTOBUF_C_LABEL_NONE, + "joinrightcols", + 16, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, quals), + offsetof(PgQuery__RangeTblEntry, n_joinrightcols), + offsetof(PgQuery__RangeTblEntry, joinrightcols), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alias", - 8, + "join_using_alias", + 17, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, alias), + offsetof(PgQuery__RangeTblEntry, join_using_alias), &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rtindex", - 9, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JoinExpr, rtindex), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__join_expr__field_indices_by_name[] = { - 7, /* field[7] = alias */ - 1, /* field[1] = is_natural */ - 5, /* field[5] = join_using_alias */ - 0, /* field[0] = jointype */ - 2, /* field[2] = larg */ - 6, /* field[6] = quals */ - 3, /* field[3] = rarg */ - 8, /* field[8] = rtindex */ - 4, /* field[4] = using_clause */ -}; -static const ProtobufCIntRange pg_query__join_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 9 } -}; -const ProtobufCMessageDescriptor pg_query__join_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JoinExpr", - "JoinExpr", - "PgQuery__JoinExpr", - "pg_query", - sizeof(PgQuery__JoinExpr), - 9, - pg_query__join_expr__field_descriptors, - pg_query__join_expr__field_indices_by_name, - 1, pg_query__join_expr__number_ranges, - (ProtobufCMessageInit) pg_query__join_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__from_expr__field_descriptors[2] = -{ - { - "fromlist", - 1, + "functions", + 18, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FromExpr, n_fromlist), - offsetof(PgQuery__FromExpr, fromlist), + offsetof(PgQuery__RangeTblEntry, n_functions), + offsetof(PgQuery__RangeTblEntry, functions), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "quals", - 2, + "funcordinality", + 19, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__FromExpr, quals), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTblEntry, funcordinality), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__from_expr__field_indices_by_name[] = { - 0, /* field[0] = fromlist */ - 1, /* field[1] = quals */ -}; -static const ProtobufCIntRange pg_query__from_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__from_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FromExpr", - "FromExpr", - "PgQuery__FromExpr", - "pg_query", - sizeof(PgQuery__FromExpr), - 2, - pg_query__from_expr__field_descriptors, - pg_query__from_expr__field_indices_by_name, - 1, pg_query__from_expr__number_ranges, - (ProtobufCMessageInit) pg_query__from_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__on_conflict_expr__field_descriptors[8] = -{ { - "action", - 1, + "tablefunc", + 20, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictExpr, action), - &pg_query__on_conflict_action__descriptor, + offsetof(PgQuery__RangeTblEntry, tablefunc), + &pg_query__table_func__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arbiter_elems", - 2, + "values_lists", + 21, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__OnConflictExpr, n_arbiter_elems), - offsetof(PgQuery__OnConflictExpr, arbiter_elems), + offsetof(PgQuery__RangeTblEntry, n_values_lists), + offsetof(PgQuery__RangeTblEntry, values_lists), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arbiter_where", - 3, + "ctename", + 22, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictExpr, arbiter_where), - &pg_query__node__descriptor, + offsetof(PgQuery__RangeTblEntry, ctename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "constraint", - 4, + "ctelevelsup", + 23, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictExpr, constraint), + offsetof(PgQuery__RangeTblEntry, ctelevelsup), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_conflict_set", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__OnConflictExpr, n_on_conflict_set), - offsetof(PgQuery__OnConflictExpr, on_conflict_set), - &pg_query__node__descriptor, + "self_reference", + 24, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__RangeTblEntry, self_reference), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_conflict_where", - 6, - PROTOBUF_C_LABEL_NONE, + "coltypes", + 25, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictExpr, on_conflict_where), + offsetof(PgQuery__RangeTblEntry, n_coltypes), + offsetof(PgQuery__RangeTblEntry, coltypes), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "excl_rel_index", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictExpr, excl_rel_index), - NULL, + "coltypmods", + 26, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RangeTblEntry, n_coltypmods), + offsetof(PgQuery__RangeTblEntry, coltypmods), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "excl_rel_tlist", - 8, + "colcollations", + 27, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__OnConflictExpr, n_excl_rel_tlist), - offsetof(PgQuery__OnConflictExpr, excl_rel_tlist), + offsetof(PgQuery__RangeTblEntry, n_colcollations), + offsetof(PgQuery__RangeTblEntry, colcollations), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__on_conflict_expr__field_indices_by_name[] = { - 0, /* field[0] = action */ - 1, /* field[1] = arbiter_elems */ - 2, /* field[2] = arbiter_where */ - 3, /* field[3] = constraint */ - 6, /* field[6] = excl_rel_index */ - 7, /* field[7] = excl_rel_tlist */ - 4, /* field[4] = on_conflict_set */ - 5, /* field[5] = on_conflict_where */ -}; -static const ProtobufCIntRange pg_query__on_conflict_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 8 } -}; -const ProtobufCMessageDescriptor pg_query__on_conflict_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.OnConflictExpr", - "OnConflictExpr", - "PgQuery__OnConflictExpr", - "pg_query", - sizeof(PgQuery__OnConflictExpr), - 8, - pg_query__on_conflict_expr__field_descriptors, - pg_query__on_conflict_expr__field_indices_by_name, - 1, pg_query__on_conflict_expr__number_ranges, - (ProtobufCMessageInit) pg_query__on_conflict_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__query__field_descriptors[42] = -{ { - "command_type", - 1, + "enrname", + 28, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, command_type), - &pg_query__cmd_type__descriptor, + offsetof(PgQuery__RangeTblEntry, enrname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "query_source", - 2, + "enrtuples", + 29, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_DOUBLE, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, query_source), - &pg_query__query_source__descriptor, + offsetof(PgQuery__RangeTblEntry, enrtuples), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "can_set_tag", - 3, + "lateral", + 30, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, can_set_tag), - NULL, + offsetof(PgQuery__RangeTblEntry, lateral), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "utility_stmt", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, utility_stmt), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "result_relation", - 5, + "in_from_cl", + 31, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, result_relation), + offsetof(PgQuery__RangeTblEntry, in_from_cl), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_aggs", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_aggs), - NULL, + "security_quals", + 32, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__RangeTblEntry, n_security_quals), + offsetof(PgQuery__RangeTblEntry, security_quals), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__range_tbl_entry__field_indices_by_name[] = { + 0, /* field[0] = alias */ + 26, /* field[26] = colcollations */ + 24, /* field[24] = coltypes */ + 25, /* field[25] = coltypmods */ + 22, /* field[22] = ctelevelsup */ + 21, /* field[21] = ctename */ + 27, /* field[27] = enrname */ + 28, /* field[28] = enrtuples */ + 1, /* field[1] = eref */ + 18, /* field[18] = funcordinality */ + 17, /* field[17] = functions */ + 30, /* field[30] = in_from_cl */ + 4, /* field[4] = inh */ + 16, /* field[16] = join_using_alias */ + 13, /* field[13] = joinaliasvars */ + 14, /* field[14] = joinleftcols */ + 12, /* field[12] = joinmergedcols */ + 15, /* field[15] = joinrightcols */ + 11, /* field[11] = jointype */ + 29, /* field[29] = lateral */ + 7, /* field[7] = perminfoindex */ + 3, /* field[3] = relid */ + 5, /* field[5] = relkind */ + 6, /* field[6] = rellockmode */ + 2, /* field[2] = rtekind */ + 10, /* field[10] = security_barrier */ + 31, /* field[31] = security_quals */ + 23, /* field[23] = self_reference */ + 9, /* field[9] = subquery */ + 19, /* field[19] = tablefunc */ + 8, /* field[8] = tablesample */ + 20, /* field[20] = values_lists */ +}; +static const ProtobufCIntRange pg_query__range_tbl_entry__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 32 } +}; +const ProtobufCMessageDescriptor pg_query__range_tbl_entry__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RangeTblEntry", + "RangeTblEntry", + "PgQuery__RangeTblEntry", + "pg_query", + sizeof(PgQuery__RangeTblEntry), + 32, + pg_query__range_tbl_entry__field_descriptors, + pg_query__range_tbl_entry__field_indices_by_name, + 1, pg_query__range_tbl_entry__number_ranges, + (ProtobufCMessageInit) pg_query__range_tbl_entry__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__rtepermission_info__field_descriptors[7] = +{ { - "has_window_funcs", - 7, + "relid", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_window_funcs), + offsetof(PgQuery__RTEPermissionInfo, relid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_target_srfs", - 8, + "inh", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_target_srfs), + offsetof(PgQuery__RTEPermissionInfo, inh), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_sub_links", - 9, + "required_perms", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_sub_links), + offsetof(PgQuery__RTEPermissionInfo, required_perms), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_distinct_on", - 10, + "check_as_user", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_distinct_on), + offsetof(PgQuery__RTEPermissionInfo, check_as_user), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_recursive", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_recursive), + "selected_cols", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(PgQuery__RTEPermissionInfo, n_selected_cols), + offsetof(PgQuery__RTEPermissionInfo, selected_cols), NULL, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_modifying_cte", - 12, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_modifying_cte), + "inserted_cols", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(PgQuery__RTEPermissionInfo, n_inserted_cols), + offsetof(PgQuery__RTEPermissionInfo, inserted_cols), NULL, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "has_for_update", - 13, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_for_update), + "updated_cols", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(PgQuery__RTEPermissionInfo, n_updated_cols), + offsetof(PgQuery__RTEPermissionInfo, updated_cols), NULL, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__rtepermission_info__field_indices_by_name[] = { + 3, /* field[3] = check_as_user */ + 1, /* field[1] = inh */ + 5, /* field[5] = inserted_cols */ + 0, /* field[0] = relid */ + 2, /* field[2] = required_perms */ + 4, /* field[4] = selected_cols */ + 6, /* field[6] = updated_cols */ +}; +static const ProtobufCIntRange pg_query__rtepermission_info__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__rtepermission_info__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RTEPermissionInfo", + "RTEPermissionInfo", + "PgQuery__RTEPermissionInfo", + "pg_query", + sizeof(PgQuery__RTEPermissionInfo), + 7, + pg_query__rtepermission_info__field_descriptors, + pg_query__rtepermission_info__field_indices_by_name, + 1, pg_query__rtepermission_info__number_ranges, + (ProtobufCMessageInit) pg_query__rtepermission_info__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__range_tbl_function__field_descriptors[7] = +{ { - "has_row_security", - 14, + "funcexpr", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, has_row_security), - NULL, + offsetof(PgQuery__RangeTblFunction, funcexpr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_return", - 15, + "funccolcount", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, is_return), + offsetof(PgQuery__RangeTblFunction, funccolcount), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cte_list", - 16, + "funccolnames", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_cte_list), - offsetof(PgQuery__Query, cte_list), + offsetof(PgQuery__RangeTblFunction, n_funccolnames), + offsetof(PgQuery__RangeTblFunction, funccolnames), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rtable", - 17, + "funccoltypes", + 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_rtable), - offsetof(PgQuery__Query, rtable), + offsetof(PgQuery__RangeTblFunction, n_funccoltypes), + offsetof(PgQuery__RangeTblFunction, funccoltypes), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rteperminfos", - 18, + "funccoltypmods", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_rteperminfos), - offsetof(PgQuery__Query, rteperminfos), + offsetof(PgQuery__RangeTblFunction, n_funccoltypmods), + offsetof(PgQuery__RangeTblFunction, funccoltypmods), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "jointree", - 19, - PROTOBUF_C_LABEL_NONE, + "funccolcollations", + 6, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, jointree), - &pg_query__from_expr__descriptor, + offsetof(PgQuery__RangeTblFunction, n_funccolcollations), + offsetof(PgQuery__RangeTblFunction, funccolcollations), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_action_list", - 20, + "funcparams", + 7, PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_merge_action_list), - offsetof(PgQuery__Query, merge_action_list), - &pg_query__node__descriptor, + PROTOBUF_C_TYPE_UINT64, + offsetof(PgQuery__RangeTblFunction, n_funcparams), + offsetof(PgQuery__RangeTblFunction, funcparams), NULL, - 0, /* flags */ + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__range_tbl_function__field_indices_by_name[] = { + 5, /* field[5] = funccolcollations */ + 1, /* field[1] = funccolcount */ + 2, /* field[2] = funccolnames */ + 3, /* field[3] = funccoltypes */ + 4, /* field[4] = funccoltypmods */ + 0, /* field[0] = funcexpr */ + 6, /* field[6] = funcparams */ +}; +static const ProtobufCIntRange pg_query__range_tbl_function__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__range_tbl_function__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.RangeTblFunction", + "RangeTblFunction", + "PgQuery__RangeTblFunction", + "pg_query", + sizeof(PgQuery__RangeTblFunction), + 7, + pg_query__range_tbl_function__field_descriptors, + pg_query__range_tbl_function__field_indices_by_name, + 1, pg_query__range_tbl_function__number_ranges, + (ProtobufCMessageInit) pg_query__range_tbl_function__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__table_sample_clause__field_descriptors[3] = +{ { - "merge_target_relation", - 21, + "tsmhandler", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, merge_target_relation), + offsetof(PgQuery__TableSampleClause, tsmhandler), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_join_condition", - 22, - PROTOBUF_C_LABEL_NONE, + "args", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, merge_join_condition), + offsetof(PgQuery__TableSampleClause, n_args), + offsetof(PgQuery__TableSampleClause, args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "target_list", - 23, - PROTOBUF_C_LABEL_REPEATED, + "repeatable", + 3, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_target_list), - offsetof(PgQuery__Query, target_list), + 0, /* quantifier_offset */ + offsetof(PgQuery__TableSampleClause, repeatable), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__table_sample_clause__field_indices_by_name[] = { + 1, /* field[1] = args */ + 2, /* field[2] = repeatable */ + 0, /* field[0] = tsmhandler */ +}; +static const ProtobufCIntRange pg_query__table_sample_clause__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__table_sample_clause__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.TableSampleClause", + "TableSampleClause", + "PgQuery__TableSampleClause", + "pg_query", + sizeof(PgQuery__TableSampleClause), + 3, + pg_query__table_sample_clause__field_descriptors, + pg_query__table_sample_clause__field_indices_by_name, + 1, pg_query__table_sample_clause__number_ranges, + (ProtobufCMessageInit) pg_query__table_sample_clause__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__with_check_option__field_descriptors[5] = +{ { - "override", - 24, + "kind", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, override), - &pg_query__overriding_kind__descriptor, + offsetof(PgQuery__WithCheckOption, kind), + &pg_query__wcokind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_conflict", - 25, + "relname", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, on_conflict), - &pg_query__on_conflict_expr__descriptor, + offsetof(PgQuery__WithCheckOption, relname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning_list", - 26, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_returning_list), - offsetof(PgQuery__Query, returning_list), - &pg_query__node__descriptor, + "polname", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__WithCheckOption, polname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "group_clause", - 27, - PROTOBUF_C_LABEL_REPEATED, + "qual", + 4, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_group_clause), - offsetof(PgQuery__Query, group_clause), + 0, /* quantifier_offset */ + offsetof(PgQuery__WithCheckOption, qual), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "group_distinct", - 28, + "cascaded", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, group_distinct), + offsetof(PgQuery__WithCheckOption, cascaded), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__with_check_option__field_indices_by_name[] = { + 4, /* field[4] = cascaded */ + 0, /* field[0] = kind */ + 2, /* field[2] = polname */ + 3, /* field[3] = qual */ + 1, /* field[1] = relname */ +}; +static const ProtobufCIntRange pg_query__with_check_option__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__with_check_option__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.WithCheckOption", + "WithCheckOption", + "PgQuery__WithCheckOption", + "pg_query", + sizeof(PgQuery__WithCheckOption), + 5, + pg_query__with_check_option__field_descriptors, + pg_query__with_check_option__field_indices_by_name, + 1, pg_query__with_check_option__number_ranges, + (ProtobufCMessageInit) pg_query__with_check_option__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__sort_group_clause__field_descriptors[5] = +{ { - "grouping_sets", - 29, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_grouping_sets), - offsetof(PgQuery__Query, grouping_sets), - &pg_query__node__descriptor, + "tle_sort_group_ref", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SortGroupClause, tle_sort_group_ref), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "having_qual", - 30, + "eqop", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, having_qual), - &pg_query__node__descriptor, + offsetof(PgQuery__SortGroupClause, eqop), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "window_clause", - 31, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_window_clause), - offsetof(PgQuery__Query, window_clause), - &pg_query__node__descriptor, + "sortop", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__SortGroupClause, sortop), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "distinct_clause", - 32, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_distinct_clause), - offsetof(PgQuery__Query, distinct_clause), - &pg_query__node__descriptor, + "nulls_first", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__SortGroupClause, nulls_first), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sort_clause", - 33, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_sort_clause), - offsetof(PgQuery__Query, sort_clause), - &pg_query__node__descriptor, + "hashable", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__SortGroupClause, hashable), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__sort_group_clause__field_indices_by_name[] = { + 1, /* field[1] = eqop */ + 4, /* field[4] = hashable */ + 3, /* field[3] = nulls_first */ + 2, /* field[2] = sortop */ + 0, /* field[0] = tle_sort_group_ref */ +}; +static const ProtobufCIntRange pg_query__sort_group_clause__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__sort_group_clause__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SortGroupClause", + "SortGroupClause", + "PgQuery__SortGroupClause", + "pg_query", + sizeof(PgQuery__SortGroupClause), + 5, + pg_query__sort_group_clause__field_descriptors, + pg_query__sort_group_clause__field_indices_by_name, + 1, pg_query__sort_group_clause__number_ranges, + (ProtobufCMessageInit) pg_query__sort_group_clause__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__grouping_set__field_descriptors[3] = +{ { - "limit_offset", - 34, + "kind", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, limit_offset), - &pg_query__node__descriptor, + offsetof(PgQuery__GroupingSet, kind), + &pg_query__grouping_set_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "limit_count", - 35, - PROTOBUF_C_LABEL_NONE, + "content", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__Query, limit_count), + offsetof(PgQuery__GroupingSet, n_content), + offsetof(PgQuery__GroupingSet, content), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "limit_option", - 36, + "location", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, limit_option), - &pg_query__limit_option__descriptor, + offsetof(PgQuery__GroupingSet, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__grouping_set__field_indices_by_name[] = { + 1, /* field[1] = content */ + 0, /* field[0] = kind */ + 2, /* field[2] = location */ +}; +static const ProtobufCIntRange pg_query__grouping_set__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__grouping_set__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.GroupingSet", + "GroupingSet", + "PgQuery__GroupingSet", + "pg_query", + sizeof(PgQuery__GroupingSet), + 3, + pg_query__grouping_set__field_descriptors, + pg_query__grouping_set__field_indices_by_name, + 1, pg_query__grouping_set__number_ranges, + (ProtobufCMessageInit) pg_query__grouping_set__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__window_clause__field_descriptors[14] = +{ { - "row_marks", - 37, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_row_marks), - offsetof(PgQuery__Query, row_marks), - &pg_query__node__descriptor, + "name", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowClause, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "set_operations", - 38, + "refname", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, set_operations), - &pg_query__node__descriptor, + offsetof(PgQuery__WindowClause, refname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "constraint_deps", - 39, + "partition_clause", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_constraint_deps), - offsetof(PgQuery__Query, constraint_deps), + offsetof(PgQuery__WindowClause, n_partition_clause), + offsetof(PgQuery__WindowClause, partition_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "with_check_options", - 40, + "order_clause", + 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Query, n_with_check_options), - offsetof(PgQuery__Query, with_check_options), + offsetof(PgQuery__WindowClause, n_order_clause), + offsetof(PgQuery__WindowClause, order_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stmt_location", - 41, + "frame_options", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, stmt_location), + offsetof(PgQuery__WindowClause, frame_options), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stmt_len", - 42, + "start_offset", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Query, stmt_len), - NULL, + offsetof(PgQuery__WindowClause, start_offset), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__query__field_indices_by_name[] = { - 2, /* field[2] = can_set_tag */ - 0, /* field[0] = command_type */ - 38, /* field[38] = constraint_deps */ - 15, /* field[15] = cte_list */ - 31, /* field[31] = distinct_clause */ - 26, /* field[26] = group_clause */ - 27, /* field[27] = group_distinct */ - 28, /* field[28] = grouping_sets */ - 5, /* field[5] = has_aggs */ - 9, /* field[9] = has_distinct_on */ - 12, /* field[12] = has_for_update */ - 11, /* field[11] = has_modifying_cte */ - 10, /* field[10] = has_recursive */ - 13, /* field[13] = has_row_security */ - 8, /* field[8] = has_sub_links */ - 7, /* field[7] = has_target_srfs */ - 6, /* field[6] = has_window_funcs */ - 29, /* field[29] = having_qual */ - 14, /* field[14] = is_return */ - 18, /* field[18] = jointree */ - 34, /* field[34] = limit_count */ - 33, /* field[33] = limit_offset */ - 35, /* field[35] = limit_option */ - 19, /* field[19] = merge_action_list */ - 21, /* field[21] = merge_join_condition */ - 20, /* field[20] = merge_target_relation */ - 24, /* field[24] = on_conflict */ - 23, /* field[23] = override */ - 1, /* field[1] = query_source */ - 4, /* field[4] = result_relation */ - 25, /* field[25] = returning_list */ - 36, /* field[36] = row_marks */ - 16, /* field[16] = rtable */ - 17, /* field[17] = rteperminfos */ - 37, /* field[37] = set_operations */ - 32, /* field[32] = sort_clause */ - 41, /* field[41] = stmt_len */ - 40, /* field[40] = stmt_location */ - 22, /* field[22] = target_list */ - 3, /* field[3] = utility_stmt */ - 30, /* field[30] = window_clause */ - 39, /* field[39] = with_check_options */ -}; -static const ProtobufCIntRange pg_query__query__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 42 } -}; -const ProtobufCMessageDescriptor pg_query__query__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Query", - "Query", - "PgQuery__Query", - "pg_query", - sizeof(PgQuery__Query), - 42, - pg_query__query__field_descriptors, - pg_query__query__field_indices_by_name, - 1, pg_query__query__number_ranges, - (ProtobufCMessageInit) pg_query__query__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__type_name__field_descriptors[8] = -{ { - "names", - 1, - PROTOBUF_C_LABEL_REPEATED, + "end_offset", + 7, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TypeName, n_names), - offsetof(PgQuery__TypeName, names), + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowClause, end_offset), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_oid", - 2, + "start_in_range_func", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeName, type_oid), + offsetof(PgQuery__WindowClause, start_in_range_func), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "setof", - 3, + "end_in_range_func", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeName, setof), + offsetof(PgQuery__WindowClause, end_in_range_func), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pct_type", - 4, + "in_range_coll", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeName, pct_type), + offsetof(PgQuery__WindowClause, in_range_coll), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "typmods", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TypeName, n_typmods), - offsetof(PgQuery__TypeName, typmods), - &pg_query__node__descriptor, + "in_range_asc", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowClause, in_range_asc), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "typemod", - 6, + "in_range_nulls_first", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeName, typemod), + offsetof(PgQuery__WindowClause, in_range_nulls_first), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "array_bounds", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TypeName, n_array_bounds), - offsetof(PgQuery__TypeName, array_bounds), - &pg_query__node__descriptor, + "winref", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__WindowClause, winref), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 8, + "copied_order", + 14, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeName, location), + offsetof(PgQuery__WindowClause, copied_order), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__type_name__field_indices_by_name[] = { - 6, /* field[6] = array_bounds */ - 7, /* field[7] = location */ - 0, /* field[0] = names */ - 3, /* field[3] = pct_type */ - 2, /* field[2] = setof */ - 1, /* field[1] = type_oid */ - 5, /* field[5] = typemod */ - 4, /* field[4] = typmods */ +static const unsigned pg_query__window_clause__field_indices_by_name[] = { + 13, /* field[13] = copied_order */ + 8, /* field[8] = end_in_range_func */ + 6, /* field[6] = end_offset */ + 4, /* field[4] = frame_options */ + 10, /* field[10] = in_range_asc */ + 9, /* field[9] = in_range_coll */ + 11, /* field[11] = in_range_nulls_first */ + 0, /* field[0] = name */ + 3, /* field[3] = order_clause */ + 2, /* field[2] = partition_clause */ + 1, /* field[1] = refname */ + 7, /* field[7] = start_in_range_func */ + 5, /* field[5] = start_offset */ + 12, /* field[12] = winref */ }; -static const ProtobufCIntRange pg_query__type_name__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__window_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 14 } }; -const ProtobufCMessageDescriptor pg_query__type_name__descriptor = +const ProtobufCMessageDescriptor pg_query__window_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TypeName", - "TypeName", - "PgQuery__TypeName", + "pg_query.WindowClause", + "WindowClause", + "PgQuery__WindowClause", "pg_query", - sizeof(PgQuery__TypeName), - 8, - pg_query__type_name__field_descriptors, - pg_query__type_name__field_indices_by_name, - 1, pg_query__type_name__number_ranges, - (ProtobufCMessageInit) pg_query__type_name__init, + sizeof(PgQuery__WindowClause), + 14, + pg_query__window_clause__field_descriptors, + pg_query__window_clause__field_indices_by_name, + 1, pg_query__window_clause__number_ranges, + (ProtobufCMessageInit) pg_query__window_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__column_ref__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__row_mark_clause__field_descriptors[4] = { { - "fields", + "rti", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ColumnRef, n_fields), - offsetof(PgQuery__ColumnRef, fields), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RowMarkClause, rti), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "strength", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnRef, location), + offsetof(PgQuery__RowMarkClause, strength), + &pg_query__lock_clause_strength__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "wait_policy", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__RowMarkClause, wait_policy), + &pg_query__lock_wait_policy__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pushed_down", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__RowMarkClause, pushed_down), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__column_ref__field_indices_by_name[] = { - 0, /* field[0] = fields */ - 1, /* field[1] = location */ +static const unsigned pg_query__row_mark_clause__field_indices_by_name[] = { + 3, /* field[3] = pushed_down */ + 0, /* field[0] = rti */ + 1, /* field[1] = strength */ + 2, /* field[2] = wait_policy */ }; -static const ProtobufCIntRange pg_query__column_ref__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__row_mark_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__column_ref__descriptor = +const ProtobufCMessageDescriptor pg_query__row_mark_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ColumnRef", - "ColumnRef", - "PgQuery__ColumnRef", + "pg_query.RowMarkClause", + "RowMarkClause", + "PgQuery__RowMarkClause", "pg_query", - sizeof(PgQuery__ColumnRef), - 2, - pg_query__column_ref__field_descriptors, - pg_query__column_ref__field_indices_by_name, - 1, pg_query__column_ref__number_ranges, - (ProtobufCMessageInit) pg_query__column_ref__init, + sizeof(PgQuery__RowMarkClause), + 4, + pg_query__row_mark_clause__field_descriptors, + pg_query__row_mark_clause__field_indices_by_name, + 1, pg_query__row_mark_clause__number_ranges, + (ProtobufCMessageInit) pg_query__row_mark_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__param_ref__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__with_clause__field_descriptors[3] = { { - "number", + "ctes", 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__WithClause, n_ctes), + offsetof(PgQuery__WithClause, ctes), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "recursive", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ParamRef, number), + offsetof(PgQuery__WithClause, recursive), NULL, NULL, 0, /* flags */ @@ -24007,216 +29936,164 @@ static const ProtobufCFieldDescriptor pg_query__param_ref__field_descriptors[2] }, { "location", - 2, + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ParamRef, location), + offsetof(PgQuery__WithClause, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__param_ref__field_indices_by_name[] = { - 1, /* field[1] = location */ - 0, /* field[0] = number */ +static const unsigned pg_query__with_clause__field_indices_by_name[] = { + 0, /* field[0] = ctes */ + 2, /* field[2] = location */ + 1, /* field[1] = recursive */ }; -static const ProtobufCIntRange pg_query__param_ref__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__with_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__param_ref__descriptor = +const ProtobufCMessageDescriptor pg_query__with_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ParamRef", - "ParamRef", - "PgQuery__ParamRef", + "pg_query.WithClause", + "WithClause", + "PgQuery__WithClause", "pg_query", - sizeof(PgQuery__ParamRef), - 2, - pg_query__param_ref__field_descriptors, - pg_query__param_ref__field_indices_by_name, - 1, pg_query__param_ref__number_ranges, - (ProtobufCMessageInit) pg_query__param_ref__init, + sizeof(PgQuery__WithClause), + 3, + pg_query__with_clause__field_descriptors, + pg_query__with_clause__field_indices_by_name, + 1, pg_query__with_clause__number_ranges, + (ProtobufCMessageInit) pg_query__with_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__a__expr__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__infer_clause__field_descriptors[4] = { { - "kind", + "index_elems", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__AExpr, kind), - &pg_query__a__expr__kind__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "name", - 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AExpr, n_name), - offsetof(PgQuery__AExpr, name), + offsetof(PgQuery__InferClause, n_index_elems), + offsetof(PgQuery__InferClause, index_elems), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lexpr", - 3, + "where_clause", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AExpr, lexpr), + offsetof(PgQuery__InferClause, where_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rexpr", - 4, + "conname", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AExpr, rexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__InferClause, conname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 5, + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AExpr, location), + offsetof(PgQuery__InferClause, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__a__expr__field_indices_by_name[] = { - 0, /* field[0] = kind */ - 2, /* field[2] = lexpr */ - 4, /* field[4] = location */ - 1, /* field[1] = name */ - 3, /* field[3] = rexpr */ +static const unsigned pg_query__infer_clause__field_indices_by_name[] = { + 2, /* field[2] = conname */ + 0, /* field[0] = index_elems */ + 3, /* field[3] = location */ + 1, /* field[1] = where_clause */ }; -static const ProtobufCIntRange pg_query__a__expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__infer_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__a__expr__descriptor = +const ProtobufCMessageDescriptor pg_query__infer_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.A_Expr", - "AExpr", - "PgQuery__AExpr", + "pg_query.InferClause", + "InferClause", + "PgQuery__InferClause", "pg_query", - sizeof(PgQuery__AExpr), - 5, - pg_query__a__expr__field_descriptors, - pg_query__a__expr__field_indices_by_name, - 1, pg_query__a__expr__number_ranges, - (ProtobufCMessageInit) pg_query__a__expr__init, + sizeof(PgQuery__InferClause), + 4, + pg_query__infer_clause__field_descriptors, + pg_query__infer_clause__field_indices_by_name, + 1, pg_query__infer_clause__number_ranges, + (ProtobufCMessageInit) pg_query__infer_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__type_cast__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__on_conflict_clause__field_descriptors[5] = { { - "arg", + "action", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeCast, arg), - &pg_query__node__descriptor, + offsetof(PgQuery__OnConflictClause, action), + &pg_query__on_conflict_action__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", + "infer", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TypeCast, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__OnConflictClause, infer), + &pg_query__infer_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "target_list", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__TypeCast, location), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__type_cast__field_indices_by_name[] = { - 0, /* field[0] = arg */ - 2, /* field[2] = location */ - 1, /* field[1] = type_name */ -}; -static const ProtobufCIntRange pg_query__type_cast__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__type_cast__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TypeCast", - "TypeCast", - "PgQuery__TypeCast", - "pg_query", - sizeof(PgQuery__TypeCast), - 3, - pg_query__type_cast__field_descriptors, - pg_query__type_cast__field_indices_by_name, - 1, pg_query__type_cast__number_ranges, - (ProtobufCMessageInit) pg_query__type_cast__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__collate_clause__field_descriptors[3] = -{ - { - "arg", - 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CollateClause, arg), + offsetof(PgQuery__OnConflictClause, n_target_list), + offsetof(PgQuery__OnConflictClause, target_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collname", - 2, - PROTOBUF_C_LABEL_REPEATED, + "where_clause", + 4, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CollateClause, n_collname), - offsetof(PgQuery__CollateClause, collname), + 0, /* quantifier_offset */ + offsetof(PgQuery__OnConflictClause, where_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ @@ -24224,63 +30101,77 @@ static const ProtobufCFieldDescriptor pg_query__collate_clause__field_descriptor }, { "location", - 3, + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CollateClause, location), + offsetof(PgQuery__OnConflictClause, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__collate_clause__field_indices_by_name[] = { - 0, /* field[0] = arg */ - 1, /* field[1] = collname */ - 2, /* field[2] = location */ +static const unsigned pg_query__on_conflict_clause__field_indices_by_name[] = { + 0, /* field[0] = action */ + 1, /* field[1] = infer */ + 4, /* field[4] = location */ + 2, /* field[2] = target_list */ + 3, /* field[3] = where_clause */ }; -static const ProtobufCIntRange pg_query__collate_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__on_conflict_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__collate_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__on_conflict_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CollateClause", - "CollateClause", - "PgQuery__CollateClause", + "pg_query.OnConflictClause", + "OnConflictClause", + "PgQuery__OnConflictClause", "pg_query", - sizeof(PgQuery__CollateClause), - 3, - pg_query__collate_clause__field_descriptors, - pg_query__collate_clause__field_indices_by_name, - 1, pg_query__collate_clause__number_ranges, - (ProtobufCMessageInit) pg_query__collate_clause__init, + sizeof(PgQuery__OnConflictClause), + 5, + pg_query__on_conflict_clause__field_descriptors, + pg_query__on_conflict_clause__field_indices_by_name, + 1, pg_query__on_conflict_clause__number_ranges, + (ProtobufCMessageInit) pg_query__on_conflict_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__role_spec__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__ctesearch_clause__field_descriptors[4] = { { - "roletype", + "search_col_list", 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CTESearchClause, n_search_col_list), + offsetof(PgQuery__CTESearchClause, search_col_list), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "search_breadth_first", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RoleSpec, roletype), - &pg_query__role_spec_type__descriptor, + offsetof(PgQuery__CTESearchClause, search_breadth_first), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rolename", - 2, + "search_seq_column", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RoleSpec, rolename), + offsetof(PgQuery__CTESearchClause, search_seq_column), NULL, &protobuf_c_empty_string, 0, /* flags */ @@ -24288,626 +30179,496 @@ static const ProtobufCFieldDescriptor pg_query__role_spec__field_descriptors[3] }, { "location", - 3, + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RoleSpec, location), + offsetof(PgQuery__CTESearchClause, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__role_spec__field_indices_by_name[] = { - 2, /* field[2] = location */ - 1, /* field[1] = rolename */ - 0, /* field[0] = roletype */ +static const unsigned pg_query__ctesearch_clause__field_indices_by_name[] = { + 3, /* field[3] = location */ + 1, /* field[1] = search_breadth_first */ + 0, /* field[0] = search_col_list */ + 2, /* field[2] = search_seq_column */ }; -static const ProtobufCIntRange pg_query__role_spec__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__ctesearch_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__role_spec__descriptor = +const ProtobufCMessageDescriptor pg_query__ctesearch_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RoleSpec", - "RoleSpec", - "PgQuery__RoleSpec", + "pg_query.CTESearchClause", + "CTESearchClause", + "PgQuery__CTESearchClause", "pg_query", - sizeof(PgQuery__RoleSpec), - 3, - pg_query__role_spec__field_descriptors, - pg_query__role_spec__field_indices_by_name, - 1, pg_query__role_spec__number_ranges, - (ProtobufCMessageInit) pg_query__role_spec__init, + sizeof(PgQuery__CTESearchClause), + 4, + pg_query__ctesearch_clause__field_descriptors, + pg_query__ctesearch_clause__field_indices_by_name, + 1, pg_query__ctesearch_clause__number_ranges, + (ProtobufCMessageInit) pg_query__ctesearch_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__func_call__field_descriptors[11] = +static const ProtobufCFieldDescriptor pg_query__ctecycle_clause__field_descriptors[10] = { { - "funcname", + "cycle_col_list", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FuncCall, n_funcname), - offsetof(PgQuery__FuncCall, funcname), + offsetof(PgQuery__CTECycleClause, n_cycle_col_list), + offsetof(PgQuery__CTECycleClause, cycle_col_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "cycle_mark_column", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FuncCall, n_args), - offsetof(PgQuery__FuncCall, args), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CTECycleClause, cycle_mark_column), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_order", + "cycle_mark_value", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__FuncCall, n_agg_order), - offsetof(PgQuery__FuncCall, agg_order), + 0, /* quantifier_offset */ + offsetof(PgQuery__CTECycleClause, cycle_mark_value), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_filter", + "cycle_mark_default", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, agg_filter), + offsetof(PgQuery__CTECycleClause, cycle_mark_default), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "over", + "cycle_path_column", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, over), - &pg_query__window_def__descriptor, + offsetof(PgQuery__CTECycleClause, cycle_path_column), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_within_group", + "location", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, agg_within_group), + offsetof(PgQuery__CTECycleClause, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_star", + "cycle_mark_type", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, agg_star), + offsetof(PgQuery__CTECycleClause, cycle_mark_type), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_distinct", + "cycle_mark_typmod", 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, agg_distinct), + offsetof(PgQuery__CTECycleClause, cycle_mark_typmod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func_variadic", + "cycle_mark_collation", 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, func_variadic), + offsetof(PgQuery__CTECycleClause, cycle_mark_collation), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcformat", + "cycle_mark_neop", 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, funcformat), - &pg_query__coercion_form__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__FuncCall, location), + offsetof(PgQuery__CTECycleClause, cycle_mark_neop), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__func_call__field_indices_by_name[] = { - 7, /* field[7] = agg_distinct */ - 3, /* field[3] = agg_filter */ - 2, /* field[2] = agg_order */ - 6, /* field[6] = agg_star */ - 5, /* field[5] = agg_within_group */ - 1, /* field[1] = args */ - 8, /* field[8] = func_variadic */ - 9, /* field[9] = funcformat */ - 0, /* field[0] = funcname */ - 10, /* field[10] = location */ - 4, /* field[4] = over */ +static const unsigned pg_query__ctecycle_clause__field_indices_by_name[] = { + 0, /* field[0] = cycle_col_list */ + 8, /* field[8] = cycle_mark_collation */ + 1, /* field[1] = cycle_mark_column */ + 3, /* field[3] = cycle_mark_default */ + 9, /* field[9] = cycle_mark_neop */ + 6, /* field[6] = cycle_mark_type */ + 7, /* field[7] = cycle_mark_typmod */ + 2, /* field[2] = cycle_mark_value */ + 4, /* field[4] = cycle_path_column */ + 5, /* field[5] = location */ }; -static const ProtobufCIntRange pg_query__func_call__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__ctecycle_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 11 } -}; -const ProtobufCMessageDescriptor pg_query__func_call__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FuncCall", - "FuncCall", - "PgQuery__FuncCall", - "pg_query", - sizeof(PgQuery__FuncCall), - 11, - pg_query__func_call__field_descriptors, - pg_query__func_call__field_indices_by_name, - 1, pg_query__func_call__number_ranges, - (ProtobufCMessageInit) pg_query__func_call__init, - NULL,NULL,NULL /* reserved[123] */ + { 0, 10 } }; -#define pg_query__a__star__field_descriptors NULL -#define pg_query__a__star__field_indices_by_name NULL -#define pg_query__a__star__number_ranges NULL -const ProtobufCMessageDescriptor pg_query__a__star__descriptor = +const ProtobufCMessageDescriptor pg_query__ctecycle_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.A_Star", - "AStar", - "PgQuery__AStar", + "pg_query.CTECycleClause", + "CTECycleClause", + "PgQuery__CTECycleClause", "pg_query", - sizeof(PgQuery__AStar), - 0, - pg_query__a__star__field_descriptors, - pg_query__a__star__field_indices_by_name, - 0, pg_query__a__star__number_ranges, - (ProtobufCMessageInit) pg_query__a__star__init, + sizeof(PgQuery__CTECycleClause), + 10, + pg_query__ctecycle_clause__field_descriptors, + pg_query__ctecycle_clause__field_indices_by_name, + 1, pg_query__ctecycle_clause__number_ranges, + (ProtobufCMessageInit) pg_query__ctecycle_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__a__indices__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__common_table_expr__field_descriptors[13] = { { - "is_slice", + "ctename", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AIndices, is_slice), - NULL, + offsetof(PgQuery__CommonTableExpr, ctename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lidx", + "aliascolnames", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AIndices, lidx), + offsetof(PgQuery__CommonTableExpr, n_aliascolnames), + offsetof(PgQuery__CommonTableExpr, aliascolnames), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "uidx", + "ctematerialized", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AIndices, uidx), - &pg_query__node__descriptor, + offsetof(PgQuery__CommonTableExpr, ctematerialized), + &pg_query__ctematerialize__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__a__indices__field_indices_by_name[] = { - 0, /* field[0] = is_slice */ - 1, /* field[1] = lidx */ - 2, /* field[2] = uidx */ -}; -static const ProtobufCIntRange pg_query__a__indices__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__a__indices__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.A_Indices", - "AIndices", - "PgQuery__AIndices", - "pg_query", - sizeof(PgQuery__AIndices), - 3, - pg_query__a__indices__field_descriptors, - pg_query__a__indices__field_indices_by_name, - 1, pg_query__a__indices__number_ranges, - (ProtobufCMessageInit) pg_query__a__indices__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__a__indirection__field_descriptors[2] = -{ { - "arg", - 1, + "ctequery", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AIndirection, arg), + offsetof(PgQuery__CommonTableExpr, ctequery), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "indirection", - 2, - PROTOBUF_C_LABEL_REPEATED, + "search_clause", + 5, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AIndirection, n_indirection), - offsetof(PgQuery__AIndirection, indirection), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CommonTableExpr, search_clause), + &pg_query__ctesearch_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__a__indirection__field_indices_by_name[] = { - 0, /* field[0] = arg */ - 1, /* field[1] = indirection */ -}; -static const ProtobufCIntRange pg_query__a__indirection__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__a__indirection__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.A_Indirection", - "AIndirection", - "PgQuery__AIndirection", - "pg_query", - sizeof(PgQuery__AIndirection), - 2, - pg_query__a__indirection__field_descriptors, - pg_query__a__indirection__field_indices_by_name, - 1, pg_query__a__indirection__number_ranges, - (ProtobufCMessageInit) pg_query__a__indirection__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__a__array_expr__field_descriptors[2] = -{ { - "elements", - 1, - PROTOBUF_C_LABEL_REPEATED, + "cycle_clause", + 6, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AArrayExpr, n_elements), - offsetof(PgQuery__AArrayExpr, elements), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CommonTableExpr, cycle_clause), + &pg_query__ctecycle_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 2, + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AArrayExpr, location), + offsetof(PgQuery__CommonTableExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__a__array_expr__field_indices_by_name[] = { - 0, /* field[0] = elements */ - 1, /* field[1] = location */ -}; -static const ProtobufCIntRange pg_query__a__array_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__a__array_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.A_ArrayExpr", - "AArrayExpr", - "PgQuery__AArrayExpr", - "pg_query", - sizeof(PgQuery__AArrayExpr), - 2, - pg_query__a__array_expr__field_descriptors, - pg_query__a__array_expr__field_indices_by_name, - 1, pg_query__a__array_expr__number_ranges, - (ProtobufCMessageInit) pg_query__a__array_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__res_target__field_descriptors[4] = -{ { - "name", - 1, + "cterecursive", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ResTarget, name), + offsetof(PgQuery__CommonTableExpr, cterecursive), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "indirection", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ResTarget, n_indirection), - offsetof(PgQuery__ResTarget, indirection), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "val", - 3, + "cterefcount", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ResTarget, val), - &pg_query__node__descriptor, + offsetof(PgQuery__CommonTableExpr, cterefcount), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__ResTarget, location), - NULL, + "ctecolnames", + 10, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CommonTableExpr, n_ctecolnames), + offsetof(PgQuery__CommonTableExpr, ctecolnames), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__res_target__field_indices_by_name[] = { - 1, /* field[1] = indirection */ - 3, /* field[3] = location */ - 0, /* field[0] = name */ - 2, /* field[2] = val */ -}; -static const ProtobufCIntRange pg_query__res_target__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__res_target__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ResTarget", - "ResTarget", - "PgQuery__ResTarget", - "pg_query", - sizeof(PgQuery__ResTarget), - 4, - pg_query__res_target__field_descriptors, - pg_query__res_target__field_indices_by_name, - 1, pg_query__res_target__number_ranges, - (ProtobufCMessageInit) pg_query__res_target__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__multi_assign_ref__field_descriptors[3] = -{ { - "source", - 1, - PROTOBUF_C_LABEL_NONE, + "ctecoltypes", + 11, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__MultiAssignRef, source), + offsetof(PgQuery__CommonTableExpr, n_ctecoltypes), + offsetof(PgQuery__CommonTableExpr, ctecoltypes), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "colno", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__MultiAssignRef, colno), - NULL, + "ctecoltypmods", + 12, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CommonTableExpr, n_ctecoltypmods), + offsetof(PgQuery__CommonTableExpr, ctecoltypmods), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ncolumns", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__MultiAssignRef, ncolumns), - NULL, + "ctecolcollations", + 13, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CommonTableExpr, n_ctecolcollations), + offsetof(PgQuery__CommonTableExpr, ctecolcollations), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__multi_assign_ref__field_indices_by_name[] = { - 1, /* field[1] = colno */ - 2, /* field[2] = ncolumns */ - 0, /* field[0] = source */ +static const unsigned pg_query__common_table_expr__field_indices_by_name[] = { + 1, /* field[1] = aliascolnames */ + 12, /* field[12] = ctecolcollations */ + 9, /* field[9] = ctecolnames */ + 10, /* field[10] = ctecoltypes */ + 11, /* field[11] = ctecoltypmods */ + 2, /* field[2] = ctematerialized */ + 0, /* field[0] = ctename */ + 3, /* field[3] = ctequery */ + 7, /* field[7] = cterecursive */ + 8, /* field[8] = cterefcount */ + 5, /* field[5] = cycle_clause */ + 6, /* field[6] = location */ + 4, /* field[4] = search_clause */ }; -static const ProtobufCIntRange pg_query__multi_assign_ref__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__common_table_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 13 } }; -const ProtobufCMessageDescriptor pg_query__multi_assign_ref__descriptor = +const ProtobufCMessageDescriptor pg_query__common_table_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.MultiAssignRef", - "MultiAssignRef", - "PgQuery__MultiAssignRef", + "pg_query.CommonTableExpr", + "CommonTableExpr", + "PgQuery__CommonTableExpr", "pg_query", - sizeof(PgQuery__MultiAssignRef), - 3, - pg_query__multi_assign_ref__field_descriptors, - pg_query__multi_assign_ref__field_indices_by_name, - 1, pg_query__multi_assign_ref__number_ranges, - (ProtobufCMessageInit) pg_query__multi_assign_ref__init, + sizeof(PgQuery__CommonTableExpr), + 13, + pg_query__common_table_expr__field_descriptors, + pg_query__common_table_expr__field_indices_by_name, + 1, pg_query__common_table_expr__number_ranges, + (ProtobufCMessageInit) pg_query__common_table_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__sort_by__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__merge_when_clause__field_descriptors[6] = { { - "node", + "match_kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SortBy, node), - &pg_query__node__descriptor, + offsetof(PgQuery__MergeWhenClause, match_kind), + &pg_query__merge_match_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sortby_dir", + "command_type", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SortBy, sortby_dir), - &pg_query__sort_by_dir__descriptor, + offsetof(PgQuery__MergeWhenClause, command_type), + &pg_query__cmd_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sortby_nulls", + "override", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SortBy, sortby_nulls), - &pg_query__sort_by_nulls__descriptor, + offsetof(PgQuery__MergeWhenClause, override), + &pg_query__overriding_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "use_op", + "condition", 4, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SortBy, n_use_op), - offsetof(PgQuery__SortBy, use_op), + 0, /* quantifier_offset */ + offsetof(PgQuery__MergeWhenClause, condition), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "target_list", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__SortBy, location), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__MergeWhenClause, n_target_list), + offsetof(PgQuery__MergeWhenClause, target_list), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "values", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__MergeWhenClause, n_values), + offsetof(PgQuery__MergeWhenClause, values), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__sort_by__field_indices_by_name[] = { - 4, /* field[4] = location */ - 0, /* field[0] = node */ - 1, /* field[1] = sortby_dir */ - 2, /* field[2] = sortby_nulls */ - 3, /* field[3] = use_op */ +static const unsigned pg_query__merge_when_clause__field_indices_by_name[] = { + 1, /* field[1] = command_type */ + 3, /* field[3] = condition */ + 0, /* field[0] = match_kind */ + 2, /* field[2] = override */ + 4, /* field[4] = target_list */ + 5, /* field[5] = values */ }; -static const ProtobufCIntRange pg_query__sort_by__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__merge_when_clause__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__sort_by__descriptor = +const ProtobufCMessageDescriptor pg_query__merge_when_clause__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SortBy", - "SortBy", - "PgQuery__SortBy", + "pg_query.MergeWhenClause", + "MergeWhenClause", + "PgQuery__MergeWhenClause", "pg_query", - sizeof(PgQuery__SortBy), - 5, - pg_query__sort_by__field_descriptors, - pg_query__sort_by__field_indices_by_name, - 1, pg_query__sort_by__number_ranges, - (ProtobufCMessageInit) pg_query__sort_by__init, + sizeof(PgQuery__MergeWhenClause), + 6, + pg_query__merge_when_clause__field_descriptors, + pg_query__merge_when_clause__field_indices_by_name, + 1, pg_query__merge_when_clause__number_ranges, + (ProtobufCMessageInit) pg_query__merge_when_clause__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__window_def__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__trigger_transition__field_descriptors[3] = { { "name", @@ -24915,1127 +30676,1175 @@ static const ProtobufCFieldDescriptor pg_query__window_def__field_descriptors[8] PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowDef, name), + offsetof(PgQuery__TriggerTransition, name), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refname", + "is_new", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowDef, refname), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "partition_clause", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WindowDef, n_partition_clause), - offsetof(PgQuery__WindowDef, partition_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__TriggerTransition, is_new), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "order_clause", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WindowDef, n_order_clause), - offsetof(PgQuery__WindowDef, order_clause), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "frame_options", - 5, + "is_table", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowDef, frame_options), + offsetof(PgQuery__TriggerTransition, is_table), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__trigger_transition__field_indices_by_name[] = { + 1, /* field[1] = is_new */ + 2, /* field[2] = is_table */ + 0, /* field[0] = name */ +}; +static const ProtobufCIntRange pg_query__trigger_transition__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__trigger_transition__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.TriggerTransition", + "TriggerTransition", + "PgQuery__TriggerTransition", + "pg_query", + sizeof(PgQuery__TriggerTransition), + 3, + pg_query__trigger_transition__field_descriptors, + pg_query__trigger_transition__field_indices_by_name, + 1, pg_query__trigger_transition__number_ranges, + (ProtobufCMessageInit) pg_query__trigger_transition__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_output__field_descriptors[2] = +{ { - "start_offset", - 6, + "type_name", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowDef, start_offset), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonOutput, type_name), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "end_offset", - 7, + "returning", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowDef, end_offset), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__WindowDef, location), - NULL, + offsetof(PgQuery__JsonOutput, returning), + &pg_query__json_returning__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__window_def__field_indices_by_name[] = { - 6, /* field[6] = end_offset */ - 4, /* field[4] = frame_options */ - 7, /* field[7] = location */ - 0, /* field[0] = name */ - 3, /* field[3] = order_clause */ - 2, /* field[2] = partition_clause */ - 1, /* field[1] = refname */ - 5, /* field[5] = start_offset */ +static const unsigned pg_query__json_output__field_indices_by_name[] = { + 1, /* field[1] = returning */ + 0, /* field[0] = type_name */ }; -static const ProtobufCIntRange pg_query__window_def__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_output__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__window_def__descriptor = +const ProtobufCMessageDescriptor pg_query__json_output__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.WindowDef", - "WindowDef", - "PgQuery__WindowDef", + "pg_query.JsonOutput", + "JsonOutput", + "PgQuery__JsonOutput", "pg_query", - sizeof(PgQuery__WindowDef), - 8, - pg_query__window_def__field_descriptors, - pg_query__window_def__field_indices_by_name, - 1, pg_query__window_def__number_ranges, - (ProtobufCMessageInit) pg_query__window_def__init, + sizeof(PgQuery__JsonOutput), + 2, + pg_query__json_output__field_descriptors, + pg_query__json_output__field_indices_by_name, + 1, pg_query__json_output__number_ranges, + (ProtobufCMessageInit) pg_query__json_output__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__range_subselect__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__json_argument__field_descriptors[2] = { { - "lateral", + "val", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeSubselect, lateral), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "subquery", - 2, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeSubselect, subquery), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonArgument, val), + &pg_query__json_value_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alias", - 3, + "name", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeSubselect, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__JsonArgument, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__range_subselect__field_indices_by_name[] = { - 2, /* field[2] = alias */ - 0, /* field[0] = lateral */ - 1, /* field[1] = subquery */ +static const unsigned pg_query__json_argument__field_indices_by_name[] = { + 1, /* field[1] = name */ + 0, /* field[0] = val */ }; -static const ProtobufCIntRange pg_query__range_subselect__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_argument__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__range_subselect__descriptor = +const ProtobufCMessageDescriptor pg_query__json_argument__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeSubselect", - "RangeSubselect", - "PgQuery__RangeSubselect", + "pg_query.JsonArgument", + "JsonArgument", + "PgQuery__JsonArgument", "pg_query", - sizeof(PgQuery__RangeSubselect), - 3, - pg_query__range_subselect__field_descriptors, - pg_query__range_subselect__field_indices_by_name, - 1, pg_query__range_subselect__number_ranges, - (ProtobufCMessageInit) pg_query__range_subselect__init, + sizeof(PgQuery__JsonArgument), + 2, + pg_query__json_argument__field_descriptors, + pg_query__json_argument__field_indices_by_name, + 1, pg_query__json_argument__number_ranges, + (ProtobufCMessageInit) pg_query__json_argument__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__range_function__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__json_func_expr__field_descriptors[11] = { { - "lateral", + "op", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeFunction, lateral), - NULL, + offsetof(PgQuery__JsonFuncExpr, op), + &pg_query__json_expr_op__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ordinality", + "column_name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeFunction, ordinality), - NULL, + offsetof(PgQuery__JsonFuncExpr, column_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_rowsfrom", + "context_item", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeFunction, is_rowsfrom), - NULL, + offsetof(PgQuery__JsonFuncExpr, context_item), + &pg_query__json_value_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "functions", + "pathspec", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeFunction, n_functions), - offsetof(PgQuery__RangeFunction, functions), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "alias", - 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeFunction, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__JsonFuncExpr, pathspec), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coldeflist", - 6, + "passing", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeFunction, n_coldeflist), - offsetof(PgQuery__RangeFunction, coldeflist), + offsetof(PgQuery__JsonFuncExpr, n_passing), + offsetof(PgQuery__JsonFuncExpr, passing), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__range_function__field_indices_by_name[] = { - 4, /* field[4] = alias */ - 5, /* field[5] = coldeflist */ - 3, /* field[3] = functions */ - 2, /* field[2] = is_rowsfrom */ - 0, /* field[0] = lateral */ - 1, /* field[1] = ordinality */ -}; -static const ProtobufCIntRange pg_query__range_function__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 6 } -}; -const ProtobufCMessageDescriptor pg_query__range_function__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeFunction", - "RangeFunction", - "PgQuery__RangeFunction", - "pg_query", - sizeof(PgQuery__RangeFunction), - 6, - pg_query__range_function__field_descriptors, - pg_query__range_function__field_indices_by_name, - 1, pg_query__range_function__number_ranges, - (ProtobufCMessageInit) pg_query__range_function__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__range_table_func__field_descriptors[7] = -{ { - "lateral", - 1, + "output", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFunc, lateral), - NULL, + offsetof(PgQuery__JsonFuncExpr, output), + &pg_query__json_output__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "docexpr", - 2, + "on_empty", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFunc, docexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonFuncExpr, on_empty), + &pg_query__json_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rowexpr", - 3, + "on_error", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFunc, rowexpr), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "namespaces", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTableFunc, n_namespaces), - offsetof(PgQuery__RangeTableFunc, namespaces), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonFuncExpr, on_error), + &pg_query__json_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "columns", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTableFunc, n_columns), - offsetof(PgQuery__RangeTableFunc, columns), - &pg_query__node__descriptor, + "wrapper", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonFuncExpr, wrapper), + &pg_query__json_wrapper__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "alias", - 6, + "quotes", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFunc, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__JsonFuncExpr, quotes), + &pg_query__json_quotes__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 7, + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFunc, location), + offsetof(PgQuery__JsonFuncExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__range_table_func__field_indices_by_name[] = { - 5, /* field[5] = alias */ - 4, /* field[4] = columns */ - 1, /* field[1] = docexpr */ - 0, /* field[0] = lateral */ - 6, /* field[6] = location */ - 3, /* field[3] = namespaces */ - 2, /* field[2] = rowexpr */ +static const unsigned pg_query__json_func_expr__field_indices_by_name[] = { + 1, /* field[1] = column_name */ + 2, /* field[2] = context_item */ + 10, /* field[10] = location */ + 6, /* field[6] = on_empty */ + 7, /* field[7] = on_error */ + 0, /* field[0] = op */ + 5, /* field[5] = output */ + 4, /* field[4] = passing */ + 3, /* field[3] = pathspec */ + 9, /* field[9] = quotes */ + 8, /* field[8] = wrapper */ }; -static const ProtobufCIntRange pg_query__range_table_func__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_func_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 11 } }; -const ProtobufCMessageDescriptor pg_query__range_table_func__descriptor = +const ProtobufCMessageDescriptor pg_query__json_func_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeTableFunc", - "RangeTableFunc", - "PgQuery__RangeTableFunc", + "pg_query.JsonFuncExpr", + "JsonFuncExpr", + "PgQuery__JsonFuncExpr", "pg_query", - sizeof(PgQuery__RangeTableFunc), - 7, - pg_query__range_table_func__field_descriptors, - pg_query__range_table_func__field_indices_by_name, - 1, pg_query__range_table_func__number_ranges, - (ProtobufCMessageInit) pg_query__range_table_func__init, + sizeof(PgQuery__JsonFuncExpr), + 11, + pg_query__json_func_expr__field_descriptors, + pg_query__json_func_expr__field_indices_by_name, + 1, pg_query__json_func_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_func_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__range_table_func_col__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__json_table_path_spec__field_descriptors[4] = { { - "colname", + "string", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, colname), + offsetof(PgQuery__JsonTablePathSpec, string), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", + "name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__JsonTablePathSpec, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "for_ordinality", + "name_location", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, for_ordinality), + offsetof(PgQuery__JsonTablePathSpec, name_location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_not_null", + "location", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, is_not_null), + offsetof(PgQuery__JsonTablePathSpec, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__json_table_path_spec__field_indices_by_name[] = { + 3, /* field[3] = location */ + 1, /* field[1] = name */ + 2, /* field[2] = name_location */ + 0, /* field[0] = string */ +}; +static const ProtobufCIntRange pg_query__json_table_path_spec__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__json_table_path_spec__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonTablePathSpec", + "JsonTablePathSpec", + "PgQuery__JsonTablePathSpec", + "pg_query", + sizeof(PgQuery__JsonTablePathSpec), + 4, + pg_query__json_table_path_spec__field_descriptors, + pg_query__json_table_path_spec__field_indices_by_name, + 1, pg_query__json_table_path_spec__number_ranges, + (ProtobufCMessageInit) pg_query__json_table_path_spec__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_table__field_descriptors[8] = +{ { - "colexpr", - 5, + "context_item", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, colexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonTable, context_item), + &pg_query__json_value_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coldefexpr", - 6, + "pathspec", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, coldefexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonTable, pathspec), + &pg_query__json_table_path_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableFuncCol, location), - NULL, + "passing", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__JsonTable, n_passing), + offsetof(PgQuery__JsonTable, passing), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__range_table_func_col__field_indices_by_name[] = { - 5, /* field[5] = coldefexpr */ - 4, /* field[4] = colexpr */ - 0, /* field[0] = colname */ - 2, /* field[2] = for_ordinality */ - 3, /* field[3] = is_not_null */ - 6, /* field[6] = location */ - 1, /* field[1] = type_name */ -}; -static const ProtobufCIntRange pg_query__range_table_func_col__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor pg_query__range_table_func_col__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeTableFuncCol", - "RangeTableFuncCol", - "PgQuery__RangeTableFuncCol", - "pg_query", - sizeof(PgQuery__RangeTableFuncCol), - 7, - pg_query__range_table_func_col__field_descriptors, - pg_query__range_table_func_col__field_indices_by_name, - 1, pg_query__range_table_func_col__number_ranges, - (ProtobufCMessageInit) pg_query__range_table_func_col__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__range_table_sample__field_descriptors[5] = -{ { - "relation", - 1, - PROTOBUF_C_LABEL_NONE, + "columns", + 4, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableSample, relation), + offsetof(PgQuery__JsonTable, n_columns), + offsetof(PgQuery__JsonTable, columns), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "method", - 2, - PROTOBUF_C_LABEL_REPEATED, + "on_error", + 5, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTableSample, n_method), - offsetof(PgQuery__RangeTableSample, method), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonTable, on_error), + &pg_query__json_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 3, - PROTOBUF_C_LABEL_REPEATED, + "alias", + 6, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTableSample, n_args), - offsetof(PgQuery__RangeTableSample, args), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonTable, alias), + &pg_query__alias__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "repeatable", - 4, + "lateral", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableSample, repeatable), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonTable, lateral), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 5, + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTableSample, location), + offsetof(PgQuery__JsonTable, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__range_table_sample__field_indices_by_name[] = { - 2, /* field[2] = args */ - 4, /* field[4] = location */ - 1, /* field[1] = method */ - 0, /* field[0] = relation */ - 3, /* field[3] = repeatable */ +static const unsigned pg_query__json_table__field_indices_by_name[] = { + 5, /* field[5] = alias */ + 3, /* field[3] = columns */ + 0, /* field[0] = context_item */ + 6, /* field[6] = lateral */ + 7, /* field[7] = location */ + 4, /* field[4] = on_error */ + 2, /* field[2] = passing */ + 1, /* field[1] = pathspec */ }; -static const ProtobufCIntRange pg_query__range_table_sample__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_table__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__range_table_sample__descriptor = +const ProtobufCMessageDescriptor pg_query__json_table__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeTableSample", - "RangeTableSample", - "PgQuery__RangeTableSample", + "pg_query.JsonTable", + "JsonTable", + "PgQuery__JsonTable", "pg_query", - sizeof(PgQuery__RangeTableSample), - 5, - pg_query__range_table_sample__field_descriptors, - pg_query__range_table_sample__field_indices_by_name, - 1, pg_query__range_table_sample__number_ranges, - (ProtobufCMessageInit) pg_query__range_table_sample__init, + sizeof(PgQuery__JsonTable), + 8, + pg_query__json_table__field_descriptors, + pg_query__json_table__field_indices_by_name, + 1, pg_query__json_table__number_ranges, + (ProtobufCMessageInit) pg_query__json_table__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__column_def__field_descriptors[19] = +static const ProtobufCFieldDescriptor pg_query__json_table_column__field_descriptors[11] = { { - "colname", + "coltype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, colname), + offsetof(PgQuery__JsonTableColumn, coltype), + &pg_query__json_table_column_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", + "name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__JsonTableColumn, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "compression", + "type_name", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, compression), + offsetof(PgQuery__JsonTableColumn, type_name), + &pg_query__type_name__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inhcount", + "pathspec", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, inhcount), - NULL, + offsetof(PgQuery__JsonTableColumn, pathspec), + &pg_query__json_table_path_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_local", + "format", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, is_local), - NULL, + offsetof(PgQuery__JsonTableColumn, format), + &pg_query__json_format__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_not_null", + "wrapper", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, is_not_null), - NULL, + offsetof(PgQuery__JsonTableColumn, wrapper), + &pg_query__json_wrapper__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_from_type", + "quotes", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, is_from_type), - NULL, + offsetof(PgQuery__JsonTableColumn, quotes), + &pg_query__json_quotes__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "storage", + "columns", 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, storage), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__JsonTableColumn, n_columns), + offsetof(PgQuery__JsonTableColumn, columns), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "storage_name", + "on_empty", 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, storage_name), + offsetof(PgQuery__JsonTableColumn, on_empty), + &pg_query__json_behavior__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "raw_default", + "on_error", 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, raw_default), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonTableColumn, on_error), + &pg_query__json_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cooked_default", + "location", 11, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonTableColumn, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__json_table_column__field_indices_by_name[] = { + 0, /* field[0] = coltype */ + 7, /* field[7] = columns */ + 4, /* field[4] = format */ + 10, /* field[10] = location */ + 1, /* field[1] = name */ + 8, /* field[8] = on_empty */ + 9, /* field[9] = on_error */ + 3, /* field[3] = pathspec */ + 6, /* field[6] = quotes */ + 2, /* field[2] = type_name */ + 5, /* field[5] = wrapper */ +}; +static const ProtobufCIntRange pg_query__json_table_column__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 11 } +}; +const ProtobufCMessageDescriptor pg_query__json_table_column__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonTableColumn", + "JsonTableColumn", + "PgQuery__JsonTableColumn", + "pg_query", + sizeof(PgQuery__JsonTableColumn), + 11, + pg_query__json_table_column__field_descriptors, + pg_query__json_table_column__field_indices_by_name, + 1, pg_query__json_table_column__number_ranges, + (ProtobufCMessageInit) pg_query__json_table_column__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_key_value__field_descriptors[2] = +{ + { + "key", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, cooked_default), + offsetof(PgQuery__JsonKeyValue, key), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "identity", - 12, + "value", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, identity), + offsetof(PgQuery__JsonKeyValue, value), + &pg_query__json_value_expr__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__json_key_value__field_indices_by_name[] = { + 0, /* field[0] = key */ + 1, /* field[1] = value */ +}; +static const ProtobufCIntRange pg_query__json_key_value__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__json_key_value__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonKeyValue", + "JsonKeyValue", + "PgQuery__JsonKeyValue", + "pg_query", + sizeof(PgQuery__JsonKeyValue), + 2, + pg_query__json_key_value__field_descriptors, + pg_query__json_key_value__field_indices_by_name, + 1, pg_query__json_key_value__number_ranges, + (ProtobufCMessageInit) pg_query__json_key_value__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_parse_expr__field_descriptors[4] = +{ { - "identity_sequence", - 13, + "expr", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, identity_sequence), - &pg_query__range_var__descriptor, + offsetof(PgQuery__JsonParseExpr, expr), + &pg_query__json_value_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "generated", - 14, + "output", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, generated), + offsetof(PgQuery__JsonParseExpr, output), + &pg_query__json_output__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coll_clause", - 15, + "unique_keys", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, coll_clause), - &pg_query__collate_clause__descriptor, + offsetof(PgQuery__JsonParseExpr, unique_keys), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coll_oid", - 16, + "location", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, coll_oid), + offsetof(PgQuery__JsonParseExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__json_parse_expr__field_indices_by_name[] = { + 0, /* field[0] = expr */ + 3, /* field[3] = location */ + 1, /* field[1] = output */ + 2, /* field[2] = unique_keys */ +}; +static const ProtobufCIntRange pg_query__json_parse_expr__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__json_parse_expr__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonParseExpr", + "JsonParseExpr", + "PgQuery__JsonParseExpr", + "pg_query", + sizeof(PgQuery__JsonParseExpr), + 4, + pg_query__json_parse_expr__field_descriptors, + pg_query__json_parse_expr__field_indices_by_name, + 1, pg_query__json_parse_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_parse_expr__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_scalar_expr__field_descriptors[3] = +{ { - "constraints", - 17, - PROTOBUF_C_LABEL_REPEATED, + "expr", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ColumnDef, n_constraints), - offsetof(PgQuery__ColumnDef, constraints), + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonScalarExpr, expr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fdwoptions", - 18, - PROTOBUF_C_LABEL_REPEATED, + "output", + 2, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ColumnDef, n_fdwoptions), - offsetof(PgQuery__ColumnDef, fdwoptions), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonScalarExpr, output), + &pg_query__json_output__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "location", - 19, + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ColumnDef, location), + offsetof(PgQuery__JsonScalarExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__column_def__field_indices_by_name[] = { - 14, /* field[14] = coll_clause */ - 15, /* field[15] = coll_oid */ - 0, /* field[0] = colname */ - 2, /* field[2] = compression */ - 16, /* field[16] = constraints */ - 10, /* field[10] = cooked_default */ - 17, /* field[17] = fdwoptions */ - 13, /* field[13] = generated */ - 11, /* field[11] = identity */ - 12, /* field[12] = identity_sequence */ - 3, /* field[3] = inhcount */ - 6, /* field[6] = is_from_type */ - 4, /* field[4] = is_local */ - 5, /* field[5] = is_not_null */ - 18, /* field[18] = location */ - 9, /* field[9] = raw_default */ - 7, /* field[7] = storage */ - 8, /* field[8] = storage_name */ - 1, /* field[1] = type_name */ +static const unsigned pg_query__json_scalar_expr__field_indices_by_name[] = { + 0, /* field[0] = expr */ + 2, /* field[2] = location */ + 1, /* field[1] = output */ }; -static const ProtobufCIntRange pg_query__column_def__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_scalar_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 19 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__column_def__descriptor = +const ProtobufCMessageDescriptor pg_query__json_scalar_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ColumnDef", - "ColumnDef", - "PgQuery__ColumnDef", - "pg_query", - sizeof(PgQuery__ColumnDef), - 19, - pg_query__column_def__field_descriptors, - pg_query__column_def__field_indices_by_name, - 1, pg_query__column_def__number_ranges, - (ProtobufCMessageInit) pg_query__column_def__init, + "pg_query.JsonScalarExpr", + "JsonScalarExpr", + "PgQuery__JsonScalarExpr", + "pg_query", + sizeof(PgQuery__JsonScalarExpr), + 3, + pg_query__json_scalar_expr__field_descriptors, + pg_query__json_scalar_expr__field_indices_by_name, + 1, pg_query__json_scalar_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_scalar_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__table_like_clause__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__json_serialize_expr__field_descriptors[3] = { { - "relation", + "expr", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TableLikeClause, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__JsonSerializeExpr, expr), + &pg_query__json_value_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "output", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TableLikeClause, options), - NULL, + offsetof(PgQuery__JsonSerializeExpr, output), + &pg_query__json_output__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation_oid", + "location", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TableLikeClause, relation_oid), + offsetof(PgQuery__JsonSerializeExpr, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__table_like_clause__field_indices_by_name[] = { - 1, /* field[1] = options */ - 0, /* field[0] = relation */ - 2, /* field[2] = relation_oid */ +static const unsigned pg_query__json_serialize_expr__field_indices_by_name[] = { + 0, /* field[0] = expr */ + 2, /* field[2] = location */ + 1, /* field[1] = output */ }; -static const ProtobufCIntRange pg_query__table_like_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_serialize_expr__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__table_like_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__json_serialize_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TableLikeClause", - "TableLikeClause", - "PgQuery__TableLikeClause", + "pg_query.JsonSerializeExpr", + "JsonSerializeExpr", + "PgQuery__JsonSerializeExpr", "pg_query", - sizeof(PgQuery__TableLikeClause), + sizeof(PgQuery__JsonSerializeExpr), 3, - pg_query__table_like_clause__field_descriptors, - pg_query__table_like_clause__field_indices_by_name, - 1, pg_query__table_like_clause__number_ranges, - (ProtobufCMessageInit) pg_query__table_like_clause__init, + pg_query__json_serialize_expr__field_descriptors, + pg_query__json_serialize_expr__field_indices_by_name, + 1, pg_query__json_serialize_expr__number_ranges, + (ProtobufCMessageInit) pg_query__json_serialize_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__index_elem__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__json_object_constructor__field_descriptors[5] = { { - "name", + "exprs", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__IndexElem, name), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__JsonObjectConstructor, n_exprs), + offsetof(PgQuery__JsonObjectConstructor, exprs), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "output", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexElem, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonObjectConstructor, output), + &pg_query__json_output__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "indexcolname", + "absent_on_null", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexElem, indexcolname), + offsetof(PgQuery__JsonObjectConstructor, absent_on_null), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collation", + "unique", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexElem, n_collation), - offsetof(PgQuery__IndexElem, collation), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonObjectConstructor, unique), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opclass", + "location", 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonObjectConstructor, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__json_object_constructor__field_indices_by_name[] = { + 2, /* field[2] = absent_on_null */ + 0, /* field[0] = exprs */ + 4, /* field[4] = location */ + 1, /* field[1] = output */ + 3, /* field[3] = unique */ +}; +static const ProtobufCIntRange pg_query__json_object_constructor__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__json_object_constructor__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.JsonObjectConstructor", + "JsonObjectConstructor", + "PgQuery__JsonObjectConstructor", + "pg_query", + sizeof(PgQuery__JsonObjectConstructor), + 5, + pg_query__json_object_constructor__field_descriptors, + pg_query__json_object_constructor__field_indices_by_name, + 1, pg_query__json_object_constructor__number_ranges, + (ProtobufCMessageInit) pg_query__json_object_constructor__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__json_array_constructor__field_descriptors[4] = +{ + { + "exprs", + 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexElem, n_opclass), - offsetof(PgQuery__IndexElem, opclass), + offsetof(PgQuery__JsonArrayConstructor, n_exprs), + offsetof(PgQuery__JsonArrayConstructor, exprs), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opclassopts", - 6, - PROTOBUF_C_LABEL_REPEATED, + "output", + 2, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexElem, n_opclassopts), - offsetof(PgQuery__IndexElem, opclassopts), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonArrayConstructor, output), + &pg_query__json_output__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ordering", - 7, + "absent_on_null", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexElem, ordering), - &pg_query__sort_by_dir__descriptor, + offsetof(PgQuery__JsonArrayConstructor, absent_on_null), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nulls_ordering", - 8, + "location", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexElem, nulls_ordering), - &pg_query__sort_by_nulls__descriptor, + offsetof(PgQuery__JsonArrayConstructor, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__index_elem__field_indices_by_name[] = { - 3, /* field[3] = collation */ - 1, /* field[1] = expr */ - 2, /* field[2] = indexcolname */ - 0, /* field[0] = name */ - 7, /* field[7] = nulls_ordering */ - 4, /* field[4] = opclass */ - 5, /* field[5] = opclassopts */ - 6, /* field[6] = ordering */ +static const unsigned pg_query__json_array_constructor__field_indices_by_name[] = { + 2, /* field[2] = absent_on_null */ + 0, /* field[0] = exprs */ + 3, /* field[3] = location */ + 1, /* field[1] = output */ }; -static const ProtobufCIntRange pg_query__index_elem__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_array_constructor__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__index_elem__descriptor = +const ProtobufCMessageDescriptor pg_query__json_array_constructor__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.IndexElem", - "IndexElem", - "PgQuery__IndexElem", + "pg_query.JsonArrayConstructor", + "JsonArrayConstructor", + "PgQuery__JsonArrayConstructor", "pg_query", - sizeof(PgQuery__IndexElem), - 8, - pg_query__index_elem__field_descriptors, - pg_query__index_elem__field_indices_by_name, - 1, pg_query__index_elem__number_ranges, - (ProtobufCMessageInit) pg_query__index_elem__init, + sizeof(PgQuery__JsonArrayConstructor), + 4, + pg_query__json_array_constructor__field_descriptors, + pg_query__json_array_constructor__field_indices_by_name, + 1, pg_query__json_array_constructor__number_ranges, + (ProtobufCMessageInit) pg_query__json_array_constructor__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__def_elem__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__json_array_query_constructor__field_descriptors[5] = { { - "defnamespace", + "query", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DefElem, defnamespace), + offsetof(PgQuery__JsonArrayQueryConstructor, query), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "defname", + "output", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DefElem, defname), + offsetof(PgQuery__JsonArrayQueryConstructor, output), + &pg_query__json_output__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "format", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DefElem, arg), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonArrayQueryConstructor, format), + &pg_query__json_format__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "defaction", + "absent_on_null", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DefElem, defaction), - &pg_query__def_elem_action__descriptor, + offsetof(PgQuery__JsonArrayQueryConstructor, absent_on_null), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -26046,5333 +31855,5632 @@ static const ProtobufCFieldDescriptor pg_query__def_elem__field_descriptors[5] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DefElem, location), + offsetof(PgQuery__JsonArrayQueryConstructor, location), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__def_elem__field_indices_by_name[] = { - 2, /* field[2] = arg */ - 3, /* field[3] = defaction */ - 1, /* field[1] = defname */ - 0, /* field[0] = defnamespace */ +static const unsigned pg_query__json_array_query_constructor__field_indices_by_name[] = { + 3, /* field[3] = absent_on_null */ + 2, /* field[2] = format */ 4, /* field[4] = location */ + 1, /* field[1] = output */ + 0, /* field[0] = query */ }; -static const ProtobufCIntRange pg_query__def_elem__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_array_query_constructor__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__def_elem__descriptor = +const ProtobufCMessageDescriptor pg_query__json_array_query_constructor__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DefElem", - "DefElem", - "PgQuery__DefElem", + "pg_query.JsonArrayQueryConstructor", + "JsonArrayQueryConstructor", + "PgQuery__JsonArrayQueryConstructor", "pg_query", - sizeof(PgQuery__DefElem), + sizeof(PgQuery__JsonArrayQueryConstructor), 5, - pg_query__def_elem__field_descriptors, - pg_query__def_elem__field_indices_by_name, - 1, pg_query__def_elem__number_ranges, - (ProtobufCMessageInit) pg_query__def_elem__init, + pg_query__json_array_query_constructor__field_descriptors, + pg_query__json_array_query_constructor__field_indices_by_name, + 1, pg_query__json_array_query_constructor__number_ranges, + (ProtobufCMessageInit) pg_query__json_array_query_constructor__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__locking_clause__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__json_agg_constructor__field_descriptors[5] = { { - "locked_rels", + "output", 1, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__LockingClause, n_locked_rels), - offsetof(PgQuery__LockingClause, locked_rels), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonAggConstructor, output), + &pg_query__json_output__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "strength", + "agg_filter", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__LockingClause, strength), - &pg_query__lock_clause_strength__descriptor, + offsetof(PgQuery__JsonAggConstructor, agg_filter), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "wait_policy", + "agg_order", 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__JsonAggConstructor, n_agg_order), + offsetof(PgQuery__JsonAggConstructor, agg_order), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "over", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__LockingClause, wait_policy), - &pg_query__lock_wait_policy__descriptor, + offsetof(PgQuery__JsonAggConstructor, over), + &pg_query__window_def__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__JsonAggConstructor, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__locking_clause__field_indices_by_name[] = { - 0, /* field[0] = locked_rels */ - 1, /* field[1] = strength */ - 2, /* field[2] = wait_policy */ +static const unsigned pg_query__json_agg_constructor__field_indices_by_name[] = { + 1, /* field[1] = agg_filter */ + 2, /* field[2] = agg_order */ + 4, /* field[4] = location */ + 0, /* field[0] = output */ + 3, /* field[3] = over */ }; -static const ProtobufCIntRange pg_query__locking_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_agg_constructor__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__locking_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__json_agg_constructor__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.LockingClause", - "LockingClause", - "PgQuery__LockingClause", + "pg_query.JsonAggConstructor", + "JsonAggConstructor", + "PgQuery__JsonAggConstructor", "pg_query", - sizeof(PgQuery__LockingClause), - 3, - pg_query__locking_clause__field_descriptors, - pg_query__locking_clause__field_indices_by_name, - 1, pg_query__locking_clause__number_ranges, - (ProtobufCMessageInit) pg_query__locking_clause__init, + sizeof(PgQuery__JsonAggConstructor), + 5, + pg_query__json_agg_constructor__field_descriptors, + pg_query__json_agg_constructor__field_indices_by_name, + 1, pg_query__json_agg_constructor__number_ranges, + (ProtobufCMessageInit) pg_query__json_agg_constructor__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__xml_serialize__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__json_object_agg__field_descriptors[4] = { { - "xmloption", + "constructor", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlSerialize, xmloption), - &pg_query__xml_option_type__descriptor, + offsetof(PgQuery__JsonObjectAgg, constructor), + &pg_query__json_agg_constructor__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "arg", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlSerialize, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonObjectAgg, arg), + &pg_query__json_key_value__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", + "absent_on_null", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__XmlSerialize, type_name), - &pg_query__type_name__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "indent", - 4, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlSerialize, indent), + offsetof(PgQuery__JsonObjectAgg, absent_on_null), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 5, + "unique", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__XmlSerialize, location), + offsetof(PgQuery__JsonObjectAgg, unique), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__xml_serialize__field_indices_by_name[] = { - 1, /* field[1] = expr */ - 3, /* field[3] = indent */ - 4, /* field[4] = location */ - 2, /* field[2] = type_name */ - 0, /* field[0] = xmloption */ +static const unsigned pg_query__json_object_agg__field_indices_by_name[] = { + 2, /* field[2] = absent_on_null */ + 1, /* field[1] = arg */ + 0, /* field[0] = constructor */ + 3, /* field[3] = unique */ }; -static const ProtobufCIntRange pg_query__xml_serialize__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_object_agg__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__xml_serialize__descriptor = +const ProtobufCMessageDescriptor pg_query__json_object_agg__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.XmlSerialize", - "XmlSerialize", - "PgQuery__XmlSerialize", + "pg_query.JsonObjectAgg", + "JsonObjectAgg", + "PgQuery__JsonObjectAgg", "pg_query", - sizeof(PgQuery__XmlSerialize), - 5, - pg_query__xml_serialize__field_descriptors, - pg_query__xml_serialize__field_indices_by_name, - 1, pg_query__xml_serialize__number_ranges, - (ProtobufCMessageInit) pg_query__xml_serialize__init, + sizeof(PgQuery__JsonObjectAgg), + 4, + pg_query__json_object_agg__field_descriptors, + pg_query__json_object_agg__field_indices_by_name, + 1, pg_query__json_object_agg__number_ranges, + (ProtobufCMessageInit) pg_query__json_object_agg__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__partition_elem__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__json_array_agg__field_descriptors[3] = { { - "name", + "constructor", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionElem, name), + offsetof(PgQuery__JsonArrayAgg, constructor), + &pg_query__json_agg_constructor__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "expr", + "arg", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionElem, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__JsonArrayAgg, arg), + &pg_query__json_value_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "collation", + "absent_on_null", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PartitionElem, n_collation), - offsetof(PgQuery__PartitionElem, collation), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "opclass", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PartitionElem, n_opclass), - offsetof(PgQuery__PartitionElem, opclass), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionElem, location), + offsetof(PgQuery__JsonArrayAgg, absent_on_null), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__partition_elem__field_indices_by_name[] = { - 2, /* field[2] = collation */ - 1, /* field[1] = expr */ - 4, /* field[4] = location */ - 0, /* field[0] = name */ - 3, /* field[3] = opclass */ +static const unsigned pg_query__json_array_agg__field_indices_by_name[] = { + 2, /* field[2] = absent_on_null */ + 1, /* field[1] = arg */ + 0, /* field[0] = constructor */ }; -static const ProtobufCIntRange pg_query__partition_elem__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__json_array_agg__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__partition_elem__descriptor = +const ProtobufCMessageDescriptor pg_query__json_array_agg__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PartitionElem", - "PartitionElem", - "PgQuery__PartitionElem", - "pg_query", - sizeof(PgQuery__PartitionElem), - 5, - pg_query__partition_elem__field_descriptors, - pg_query__partition_elem__field_indices_by_name, - 1, pg_query__partition_elem__number_ranges, - (ProtobufCMessageInit) pg_query__partition_elem__init, + "pg_query.JsonArrayAgg", + "JsonArrayAgg", + "PgQuery__JsonArrayAgg", + "pg_query", + sizeof(PgQuery__JsonArrayAgg), + 3, + pg_query__json_array_agg__field_descriptors, + pg_query__json_array_agg__field_indices_by_name, + 1, pg_query__json_array_agg__number_ranges, + (ProtobufCMessageInit) pg_query__json_array_agg__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__partition_spec__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__raw_stmt__field_descriptors[3] = { { - "strategy", + "stmt", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionSpec, strategy), - &pg_query__partition_strategy__descriptor, + offsetof(PgQuery__RawStmt, stmt), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "part_params", + "stmt_location", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PartitionSpec, n_part_params), - offsetof(PgQuery__PartitionSpec, part_params), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__RawStmt, stmt_location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "stmt_len", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionSpec, location), + offsetof(PgQuery__RawStmt, stmt_len), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__partition_spec__field_indices_by_name[] = { - 2, /* field[2] = location */ - 1, /* field[1] = part_params */ - 0, /* field[0] = strategy */ +static const unsigned pg_query__raw_stmt__field_indices_by_name[] = { + 0, /* field[0] = stmt */ + 2, /* field[2] = stmt_len */ + 1, /* field[1] = stmt_location */ }; -static const ProtobufCIntRange pg_query__partition_spec__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__raw_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__partition_spec__descriptor = +const ProtobufCMessageDescriptor pg_query__raw_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PartitionSpec", - "PartitionSpec", - "PgQuery__PartitionSpec", + "pg_query.RawStmt", + "RawStmt", + "PgQuery__RawStmt", "pg_query", - sizeof(PgQuery__PartitionSpec), + sizeof(PgQuery__RawStmt), 3, - pg_query__partition_spec__field_descriptors, - pg_query__partition_spec__field_indices_by_name, - 1, pg_query__partition_spec__number_ranges, - (ProtobufCMessageInit) pg_query__partition_spec__init, + pg_query__raw_stmt__field_descriptors, + pg_query__raw_stmt__field_indices_by_name, + 1, pg_query__raw_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__raw_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__partition_bound_spec__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__insert_stmt__field_descriptors[7] = { { - "strategy", + "relation", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionBoundSpec, strategy), + offsetof(PgQuery__InsertStmt, relation), + &pg_query__range_var__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_default", + "cols", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionBoundSpec, is_default), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__InsertStmt, n_cols), + offsetof(PgQuery__InsertStmt, cols), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "modulus", + "select_stmt", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionBoundSpec, modulus), - NULL, + offsetof(PgQuery__InsertStmt, select_stmt), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "remainder", + "on_conflict_clause", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionBoundSpec, remainder), - NULL, + offsetof(PgQuery__InsertStmt, on_conflict_clause), + &pg_query__on_conflict_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "listdatums", + "returning_list", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PartitionBoundSpec, n_listdatums), - offsetof(PgQuery__PartitionBoundSpec, listdatums), + offsetof(PgQuery__InsertStmt, n_returning_list), + offsetof(PgQuery__InsertStmt, returning_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lowerdatums", + "with_clause", 6, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PartitionBoundSpec, n_lowerdatums), - offsetof(PgQuery__PartitionBoundSpec, lowerdatums), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__InsertStmt, with_clause), + &pg_query__with_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "upperdatums", + "override", 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PartitionBoundSpec, n_upperdatums), - offsetof(PgQuery__PartitionBoundSpec, upperdatums), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionBoundSpec, location), - NULL, + offsetof(PgQuery__InsertStmt, override), + &pg_query__overriding_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__partition_bound_spec__field_indices_by_name[] = { - 1, /* field[1] = is_default */ - 4, /* field[4] = listdatums */ - 7, /* field[7] = location */ - 5, /* field[5] = lowerdatums */ - 2, /* field[2] = modulus */ - 3, /* field[3] = remainder */ - 0, /* field[0] = strategy */ - 6, /* field[6] = upperdatums */ +static const unsigned pg_query__insert_stmt__field_indices_by_name[] = { + 1, /* field[1] = cols */ + 3, /* field[3] = on_conflict_clause */ + 6, /* field[6] = override */ + 0, /* field[0] = relation */ + 4, /* field[4] = returning_list */ + 2, /* field[2] = select_stmt */ + 5, /* field[5] = with_clause */ }; -static const ProtobufCIntRange pg_query__partition_bound_spec__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__insert_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__partition_bound_spec__descriptor = +const ProtobufCMessageDescriptor pg_query__insert_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PartitionBoundSpec", - "PartitionBoundSpec", - "PgQuery__PartitionBoundSpec", + "pg_query.InsertStmt", + "InsertStmt", + "PgQuery__InsertStmt", "pg_query", - sizeof(PgQuery__PartitionBoundSpec), - 8, - pg_query__partition_bound_spec__field_descriptors, - pg_query__partition_bound_spec__field_indices_by_name, - 1, pg_query__partition_bound_spec__number_ranges, - (ProtobufCMessageInit) pg_query__partition_bound_spec__init, + sizeof(PgQuery__InsertStmt), + 7, + pg_query__insert_stmt__field_descriptors, + pg_query__insert_stmt__field_indices_by_name, + 1, pg_query__insert_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__insert_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__partition_range_datum__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__delete_stmt__field_descriptors[5] = { { - "kind", + "relation", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionRangeDatum, kind), - &pg_query__partition_range_datum_kind__descriptor, + offsetof(PgQuery__DeleteStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "value", + "using_clause", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionRangeDatum, value), + offsetof(PgQuery__DeleteStmt, n_using_clause), + offsetof(PgQuery__DeleteStmt, using_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "where_clause", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionRangeDatum, location), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__partition_range_datum__field_indices_by_name[] = { - 0, /* field[0] = kind */ - 2, /* field[2] = location */ - 1, /* field[1] = value */ -}; -static const ProtobufCIntRange pg_query__partition_range_datum__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__partition_range_datum__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PartitionRangeDatum", - "PartitionRangeDatum", - "PgQuery__PartitionRangeDatum", - "pg_query", - sizeof(PgQuery__PartitionRangeDatum), - 3, - pg_query__partition_range_datum__field_descriptors, - pg_query__partition_range_datum__field_indices_by_name, - 1, pg_query__partition_range_datum__number_ranges, - (ProtobufCMessageInit) pg_query__partition_range_datum__init, - NULL,NULL,NULL /* reserved[123] */ -}; -#define pg_query__single_partition_spec__field_descriptors NULL -#define pg_query__single_partition_spec__field_indices_by_name NULL -#define pg_query__single_partition_spec__number_ranges NULL -const ProtobufCMessageDescriptor pg_query__single_partition_spec__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SinglePartitionSpec", - "SinglePartitionSpec", - "PgQuery__SinglePartitionSpec", - "pg_query", - sizeof(PgQuery__SinglePartitionSpec), - 0, - pg_query__single_partition_spec__field_descriptors, - pg_query__single_partition_spec__field_indices_by_name, - 0, pg_query__single_partition_spec__number_ranges, - (ProtobufCMessageInit) pg_query__single_partition_spec__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__partition_cmd__field_descriptors[3] = -{ - { - "name", - 1, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionCmd, name), - &pg_query__range_var__descriptor, + offsetof(PgQuery__DeleteStmt, where_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "bound", - 2, - PROTOBUF_C_LABEL_NONE, + "returning_list", + 4, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionCmd, bound), - &pg_query__partition_bound_spec__descriptor, + offsetof(PgQuery__DeleteStmt, n_returning_list), + offsetof(PgQuery__DeleteStmt, returning_list), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "concurrent", - 3, + "with_clause", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__PartitionCmd, concurrent), - NULL, + offsetof(PgQuery__DeleteStmt, with_clause), + &pg_query__with_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__partition_cmd__field_indices_by_name[] = { - 1, /* field[1] = bound */ - 2, /* field[2] = concurrent */ - 0, /* field[0] = name */ +static const unsigned pg_query__delete_stmt__field_indices_by_name[] = { + 0, /* field[0] = relation */ + 3, /* field[3] = returning_list */ + 1, /* field[1] = using_clause */ + 2, /* field[2] = where_clause */ + 4, /* field[4] = with_clause */ }; -static const ProtobufCIntRange pg_query__partition_cmd__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__delete_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__partition_cmd__descriptor = +const ProtobufCMessageDescriptor pg_query__delete_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PartitionCmd", - "PartitionCmd", - "PgQuery__PartitionCmd", + "pg_query.DeleteStmt", + "DeleteStmt", + "PgQuery__DeleteStmt", "pg_query", - sizeof(PgQuery__PartitionCmd), - 3, - pg_query__partition_cmd__field_descriptors, - pg_query__partition_cmd__field_indices_by_name, - 1, pg_query__partition_cmd__number_ranges, - (ProtobufCMessageInit) pg_query__partition_cmd__init, + sizeof(PgQuery__DeleteStmt), + 5, + pg_query__delete_stmt__field_descriptors, + pg_query__delete_stmt__field_indices_by_name, + 1, pg_query__delete_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__delete_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__range_tbl_entry__field_descriptors[32] = +static const ProtobufCFieldDescriptor pg_query__update_stmt__field_descriptors[6] = { { - "alias", + "relation", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__UpdateStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "eref", + "target_list", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, eref), - &pg_query__alias__descriptor, + offsetof(PgQuery__UpdateStmt, n_target_list), + offsetof(PgQuery__UpdateStmt, target_list), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rtekind", + "where_clause", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, rtekind), - &pg_query__rtekind__descriptor, + offsetof(PgQuery__UpdateStmt, where_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relid", + "from_clause", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, relid), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__UpdateStmt, n_from_clause), + offsetof(PgQuery__UpdateStmt, from_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inh", + "returning_list", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, inh), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__UpdateStmt, n_returning_list), + offsetof(PgQuery__UpdateStmt, returning_list), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relkind", + "with_clause", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, relkind), + offsetof(PgQuery__UpdateStmt, with_clause), + &pg_query__with_clause__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__update_stmt__field_indices_by_name[] = { + 3, /* field[3] = from_clause */ + 0, /* field[0] = relation */ + 4, /* field[4] = returning_list */ + 1, /* field[1] = target_list */ + 2, /* field[2] = where_clause */ + 5, /* field[5] = with_clause */ +}; +static const ProtobufCIntRange pg_query__update_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__update_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.UpdateStmt", + "UpdateStmt", + "PgQuery__UpdateStmt", + "pg_query", + sizeof(PgQuery__UpdateStmt), + 6, + pg_query__update_stmt__field_descriptors, + pg_query__update_stmt__field_indices_by_name, + 1, pg_query__update_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__update_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__merge_stmt__field_descriptors[6] = +{ { - "rellockmode", - 7, + "relation", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, rellockmode), - NULL, + offsetof(PgQuery__MergeStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "perminfoindex", - 8, + "source_relation", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, perminfoindex), - NULL, + offsetof(PgQuery__MergeStmt, source_relation), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tablesample", - 9, + "join_condition", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, tablesample), - &pg_query__table_sample_clause__descriptor, + offsetof(PgQuery__MergeStmt, join_condition), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "subquery", - 10, - PROTOBUF_C_LABEL_NONE, + "merge_when_clauses", + 4, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, subquery), - &pg_query__query__descriptor, + offsetof(PgQuery__MergeStmt, n_merge_when_clauses), + offsetof(PgQuery__MergeStmt, merge_when_clauses), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "security_barrier", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, security_barrier), - NULL, + "returning_list", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__MergeStmt, n_returning_list), + offsetof(PgQuery__MergeStmt, returning_list), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "jointype", - 12, + "with_clause", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, jointype), - &pg_query__join_type__descriptor, + offsetof(PgQuery__MergeStmt, with_clause), + &pg_query__with_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__merge_stmt__field_indices_by_name[] = { + 2, /* field[2] = join_condition */ + 3, /* field[3] = merge_when_clauses */ + 0, /* field[0] = relation */ + 4, /* field[4] = returning_list */ + 1, /* field[1] = source_relation */ + 5, /* field[5] = with_clause */ +}; +static const ProtobufCIntRange pg_query__merge_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__merge_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.MergeStmt", + "MergeStmt", + "PgQuery__MergeStmt", + "pg_query", + sizeof(PgQuery__MergeStmt), + 6, + pg_query__merge_stmt__field_descriptors, + pg_query__merge_stmt__field_indices_by_name, + 1, pg_query__merge_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__merge_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__select_stmt__field_descriptors[20] = +{ { - "joinmergedcols", - 13, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, joinmergedcols), - NULL, + "distinct_clause", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SelectStmt, n_distinct_clause), + offsetof(PgQuery__SelectStmt, distinct_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "joinaliasvars", - 14, - PROTOBUF_C_LABEL_REPEATED, + "into_clause", + 2, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_joinaliasvars), - offsetof(PgQuery__RangeTblEntry, joinaliasvars), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SelectStmt, into_clause), + &pg_query__into_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "joinleftcols", - 15, + "target_list", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_joinleftcols), - offsetof(PgQuery__RangeTblEntry, joinleftcols), + offsetof(PgQuery__SelectStmt, n_target_list), + offsetof(PgQuery__SelectStmt, target_list), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "joinrightcols", - 16, + "from_clause", + 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_joinrightcols), - offsetof(PgQuery__RangeTblEntry, joinrightcols), + offsetof(PgQuery__SelectStmt, n_from_clause), + offsetof(PgQuery__SelectStmt, from_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "join_using_alias", - 17, + "where_clause", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, join_using_alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__SelectStmt, where_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "functions", - 18, + "group_clause", + 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_functions), - offsetof(PgQuery__RangeTblEntry, functions), + offsetof(PgQuery__SelectStmt, n_group_clause), + offsetof(PgQuery__SelectStmt, group_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcordinality", - 19, + "group_distinct", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, funcordinality), + offsetof(PgQuery__SelectStmt, group_distinct), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tablefunc", - 20, + "having_clause", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, tablefunc), - &pg_query__table_func__descriptor, + offsetof(PgQuery__SelectStmt, having_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "values_lists", - 21, + "window_clause", + 9, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_values_lists), - offsetof(PgQuery__RangeTblEntry, values_lists), + offsetof(PgQuery__SelectStmt, n_window_clause), + offsetof(PgQuery__SelectStmt, window_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctename", - 22, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, ctename), + "values_lists", + 10, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SelectStmt, n_values_lists), + offsetof(PgQuery__SelectStmt, values_lists), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctelevelsup", - 23, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, ctelevelsup), - NULL, + "sort_clause", + 11, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SelectStmt, n_sort_clause), + offsetof(PgQuery__SelectStmt, sort_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "self_reference", - 24, + "limit_offset", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, self_reference), - NULL, + offsetof(PgQuery__SelectStmt, limit_offset), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coltypes", - 25, - PROTOBUF_C_LABEL_REPEATED, + "limit_count", + 13, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_coltypes), - offsetof(PgQuery__RangeTblEntry, coltypes), + 0, /* quantifier_offset */ + offsetof(PgQuery__SelectStmt, limit_count), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coltypmods", - 26, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_coltypmods), - offsetof(PgQuery__RangeTblEntry, coltypmods), - &pg_query__node__descriptor, + "limit_option", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__SelectStmt, limit_option), + &pg_query__limit_option__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "colcollations", - 27, + "locking_clause", + 15, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_colcollations), - offsetof(PgQuery__RangeTblEntry, colcollations), + offsetof(PgQuery__SelectStmt, n_locking_clause), + offsetof(PgQuery__SelectStmt, locking_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "enrname", - 28, + "with_clause", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, enrname), + offsetof(PgQuery__SelectStmt, with_clause), + &pg_query__with_clause__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "enrtuples", - 29, + "op", + 17, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_DOUBLE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, enrtuples), - NULL, + offsetof(PgQuery__SelectStmt, op), + &pg_query__set_operation__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lateral", - 30, + "all", + 18, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, lateral), + offsetof(PgQuery__SelectStmt, all), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "in_from_cl", - 31, + "larg", + 19, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblEntry, in_from_cl), - NULL, + offsetof(PgQuery__SelectStmt, larg), + &pg_query__select_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "security_quals", - 32, - PROTOBUF_C_LABEL_REPEATED, + "rarg", + 20, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblEntry, n_security_quals), - offsetof(PgQuery__RangeTblEntry, security_quals), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__SelectStmt, rarg), + &pg_query__select_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__range_tbl_entry__field_indices_by_name[] = { - 0, /* field[0] = alias */ - 26, /* field[26] = colcollations */ - 24, /* field[24] = coltypes */ - 25, /* field[25] = coltypmods */ - 22, /* field[22] = ctelevelsup */ - 21, /* field[21] = ctename */ - 27, /* field[27] = enrname */ - 28, /* field[28] = enrtuples */ - 1, /* field[1] = eref */ - 18, /* field[18] = funcordinality */ - 17, /* field[17] = functions */ - 30, /* field[30] = in_from_cl */ - 4, /* field[4] = inh */ - 16, /* field[16] = join_using_alias */ - 13, /* field[13] = joinaliasvars */ - 14, /* field[14] = joinleftcols */ - 12, /* field[12] = joinmergedcols */ - 15, /* field[15] = joinrightcols */ - 11, /* field[11] = jointype */ - 29, /* field[29] = lateral */ - 7, /* field[7] = perminfoindex */ - 3, /* field[3] = relid */ - 5, /* field[5] = relkind */ - 6, /* field[6] = rellockmode */ - 2, /* field[2] = rtekind */ - 10, /* field[10] = security_barrier */ - 31, /* field[31] = security_quals */ - 23, /* field[23] = self_reference */ - 9, /* field[9] = subquery */ - 19, /* field[19] = tablefunc */ - 8, /* field[8] = tablesample */ - 20, /* field[20] = values_lists */ +static const unsigned pg_query__select_stmt__field_indices_by_name[] = { + 17, /* field[17] = all */ + 0, /* field[0] = distinct_clause */ + 3, /* field[3] = from_clause */ + 5, /* field[5] = group_clause */ + 6, /* field[6] = group_distinct */ + 7, /* field[7] = having_clause */ + 1, /* field[1] = into_clause */ + 18, /* field[18] = larg */ + 12, /* field[12] = limit_count */ + 11, /* field[11] = limit_offset */ + 13, /* field[13] = limit_option */ + 14, /* field[14] = locking_clause */ + 16, /* field[16] = op */ + 19, /* field[19] = rarg */ + 10, /* field[10] = sort_clause */ + 2, /* field[2] = target_list */ + 9, /* field[9] = values_lists */ + 4, /* field[4] = where_clause */ + 8, /* field[8] = window_clause */ + 15, /* field[15] = with_clause */ }; -static const ProtobufCIntRange pg_query__range_tbl_entry__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__select_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 32 } + { 0, 20 } }; -const ProtobufCMessageDescriptor pg_query__range_tbl_entry__descriptor = +const ProtobufCMessageDescriptor pg_query__select_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeTblEntry", - "RangeTblEntry", - "PgQuery__RangeTblEntry", + "pg_query.SelectStmt", + "SelectStmt", + "PgQuery__SelectStmt", "pg_query", - sizeof(PgQuery__RangeTblEntry), - 32, - pg_query__range_tbl_entry__field_descriptors, - pg_query__range_tbl_entry__field_indices_by_name, - 1, pg_query__range_tbl_entry__number_ranges, - (ProtobufCMessageInit) pg_query__range_tbl_entry__init, + sizeof(PgQuery__SelectStmt), + 20, + pg_query__select_stmt__field_descriptors, + pg_query__select_stmt__field_indices_by_name, + 1, pg_query__select_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__select_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__rtepermission_info__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__set_operation_stmt__field_descriptors[8] = { { - "relid", + "op", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__RTEPermissionInfo, relid), - NULL, + offsetof(PgQuery__SetOperationStmt, op), + &pg_query__set_operation__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inh", + "all", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RTEPermissionInfo, inh), + offsetof(PgQuery__SetOperationStmt, all), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "required_perms", + "larg", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RTEPermissionInfo, required_perms), - NULL, + offsetof(PgQuery__SetOperationStmt, larg), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "check_as_user", + "rarg", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RTEPermissionInfo, check_as_user), - NULL, + offsetof(PgQuery__SetOperationStmt, rarg), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "selected_cols", + "col_types", 5, PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(PgQuery__RTEPermissionInfo, n_selected_cols), - offsetof(PgQuery__RTEPermissionInfo, selected_cols), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SetOperationStmt, n_col_types), + offsetof(PgQuery__SetOperationStmt, col_types), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inserted_cols", + "col_typmods", 6, PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(PgQuery__RTEPermissionInfo, n_inserted_cols), - offsetof(PgQuery__RTEPermissionInfo, inserted_cols), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SetOperationStmt, n_col_typmods), + offsetof(PgQuery__SetOperationStmt, col_typmods), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "updated_cols", + "col_collations", 7, PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(PgQuery__RTEPermissionInfo, n_updated_cols), - offsetof(PgQuery__RTEPermissionInfo, updated_cols), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SetOperationStmt, n_col_collations), + offsetof(PgQuery__SetOperationStmt, col_collations), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "group_clauses", + 8, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SetOperationStmt, n_group_clauses), + offsetof(PgQuery__SetOperationStmt, group_clauses), + &pg_query__node__descriptor, NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__rtepermission_info__field_indices_by_name[] = { - 3, /* field[3] = check_as_user */ - 1, /* field[1] = inh */ - 5, /* field[5] = inserted_cols */ - 0, /* field[0] = relid */ - 2, /* field[2] = required_perms */ - 4, /* field[4] = selected_cols */ - 6, /* field[6] = updated_cols */ +static const unsigned pg_query__set_operation_stmt__field_indices_by_name[] = { + 1, /* field[1] = all */ + 6, /* field[6] = col_collations */ + 4, /* field[4] = col_types */ + 5, /* field[5] = col_typmods */ + 7, /* field[7] = group_clauses */ + 2, /* field[2] = larg */ + 0, /* field[0] = op */ + 3, /* field[3] = rarg */ }; -static const ProtobufCIntRange pg_query__rtepermission_info__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__set_operation_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__rtepermission_info__descriptor = +const ProtobufCMessageDescriptor pg_query__set_operation_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RTEPermissionInfo", - "RTEPermissionInfo", - "PgQuery__RTEPermissionInfo", + "pg_query.SetOperationStmt", + "SetOperationStmt", + "PgQuery__SetOperationStmt", "pg_query", - sizeof(PgQuery__RTEPermissionInfo), - 7, - pg_query__rtepermission_info__field_descriptors, - pg_query__rtepermission_info__field_indices_by_name, - 1, pg_query__rtepermission_info__number_ranges, - (ProtobufCMessageInit) pg_query__rtepermission_info__init, + sizeof(PgQuery__SetOperationStmt), + 8, + pg_query__set_operation_stmt__field_descriptors, + pg_query__set_operation_stmt__field_indices_by_name, + 1, pg_query__set_operation_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__set_operation_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__range_tbl_function__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__return_stmt__field_descriptors[1] = { { - "funcexpr", + "returnval", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblFunction, funcexpr), + offsetof(PgQuery__ReturnStmt, returnval), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__return_stmt__field_indices_by_name[] = { + 0, /* field[0] = returnval */ +}; +static const ProtobufCIntRange pg_query__return_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__return_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ReturnStmt", + "ReturnStmt", + "PgQuery__ReturnStmt", + "pg_query", + sizeof(PgQuery__ReturnStmt), + 1, + pg_query__return_stmt__field_descriptors, + pg_query__return_stmt__field_indices_by_name, + 1, pg_query__return_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__return_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__plassign_stmt__field_descriptors[5] = +{ { - "funccolcount", - 2, + "name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RangeTblFunction, funccolcount), - NULL, + offsetof(PgQuery__PLAssignStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funccolnames", - 3, + "indirection", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblFunction, n_funccolnames), - offsetof(PgQuery__RangeTblFunction, funccolnames), + offsetof(PgQuery__PLAssignStmt, n_indirection), + offsetof(PgQuery__PLAssignStmt, indirection), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funccoltypes", + "nnames", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLAssignStmt, nnames), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "val", 4, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblFunction, n_funccoltypes), - offsetof(PgQuery__RangeTblFunction, funccoltypes), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLAssignStmt, val), + &pg_query__select_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funccoltypmods", + "location", 5, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLAssignStmt, location), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__plassign_stmt__field_indices_by_name[] = { + 1, /* field[1] = indirection */ + 4, /* field[4] = location */ + 0, /* field[0] = name */ + 2, /* field[2] = nnames */ + 3, /* field[3] = val */ +}; +static const ProtobufCIntRange pg_query__plassign_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__plassign_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.PLAssignStmt", + "PLAssignStmt", + "PgQuery__PLAssignStmt", + "pg_query", + sizeof(PgQuery__PLAssignStmt), + 5, + pg_query__plassign_stmt__field_descriptors, + pg_query__plassign_stmt__field_indices_by_name, + 1, pg_query__plassign_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__plassign_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_schema_stmt__field_descriptors[4] = +{ + { + "schemaname", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateSchemaStmt, schemaname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "authrole", + 2, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblFunction, n_funccoltypmods), - offsetof(PgQuery__RangeTblFunction, funccoltypmods), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateSchemaStmt, authrole), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funccolcollations", - 6, + "schema_elts", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RangeTblFunction, n_funccolcollations), - offsetof(PgQuery__RangeTblFunction, funccolcollations), + offsetof(PgQuery__CreateSchemaStmt, n_schema_elts), + offsetof(PgQuery__CreateSchemaStmt, schema_elts), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcparams", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(PgQuery__RangeTblFunction, n_funcparams), - offsetof(PgQuery__RangeTblFunction, funcparams), + "if_not_exists", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateSchemaStmt, if_not_exists), NULL, NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__range_tbl_function__field_indices_by_name[] = { - 5, /* field[5] = funccolcollations */ - 1, /* field[1] = funccolcount */ - 2, /* field[2] = funccolnames */ - 3, /* field[3] = funccoltypes */ - 4, /* field[4] = funccoltypmods */ - 0, /* field[0] = funcexpr */ - 6, /* field[6] = funcparams */ +static const unsigned pg_query__create_schema_stmt__field_indices_by_name[] = { + 1, /* field[1] = authrole */ + 3, /* field[3] = if_not_exists */ + 2, /* field[2] = schema_elts */ + 0, /* field[0] = schemaname */ }; -static const ProtobufCIntRange pg_query__range_tbl_function__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_schema_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__range_tbl_function__descriptor = +const ProtobufCMessageDescriptor pg_query__create_schema_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RangeTblFunction", - "RangeTblFunction", - "PgQuery__RangeTblFunction", + "pg_query.CreateSchemaStmt", + "CreateSchemaStmt", + "PgQuery__CreateSchemaStmt", "pg_query", - sizeof(PgQuery__RangeTblFunction), - 7, - pg_query__range_tbl_function__field_descriptors, - pg_query__range_tbl_function__field_indices_by_name, - 1, pg_query__range_tbl_function__number_ranges, - (ProtobufCMessageInit) pg_query__range_tbl_function__init, + sizeof(PgQuery__CreateSchemaStmt), + 4, + pg_query__create_schema_stmt__field_descriptors, + pg_query__create_schema_stmt__field_indices_by_name, + 1, pg_query__create_schema_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_schema_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__table_sample_clause__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_table_stmt__field_descriptors[4] = { { - "tsmhandler", + "relation", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TableSampleClause, tsmhandler), - NULL, + offsetof(PgQuery__AlterTableStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "cmds", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TableSampleClause, n_args), - offsetof(PgQuery__TableSampleClause, args), + offsetof(PgQuery__AlterTableStmt, n_cmds), + offsetof(PgQuery__AlterTableStmt, cmds), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "repeatable", + "objtype", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__TableSampleClause, repeatable), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterTableStmt, objtype), + &pg_query__object_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "missing_ok", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterTableStmt, missing_ok), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__table_sample_clause__field_indices_by_name[] = { - 1, /* field[1] = args */ - 2, /* field[2] = repeatable */ - 0, /* field[0] = tsmhandler */ +static const unsigned pg_query__alter_table_stmt__field_indices_by_name[] = { + 1, /* field[1] = cmds */ + 3, /* field[3] = missing_ok */ + 2, /* field[2] = objtype */ + 0, /* field[0] = relation */ }; -static const ProtobufCIntRange pg_query__table_sample_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_table_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__table_sample_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_table_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TableSampleClause", - "TableSampleClause", - "PgQuery__TableSampleClause", + "pg_query.AlterTableStmt", + "AlterTableStmt", + "PgQuery__AlterTableStmt", "pg_query", - sizeof(PgQuery__TableSampleClause), - 3, - pg_query__table_sample_clause__field_descriptors, - pg_query__table_sample_clause__field_indices_by_name, - 1, pg_query__table_sample_clause__number_ranges, - (ProtobufCMessageInit) pg_query__table_sample_clause__init, + sizeof(PgQuery__AlterTableStmt), + 4, + pg_query__alter_table_stmt__field_descriptors, + pg_query__alter_table_stmt__field_indices_by_name, + 1, pg_query__alter_table_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_table_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__with_check_option__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__replica_identity_stmt__field_descriptors[2] = { { - "kind", + "identity_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__WithCheckOption, kind), - &pg_query__wcokind__descriptor, + offsetof(PgQuery__ReplicaIdentityStmt, identity_type), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relname", + "name", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__WithCheckOption, relname), + offsetof(PgQuery__ReplicaIdentityStmt, name), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__replica_identity_stmt__field_indices_by_name[] = { + 0, /* field[0] = identity_type */ + 1, /* field[1] = name */ +}; +static const ProtobufCIntRange pg_query__replica_identity_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__replica_identity_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ReplicaIdentityStmt", + "ReplicaIdentityStmt", + "PgQuery__ReplicaIdentityStmt", + "pg_query", + sizeof(PgQuery__ReplicaIdentityStmt), + 2, + pg_query__replica_identity_stmt__field_descriptors, + pg_query__replica_identity_stmt__field_indices_by_name, + 1, pg_query__replica_identity_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__replica_identity_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_table_cmd__field_descriptors[8] = +{ { - "polname", - 3, + "subtype", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WithCheckOption, polname), + offsetof(PgQuery__AlterTableCmd, subtype), + &pg_query__alter_table_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "qual", - 4, + "name", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__WithCheckOption, qual), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterTableCmd, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cascaded", - 5, + "num", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__WithCheckOption, cascaded), + offsetof(PgQuery__AlterTableCmd, num), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__with_check_option__field_indices_by_name[] = { - 4, /* field[4] = cascaded */ - 0, /* field[0] = kind */ - 2, /* field[2] = polname */ - 3, /* field[3] = qual */ - 1, /* field[1] = relname */ -}; -static const ProtobufCIntRange pg_query__with_check_option__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor pg_query__with_check_option__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.WithCheckOption", - "WithCheckOption", - "PgQuery__WithCheckOption", - "pg_query", - sizeof(PgQuery__WithCheckOption), - 5, - pg_query__with_check_option__field_descriptors, - pg_query__with_check_option__field_indices_by_name, - 1, pg_query__with_check_option__number_ranges, - (ProtobufCMessageInit) pg_query__with_check_option__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__sort_group_clause__field_descriptors[5] = -{ { - "tle_sort_group_ref", - 1, + "newowner", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SortGroupClause, tle_sort_group_ref), - NULL, + offsetof(PgQuery__AlterTableCmd, newowner), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "eqop", - 2, + "def", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SortGroupClause, eqop), - NULL, + offsetof(PgQuery__AlterTableCmd, def), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sortop", - 3, + "behavior", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SortGroupClause, sortop), - NULL, + offsetof(PgQuery__AlterTableCmd, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nulls_first", - 4, + "missing_ok", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SortGroupClause, nulls_first), + offsetof(PgQuery__AlterTableCmd, missing_ok), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "hashable", - 5, + "recurse", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SortGroupClause, hashable), + offsetof(PgQuery__AlterTableCmd, recurse), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__sort_group_clause__field_indices_by_name[] = { - 1, /* field[1] = eqop */ - 4, /* field[4] = hashable */ - 3, /* field[3] = nulls_first */ - 2, /* field[2] = sortop */ - 0, /* field[0] = tle_sort_group_ref */ +static const unsigned pg_query__alter_table_cmd__field_indices_by_name[] = { + 5, /* field[5] = behavior */ + 4, /* field[4] = def */ + 6, /* field[6] = missing_ok */ + 1, /* field[1] = name */ + 3, /* field[3] = newowner */ + 2, /* field[2] = num */ + 7, /* field[7] = recurse */ + 0, /* field[0] = subtype */ }; -static const ProtobufCIntRange pg_query__sort_group_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_table_cmd__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__sort_group_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_table_cmd__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SortGroupClause", - "SortGroupClause", - "PgQuery__SortGroupClause", + "pg_query.AlterTableCmd", + "AlterTableCmd", + "PgQuery__AlterTableCmd", "pg_query", - sizeof(PgQuery__SortGroupClause), - 5, - pg_query__sort_group_clause__field_descriptors, - pg_query__sort_group_clause__field_indices_by_name, - 1, pg_query__sort_group_clause__number_ranges, - (ProtobufCMessageInit) pg_query__sort_group_clause__init, + sizeof(PgQuery__AlterTableCmd), + 8, + pg_query__alter_table_cmd__field_descriptors, + pg_query__alter_table_cmd__field_indices_by_name, + 1, pg_query__alter_table_cmd__number_ranges, + (ProtobufCMessageInit) pg_query__alter_table_cmd__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__grouping_set__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_collation_stmt__field_descriptors[1] = { { - "kind", + "collname", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__GroupingSet, kind), - &pg_query__grouping_set_kind__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "content", - 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GroupingSet, n_content), - offsetof(PgQuery__GroupingSet, content), + offsetof(PgQuery__AlterCollationStmt, n_collname), + offsetof(PgQuery__AlterCollationStmt, collname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "location", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__GroupingSet, location), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, }; -static const unsigned pg_query__grouping_set__field_indices_by_name[] = { - 1, /* field[1] = content */ - 0, /* field[0] = kind */ - 2, /* field[2] = location */ +static const unsigned pg_query__alter_collation_stmt__field_indices_by_name[] = { + 0, /* field[0] = collname */ }; -static const ProtobufCIntRange pg_query__grouping_set__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_collation_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__grouping_set__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_collation_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.GroupingSet", - "GroupingSet", - "PgQuery__GroupingSet", + "pg_query.AlterCollationStmt", + "AlterCollationStmt", + "PgQuery__AlterCollationStmt", "pg_query", - sizeof(PgQuery__GroupingSet), - 3, - pg_query__grouping_set__field_descriptors, - pg_query__grouping_set__field_indices_by_name, - 1, pg_query__grouping_set__number_ranges, - (ProtobufCMessageInit) pg_query__grouping_set__init, + sizeof(PgQuery__AlterCollationStmt), + 1, + pg_query__alter_collation_stmt__field_descriptors, + pg_query__alter_collation_stmt__field_indices_by_name, + 1, pg_query__alter_collation_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_collation_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__window_clause__field_descriptors[14] = +static const ProtobufCFieldDescriptor pg_query__alter_domain_stmt__field_descriptors[6] = { { - "name", + "subtype", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, name), + offsetof(PgQuery__AlterDomainStmt, subtype), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "refname", + "type_name", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, refname), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterDomainStmt, n_type_name), + offsetof(PgQuery__AlterDomainStmt, type_name), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "partition_clause", + "name", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WindowClause, n_partition_clause), - offsetof(PgQuery__WindowClause, partition_clause), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterDomainStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "order_clause", + "def", 4, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WindowClause, n_order_clause), - offsetof(PgQuery__WindowClause, order_clause), + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterDomainStmt, def), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "frame_options", + "behavior", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, frame_options), - NULL, + offsetof(PgQuery__AlterDomainStmt, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "start_offset", + "missing_ok", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, start_offset), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterDomainStmt, missing_ok), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_domain_stmt__field_indices_by_name[] = { + 4, /* field[4] = behavior */ + 3, /* field[3] = def */ + 5, /* field[5] = missing_ok */ + 2, /* field[2] = name */ + 0, /* field[0] = subtype */ + 1, /* field[1] = type_name */ +}; +static const ProtobufCIntRange pg_query__alter_domain_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__alter_domain_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterDomainStmt", + "AlterDomainStmt", + "PgQuery__AlterDomainStmt", + "pg_query", + sizeof(PgQuery__AlterDomainStmt), + 6, + pg_query__alter_domain_stmt__field_descriptors, + pg_query__alter_domain_stmt__field_indices_by_name, + 1, pg_query__alter_domain_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_domain_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__grant_stmt__field_descriptors[9] = +{ { - "end_offset", - 7, + "is_grant", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, end_offset), - &pg_query__node__descriptor, + offsetof(PgQuery__GrantStmt, is_grant), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "start_in_range_func", - 8, + "targtype", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, start_in_range_func), - NULL, + offsetof(PgQuery__GrantStmt, targtype), + &pg_query__grant_target_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "end_in_range_func", - 9, + "objtype", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, end_in_range_func), - NULL, + offsetof(PgQuery__GrantStmt, objtype), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "in_range_coll", - 10, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, in_range_coll), + "objects", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__GrantStmt, n_objects), + offsetof(PgQuery__GrantStmt, objects), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "privileges", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__GrantStmt, n_privileges), + offsetof(PgQuery__GrantStmt, privileges), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "in_range_asc", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, in_range_asc), - NULL, + "grantees", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__GrantStmt, n_grantees), + offsetof(PgQuery__GrantStmt, grantees), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "in_range_nulls_first", - 12, + "grant_option", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, in_range_nulls_first), + offsetof(PgQuery__GrantStmt, grant_option), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "winref", - 13, + "grantor", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, winref), - NULL, + offsetof(PgQuery__GrantStmt, grantor), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "copied_order", - 14, + "behavior", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__WindowClause, copied_order), - NULL, + offsetof(PgQuery__GrantStmt, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__window_clause__field_indices_by_name[] = { - 13, /* field[13] = copied_order */ - 8, /* field[8] = end_in_range_func */ - 6, /* field[6] = end_offset */ - 4, /* field[4] = frame_options */ - 10, /* field[10] = in_range_asc */ - 9, /* field[9] = in_range_coll */ - 11, /* field[11] = in_range_nulls_first */ - 0, /* field[0] = name */ - 3, /* field[3] = order_clause */ - 2, /* field[2] = partition_clause */ - 1, /* field[1] = refname */ - 7, /* field[7] = start_in_range_func */ - 5, /* field[5] = start_offset */ - 12, /* field[12] = winref */ +static const unsigned pg_query__grant_stmt__field_indices_by_name[] = { + 8, /* field[8] = behavior */ + 6, /* field[6] = grant_option */ + 5, /* field[5] = grantees */ + 7, /* field[7] = grantor */ + 0, /* field[0] = is_grant */ + 3, /* field[3] = objects */ + 2, /* field[2] = objtype */ + 4, /* field[4] = privileges */ + 1, /* field[1] = targtype */ }; -static const ProtobufCIntRange pg_query__window_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__grant_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 14 } + { 0, 9 } }; -const ProtobufCMessageDescriptor pg_query__window_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__grant_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.WindowClause", - "WindowClause", - "PgQuery__WindowClause", + "pg_query.GrantStmt", + "GrantStmt", + "PgQuery__GrantStmt", "pg_query", - sizeof(PgQuery__WindowClause), - 14, - pg_query__window_clause__field_descriptors, - pg_query__window_clause__field_indices_by_name, - 1, pg_query__window_clause__number_ranges, - (ProtobufCMessageInit) pg_query__window_clause__init, + sizeof(PgQuery__GrantStmt), + 9, + pg_query__grant_stmt__field_descriptors, + pg_query__grant_stmt__field_indices_by_name, + 1, pg_query__grant_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__grant_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__row_mark_clause__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__object_with_args__field_descriptors[4] = { { - "rti", + "objname", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__RowMarkClause, rti), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ObjectWithArgs, n_objname), + offsetof(PgQuery__ObjectWithArgs, objname), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "strength", + "objargs", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__RowMarkClause, strength), - &pg_query__lock_clause_strength__descriptor, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ObjectWithArgs, n_objargs), + offsetof(PgQuery__ObjectWithArgs, objargs), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "wait_policy", + "objfuncargs", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__RowMarkClause, wait_policy), - &pg_query__lock_wait_policy__descriptor, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ObjectWithArgs, n_objfuncargs), + offsetof(PgQuery__ObjectWithArgs, objfuncargs), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pushed_down", + "args_unspecified", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RowMarkClause, pushed_down), + offsetof(PgQuery__ObjectWithArgs, args_unspecified), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__row_mark_clause__field_indices_by_name[] = { - 3, /* field[3] = pushed_down */ - 0, /* field[0] = rti */ - 1, /* field[1] = strength */ - 2, /* field[2] = wait_policy */ +static const unsigned pg_query__object_with_args__field_indices_by_name[] = { + 3, /* field[3] = args_unspecified */ + 1, /* field[1] = objargs */ + 2, /* field[2] = objfuncargs */ + 0, /* field[0] = objname */ }; -static const ProtobufCIntRange pg_query__row_mark_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__object_with_args__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__row_mark_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__object_with_args__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RowMarkClause", - "RowMarkClause", - "PgQuery__RowMarkClause", + "pg_query.ObjectWithArgs", + "ObjectWithArgs", + "PgQuery__ObjectWithArgs", "pg_query", - sizeof(PgQuery__RowMarkClause), + sizeof(PgQuery__ObjectWithArgs), 4, - pg_query__row_mark_clause__field_descriptors, - pg_query__row_mark_clause__field_indices_by_name, - 1, pg_query__row_mark_clause__number_ranges, - (ProtobufCMessageInit) pg_query__row_mark_clause__init, + pg_query__object_with_args__field_descriptors, + pg_query__object_with_args__field_indices_by_name, + 1, pg_query__object_with_args__number_ranges, + (ProtobufCMessageInit) pg_query__object_with_args__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__with_clause__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__access_priv__field_descriptors[2] = { { - "ctes", + "priv_name", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__WithClause, n_ctes), - offsetof(PgQuery__WithClause, ctes), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "recursive", - 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__WithClause, recursive), - NULL, + offsetof(PgQuery__AccessPriv, priv_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__WithClause, location), - NULL, + "cols", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AccessPriv, n_cols), + offsetof(PgQuery__AccessPriv, cols), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__with_clause__field_indices_by_name[] = { - 0, /* field[0] = ctes */ - 2, /* field[2] = location */ - 1, /* field[1] = recursive */ +static const unsigned pg_query__access_priv__field_indices_by_name[] = { + 1, /* field[1] = cols */ + 0, /* field[0] = priv_name */ }; -static const ProtobufCIntRange pg_query__with_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__access_priv__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__with_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__access_priv__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.WithClause", - "WithClause", - "PgQuery__WithClause", + "pg_query.AccessPriv", + "AccessPriv", + "PgQuery__AccessPriv", "pg_query", - sizeof(PgQuery__WithClause), - 3, - pg_query__with_clause__field_descriptors, - pg_query__with_clause__field_indices_by_name, - 1, pg_query__with_clause__number_ranges, - (ProtobufCMessageInit) pg_query__with_clause__init, + sizeof(PgQuery__AccessPriv), + 2, + pg_query__access_priv__field_descriptors, + pg_query__access_priv__field_indices_by_name, + 1, pg_query__access_priv__number_ranges, + (ProtobufCMessageInit) pg_query__access_priv__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__infer_clause__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__grant_role_stmt__field_descriptors[6] = { { - "index_elems", + "granted_roles", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__InferClause, n_index_elems), - offsetof(PgQuery__InferClause, index_elems), + offsetof(PgQuery__GrantRoleStmt, n_granted_roles), + offsetof(PgQuery__GrantRoleStmt, granted_roles), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", + "grantee_roles", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__InferClause, where_clause), + offsetof(PgQuery__GrantRoleStmt, n_grantee_roles), + offsetof(PgQuery__GrantRoleStmt, grantee_roles), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "conname", + "is_grant", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__InferClause, conname), + offsetof(PgQuery__GrantRoleStmt, is_grant), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "opt", 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__GrantRoleStmt, n_opt), + offsetof(PgQuery__GrantRoleStmt, opt), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "grantor", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__InferClause, location), + offsetof(PgQuery__GrantRoleStmt, grantor), + &pg_query__role_spec__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "behavior", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__GrantRoleStmt, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__infer_clause__field_indices_by_name[] = { - 2, /* field[2] = conname */ - 0, /* field[0] = index_elems */ - 3, /* field[3] = location */ - 1, /* field[1] = where_clause */ +static const unsigned pg_query__grant_role_stmt__field_indices_by_name[] = { + 5, /* field[5] = behavior */ + 0, /* field[0] = granted_roles */ + 1, /* field[1] = grantee_roles */ + 4, /* field[4] = grantor */ + 2, /* field[2] = is_grant */ + 3, /* field[3] = opt */ }; -static const ProtobufCIntRange pg_query__infer_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__grant_role_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__infer_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__grant_role_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.InferClause", - "InferClause", - "PgQuery__InferClause", + "pg_query.GrantRoleStmt", + "GrantRoleStmt", + "PgQuery__GrantRoleStmt", "pg_query", - sizeof(PgQuery__InferClause), - 4, - pg_query__infer_clause__field_descriptors, - pg_query__infer_clause__field_indices_by_name, - 1, pg_query__infer_clause__number_ranges, - (ProtobufCMessageInit) pg_query__infer_clause__init, + sizeof(PgQuery__GrantRoleStmt), + 6, + pg_query__grant_role_stmt__field_descriptors, + pg_query__grant_role_stmt__field_indices_by_name, + 1, pg_query__grant_role_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__grant_role_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__on_conflict_clause__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__alter_default_privileges_stmt__field_descriptors[2] = { + { + "options", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterDefaultPrivilegesStmt, n_options), + offsetof(PgQuery__AlterDefaultPrivilegesStmt, options), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, { "action", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterDefaultPrivilegesStmt, action), + &pg_query__grant_stmt__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__alter_default_privileges_stmt__field_indices_by_name[] = { + 1, /* field[1] = action */ + 0, /* field[0] = options */ +}; +static const ProtobufCIntRange pg_query__alter_default_privileges_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__alter_default_privileges_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterDefaultPrivilegesStmt", + "AlterDefaultPrivilegesStmt", + "PgQuery__AlterDefaultPrivilegesStmt", + "pg_query", + sizeof(PgQuery__AlterDefaultPrivilegesStmt), + 2, + pg_query__alter_default_privileges_stmt__field_descriptors, + pg_query__alter_default_privileges_stmt__field_indices_by_name, + 1, pg_query__alter_default_privileges_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_default_privileges_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__copy_stmt__field_descriptors[8] = +{ + { + "relation", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictClause, action), - &pg_query__on_conflict_action__descriptor, + offsetof(PgQuery__CopyStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "infer", + "query", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictClause, infer), - &pg_query__infer_clause__descriptor, + offsetof(PgQuery__CopyStmt, query), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "target_list", + "attlist", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__OnConflictClause, n_target_list), - offsetof(PgQuery__OnConflictClause, target_list), + offsetof(PgQuery__CopyStmt, n_attlist), + offsetof(PgQuery__CopyStmt, attlist), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", + "is_from", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictClause, where_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__CopyStmt, is_from), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "is_program", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__OnConflictClause, location), + offsetof(PgQuery__CopyStmt, is_program), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "filename", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CopyStmt, filename), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "options", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CopyStmt, n_options), + offsetof(PgQuery__CopyStmt, options), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "where_clause", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CopyStmt, where_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__on_conflict_clause__field_indices_by_name[] = { - 0, /* field[0] = action */ - 1, /* field[1] = infer */ - 4, /* field[4] = location */ - 2, /* field[2] = target_list */ - 3, /* field[3] = where_clause */ +static const unsigned pg_query__copy_stmt__field_indices_by_name[] = { + 2, /* field[2] = attlist */ + 5, /* field[5] = filename */ + 3, /* field[3] = is_from */ + 4, /* field[4] = is_program */ + 6, /* field[6] = options */ + 1, /* field[1] = query */ + 0, /* field[0] = relation */ + 7, /* field[7] = where_clause */ }; -static const ProtobufCIntRange pg_query__on_conflict_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__copy_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__on_conflict_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__copy_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.OnConflictClause", - "OnConflictClause", - "PgQuery__OnConflictClause", + "pg_query.CopyStmt", + "CopyStmt", + "PgQuery__CopyStmt", "pg_query", - sizeof(PgQuery__OnConflictClause), - 5, - pg_query__on_conflict_clause__field_descriptors, - pg_query__on_conflict_clause__field_indices_by_name, - 1, pg_query__on_conflict_clause__number_ranges, - (ProtobufCMessageInit) pg_query__on_conflict_clause__init, + sizeof(PgQuery__CopyStmt), + 8, + pg_query__copy_stmt__field_descriptors, + pg_query__copy_stmt__field_indices_by_name, + 1, pg_query__copy_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__copy_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__ctesearch_clause__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__variable_set_stmt__field_descriptors[4] = { { - "search_col_list", + "kind", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CTESearchClause, n_search_col_list), - offsetof(PgQuery__CTESearchClause, search_col_list), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__VariableSetStmt, kind), + &pg_query__variable_set_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "search_breadth_first", + "name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CTESearchClause, search_breadth_first), + offsetof(PgQuery__VariableSetStmt, name), NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "args", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__VariableSetStmt, n_args), + offsetof(PgQuery__VariableSetStmt, args), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "search_seq_column", - 3, + "is_local", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CTESearchClause, search_seq_column), + offsetof(PgQuery__VariableSetStmt, is_local), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__variable_set_stmt__field_indices_by_name[] = { + 2, /* field[2] = args */ + 3, /* field[3] = is_local */ + 0, /* field[0] = kind */ + 1, /* field[1] = name */ +}; +static const ProtobufCIntRange pg_query__variable_set_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__variable_set_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.VariableSetStmt", + "VariableSetStmt", + "PgQuery__VariableSetStmt", + "pg_query", + sizeof(PgQuery__VariableSetStmt), + 4, + pg_query__variable_set_stmt__field_descriptors, + pg_query__variable_set_stmt__field_indices_by_name, + 1, pg_query__variable_set_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__variable_set_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__variable_show_stmt__field_descriptors[1] = +{ { - "location", - 4, + "name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CTESearchClause, location), - NULL, + offsetof(PgQuery__VariableShowStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__ctesearch_clause__field_indices_by_name[] = { - 3, /* field[3] = location */ - 1, /* field[1] = search_breadth_first */ - 0, /* field[0] = search_col_list */ - 2, /* field[2] = search_seq_column */ +static const unsigned pg_query__variable_show_stmt__field_indices_by_name[] = { + 0, /* field[0] = name */ }; -static const ProtobufCIntRange pg_query__ctesearch_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__variable_show_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__ctesearch_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__variable_show_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CTESearchClause", - "CTESearchClause", - "PgQuery__CTESearchClause", + "pg_query.VariableShowStmt", + "VariableShowStmt", + "PgQuery__VariableShowStmt", "pg_query", - sizeof(PgQuery__CTESearchClause), - 4, - pg_query__ctesearch_clause__field_descriptors, - pg_query__ctesearch_clause__field_indices_by_name, - 1, pg_query__ctesearch_clause__number_ranges, - (ProtobufCMessageInit) pg_query__ctesearch_clause__init, + sizeof(PgQuery__VariableShowStmt), + 1, + pg_query__variable_show_stmt__field_descriptors, + pg_query__variable_show_stmt__field_indices_by_name, + 1, pg_query__variable_show_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__variable_show_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__ctecycle_clause__field_descriptors[10] = +static const ProtobufCFieldDescriptor pg_query__create_stmt__field_descriptors[12] = { { - "cycle_col_list", + "relation", 1, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CTECycleClause, n_cycle_col_list), - offsetof(PgQuery__CTECycleClause, cycle_col_list), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_column", + "table_elts", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_column), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStmt, n_table_elts), + offsetof(PgQuery__CreateStmt, table_elts), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_value", + "inh_relations", 3, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_value), + offsetof(PgQuery__CreateStmt, n_inh_relations), + offsetof(PgQuery__CreateStmt, inh_relations), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_default", + "partbound", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_default), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateStmt, partbound), + &pg_query__partition_bound_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_path_column", + "partspec", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_path_column), + offsetof(PgQuery__CreateStmt, partspec), + &pg_query__partition_spec__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "of_typename", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, location), - NULL, + offsetof(PgQuery__CreateStmt, of_typename), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_type", + "constraints", 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_type), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStmt, n_constraints), + offsetof(PgQuery__CreateStmt, constraints), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_typmod", + "options", 8, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStmt, n_options), + offsetof(PgQuery__CreateStmt, options), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "oncommit", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_typmod), - NULL, + offsetof(PgQuery__CreateStmt, oncommit), + &pg_query__on_commit_action__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_collation", - 9, + "tablespacename", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_collation), + offsetof(PgQuery__CreateStmt, tablespacename), NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "access_method", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateStmt, access_method), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_mark_neop", - 10, + "if_not_exists", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CTECycleClause, cycle_mark_neop), + offsetof(PgQuery__CreateStmt, if_not_exists), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__ctecycle_clause__field_indices_by_name[] = { - 0, /* field[0] = cycle_col_list */ - 8, /* field[8] = cycle_mark_collation */ - 1, /* field[1] = cycle_mark_column */ - 3, /* field[3] = cycle_mark_default */ - 9, /* field[9] = cycle_mark_neop */ - 6, /* field[6] = cycle_mark_type */ - 7, /* field[7] = cycle_mark_typmod */ - 2, /* field[2] = cycle_mark_value */ - 4, /* field[4] = cycle_path_column */ - 5, /* field[5] = location */ +static const unsigned pg_query__create_stmt__field_indices_by_name[] = { + 10, /* field[10] = access_method */ + 6, /* field[6] = constraints */ + 11, /* field[11] = if_not_exists */ + 2, /* field[2] = inh_relations */ + 5, /* field[5] = of_typename */ + 8, /* field[8] = oncommit */ + 7, /* field[7] = options */ + 3, /* field[3] = partbound */ + 4, /* field[4] = partspec */ + 0, /* field[0] = relation */ + 1, /* field[1] = table_elts */ + 9, /* field[9] = tablespacename */ }; -static const ProtobufCIntRange pg_query__ctecycle_clause__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 10 } + { 0, 12 } }; -const ProtobufCMessageDescriptor pg_query__ctecycle_clause__descriptor = +const ProtobufCMessageDescriptor pg_query__create_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CTECycleClause", - "CTECycleClause", - "PgQuery__CTECycleClause", + "pg_query.CreateStmt", + "CreateStmt", + "PgQuery__CreateStmt", "pg_query", - sizeof(PgQuery__CTECycleClause), - 10, - pg_query__ctecycle_clause__field_descriptors, - pg_query__ctecycle_clause__field_indices_by_name, - 1, pg_query__ctecycle_clause__number_ranges, - (ProtobufCMessageInit) pg_query__ctecycle_clause__init, + sizeof(PgQuery__CreateStmt), + 12, + pg_query__create_stmt__field_descriptors, + pg_query__create_stmt__field_indices_by_name, + 1, pg_query__create_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__common_table_expr__field_descriptors[13] = +static const ProtobufCFieldDescriptor pg_query__constraint__field_descriptors[31] = { { - "ctename", + "contype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, ctename), + offsetof(PgQuery__Constraint, contype), + &pg_query__constr_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aliascolnames", + "conname", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CommonTableExpr, n_aliascolnames), - offsetof(PgQuery__CommonTableExpr, aliascolnames), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__Constraint, conname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctematerialized", + "deferrable", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, ctematerialized), - &pg_query__ctematerialize__descriptor, + offsetof(PgQuery__Constraint, deferrable), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctequery", + "initdeferred", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, ctequery), - &pg_query__node__descriptor, + offsetof(PgQuery__Constraint, initdeferred), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "search_clause", + "skip_validation", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, search_clause), - &pg_query__ctesearch_clause__descriptor, + offsetof(PgQuery__Constraint, skip_validation), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cycle_clause", + "initially_valid", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, cycle_clause), - &pg_query__ctecycle_clause__descriptor, + offsetof(PgQuery__Constraint, initially_valid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "is_no_inherit", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, location), + offsetof(PgQuery__Constraint, is_no_inherit), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cterecursive", + "raw_expr", 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, cterecursive), - NULL, + offsetof(PgQuery__Constraint, raw_expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cterefcount", + "cooked_expr", 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CommonTableExpr, cterefcount), - NULL, + offsetof(PgQuery__Constraint, cooked_expr), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctecolnames", + "generated_when", 10, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CommonTableExpr, n_ctecolnames), - offsetof(PgQuery__CommonTableExpr, ctecolnames), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__Constraint, generated_when), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctecoltypes", + "inhcount", 11, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CommonTableExpr, n_ctecoltypes), - offsetof(PgQuery__CommonTableExpr, ctecoltypes), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__Constraint, inhcount), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctecoltypmods", + "nulls_not_distinct", 12, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CommonTableExpr, n_ctecoltypmods), - offsetof(PgQuery__CommonTableExpr, ctecoltypmods), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__Constraint, nulls_not_distinct), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ctecolcollations", + "keys", 13, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CommonTableExpr, n_ctecolcollations), - offsetof(PgQuery__CommonTableExpr, ctecolcollations), + offsetof(PgQuery__Constraint, n_keys), + offsetof(PgQuery__Constraint, keys), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__common_table_expr__field_indices_by_name[] = { - 1, /* field[1] = aliascolnames */ - 12, /* field[12] = ctecolcollations */ - 9, /* field[9] = ctecolnames */ - 10, /* field[10] = ctecoltypes */ - 11, /* field[11] = ctecoltypmods */ - 2, /* field[2] = ctematerialized */ - 0, /* field[0] = ctename */ - 3, /* field[3] = ctequery */ - 7, /* field[7] = cterecursive */ - 8, /* field[8] = cterefcount */ - 5, /* field[5] = cycle_clause */ - 6, /* field[6] = location */ - 4, /* field[4] = search_clause */ -}; -static const ProtobufCIntRange pg_query__common_table_expr__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 13 } -}; -const ProtobufCMessageDescriptor pg_query__common_table_expr__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CommonTableExpr", - "CommonTableExpr", - "PgQuery__CommonTableExpr", - "pg_query", - sizeof(PgQuery__CommonTableExpr), - 13, - pg_query__common_table_expr__field_descriptors, - pg_query__common_table_expr__field_indices_by_name, - 1, pg_query__common_table_expr__number_ranges, - (ProtobufCMessageInit) pg_query__common_table_expr__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__merge_when_clause__field_descriptors[6] = -{ - { - "match_kind", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeWhenClause, match_kind), - &pg_query__merge_match_kind__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "command_type", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeWhenClause, command_type), - &pg_query__cmd_type__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, { - "override", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeWhenClause, override), - &pg_query__overriding_kind__descriptor, + "including", + 14, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Constraint, n_including), + offsetof(PgQuery__Constraint, including), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "condition", - 4, - PROTOBUF_C_LABEL_NONE, + "exclusions", + 15, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeWhenClause, condition), + offsetof(PgQuery__Constraint, n_exclusions), + offsetof(PgQuery__Constraint, exclusions), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "target_list", - 5, + "options", + 16, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MergeWhenClause, n_target_list), - offsetof(PgQuery__MergeWhenClause, target_list), + offsetof(PgQuery__Constraint, n_options), + offsetof(PgQuery__Constraint, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "values", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MergeWhenClause, n_values), - offsetof(PgQuery__MergeWhenClause, values), - &pg_query__node__descriptor, + "indexname", + 17, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__Constraint, indexname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__merge_when_clause__field_indices_by_name[] = { - 1, /* field[1] = command_type */ - 3, /* field[3] = condition */ - 0, /* field[0] = match_kind */ - 2, /* field[2] = override */ - 4, /* field[4] = target_list */ - 5, /* field[5] = values */ -}; -static const ProtobufCIntRange pg_query__merge_when_clause__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 6 } -}; -const ProtobufCMessageDescriptor pg_query__merge_when_clause__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.MergeWhenClause", - "MergeWhenClause", - "PgQuery__MergeWhenClause", - "pg_query", - sizeof(PgQuery__MergeWhenClause), - 6, - pg_query__merge_when_clause__field_descriptors, - pg_query__merge_when_clause__field_indices_by_name, - 1, pg_query__merge_when_clause__number_ranges, - (ProtobufCMessageInit) pg_query__merge_when_clause__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__trigger_transition__field_descriptors[3] = -{ { - "name", - 1, + "indexspace", + 18, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__TriggerTransition, name), + offsetof(PgQuery__Constraint, indexspace), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_new", - 2, + "reset_default_tblspc", + 19, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__TriggerTransition, is_new), + offsetof(PgQuery__Constraint, reset_default_tblspc), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_table", - 3, + "access_method", + 20, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__TriggerTransition, is_table), - NULL, + offsetof(PgQuery__Constraint, access_method), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__trigger_transition__field_indices_by_name[] = { - 1, /* field[1] = is_new */ - 2, /* field[2] = is_table */ - 0, /* field[0] = name */ -}; -static const ProtobufCIntRange pg_query__trigger_transition__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__trigger_transition__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TriggerTransition", - "TriggerTransition", - "PgQuery__TriggerTransition", - "pg_query", - sizeof(PgQuery__TriggerTransition), - 3, - pg_query__trigger_transition__field_descriptors, - pg_query__trigger_transition__field_indices_by_name, - 1, pg_query__trigger_transition__number_ranges, - (ProtobufCMessageInit) pg_query__trigger_transition__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__json_output__field_descriptors[2] = -{ { - "type_name", - 1, + "where_clause", + 21, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonOutput, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__Constraint, where_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning", - 2, + "pktable", + 22, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonOutput, returning), - &pg_query__json_returning__descriptor, + offsetof(PgQuery__Constraint, pktable), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__json_output__field_indices_by_name[] = { - 1, /* field[1] = returning */ - 0, /* field[0] = type_name */ -}; -static const ProtobufCIntRange pg_query__json_output__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__json_output__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonOutput", - "JsonOutput", - "PgQuery__JsonOutput", - "pg_query", - sizeof(PgQuery__JsonOutput), - 2, - pg_query__json_output__field_descriptors, - pg_query__json_output__field_indices_by_name, - 1, pg_query__json_output__number_ranges, - (ProtobufCMessageInit) pg_query__json_output__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__json_argument__field_descriptors[2] = -{ { - "val", - 1, - PROTOBUF_C_LABEL_NONE, + "fk_attrs", + 23, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArgument, val), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__Constraint, n_fk_attrs), + offsetof(PgQuery__Constraint, fk_attrs), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArgument, name), + "pk_attrs", + 24, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__Constraint, n_pk_attrs), + offsetof(PgQuery__Constraint, pk_attrs), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__json_argument__field_indices_by_name[] = { - 1, /* field[1] = name */ - 0, /* field[0] = val */ -}; -static const ProtobufCIntRange pg_query__json_argument__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__json_argument__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonArgument", - "JsonArgument", - "PgQuery__JsonArgument", - "pg_query", - sizeof(PgQuery__JsonArgument), - 2, - pg_query__json_argument__field_descriptors, - pg_query__json_argument__field_indices_by_name, - 1, pg_query__json_argument__number_ranges, - (ProtobufCMessageInit) pg_query__json_argument__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__json_func_expr__field_descriptors[11] = -{ { - "op", - 1, + "fk_matchtype", + 25, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, op), - &pg_query__json_expr_op__descriptor, + offsetof(PgQuery__Constraint, fk_matchtype), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "column_name", - 2, + "fk_upd_action", + 26, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, column_name), + offsetof(PgQuery__Constraint, fk_upd_action), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "context_item", - 3, + "fk_del_action", + 27, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, context_item), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__Constraint, fk_del_action), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pathspec", - 4, - PROTOBUF_C_LABEL_NONE, + "fk_del_set_cols", + 28, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, pathspec), + offsetof(PgQuery__Constraint, n_fk_del_set_cols), + offsetof(PgQuery__Constraint, fk_del_set_cols), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "passing", - 5, + "old_conpfeqop", + 29, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonFuncExpr, n_passing), - offsetof(PgQuery__JsonFuncExpr, passing), + offsetof(PgQuery__Constraint, n_old_conpfeqop), + offsetof(PgQuery__Constraint, old_conpfeqop), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", - 6, + "old_pktable_oid", + 30, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__Constraint, old_pktable_oid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_empty", - 7, + "location", + 31, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, on_empty), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__Constraint, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__constraint__field_indices_by_name[] = { + 19, /* field[19] = access_method */ + 1, /* field[1] = conname */ + 0, /* field[0] = contype */ + 8, /* field[8] = cooked_expr */ + 2, /* field[2] = deferrable */ + 14, /* field[14] = exclusions */ + 22, /* field[22] = fk_attrs */ + 26, /* field[26] = fk_del_action */ + 27, /* field[27] = fk_del_set_cols */ + 24, /* field[24] = fk_matchtype */ + 25, /* field[25] = fk_upd_action */ + 9, /* field[9] = generated_when */ + 13, /* field[13] = including */ + 16, /* field[16] = indexname */ + 17, /* field[17] = indexspace */ + 10, /* field[10] = inhcount */ + 3, /* field[3] = initdeferred */ + 5, /* field[5] = initially_valid */ + 6, /* field[6] = is_no_inherit */ + 12, /* field[12] = keys */ + 30, /* field[30] = location */ + 11, /* field[11] = nulls_not_distinct */ + 28, /* field[28] = old_conpfeqop */ + 29, /* field[29] = old_pktable_oid */ + 15, /* field[15] = options */ + 23, /* field[23] = pk_attrs */ + 21, /* field[21] = pktable */ + 7, /* field[7] = raw_expr */ + 18, /* field[18] = reset_default_tblspc */ + 4, /* field[4] = skip_validation */ + 20, /* field[20] = where_clause */ +}; +static const ProtobufCIntRange pg_query__constraint__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 31 } +}; +const ProtobufCMessageDescriptor pg_query__constraint__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.Constraint", + "Constraint", + "PgQuery__Constraint", + "pg_query", + sizeof(PgQuery__Constraint), + 31, + pg_query__constraint__field_descriptors, + pg_query__constraint__field_indices_by_name, + 1, pg_query__constraint__number_ranges, + (ProtobufCMessageInit) pg_query__constraint__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_table_space_stmt__field_descriptors[4] = +{ { - "on_error", - 8, + "tablespacename", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, on_error), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__CreateTableSpaceStmt, tablespacename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "wrapper", - 9, + "owner", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, wrapper), - &pg_query__json_wrapper__descriptor, + offsetof(PgQuery__CreateTableSpaceStmt, owner), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "quotes", - 10, + "location", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, quotes), - &pg_query__json_quotes__descriptor, + offsetof(PgQuery__CreateTableSpaceStmt, location), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonFuncExpr, location), - NULL, + "options", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateTableSpaceStmt, n_options), + offsetof(PgQuery__CreateTableSpaceStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_func_expr__field_indices_by_name[] = { - 1, /* field[1] = column_name */ - 2, /* field[2] = context_item */ - 10, /* field[10] = location */ - 6, /* field[6] = on_empty */ - 7, /* field[7] = on_error */ - 0, /* field[0] = op */ - 5, /* field[5] = output */ - 4, /* field[4] = passing */ - 3, /* field[3] = pathspec */ - 9, /* field[9] = quotes */ - 8, /* field[8] = wrapper */ +static const unsigned pg_query__create_table_space_stmt__field_indices_by_name[] = { + 2, /* field[2] = location */ + 3, /* field[3] = options */ + 1, /* field[1] = owner */ + 0, /* field[0] = tablespacename */ }; -static const ProtobufCIntRange pg_query__json_func_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_table_space_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 11 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__json_func_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__create_table_space_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonFuncExpr", - "JsonFuncExpr", - "PgQuery__JsonFuncExpr", + "pg_query.CreateTableSpaceStmt", + "CreateTableSpaceStmt", + "PgQuery__CreateTableSpaceStmt", "pg_query", - sizeof(PgQuery__JsonFuncExpr), - 11, - pg_query__json_func_expr__field_descriptors, - pg_query__json_func_expr__field_indices_by_name, - 1, pg_query__json_func_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_func_expr__init, + sizeof(PgQuery__CreateTableSpaceStmt), + 4, + pg_query__create_table_space_stmt__field_descriptors, + pg_query__create_table_space_stmt__field_indices_by_name, + 1, pg_query__create_table_space_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_table_space_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_table_path_spec__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__drop_table_space_stmt__field_descriptors[2] = { { - "string", + "tablespacename", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathSpec, string), - &pg_query__node__descriptor, + offsetof(PgQuery__DropTableSpaceStmt, tablespacename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", + "missing_ok", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathSpec, name), + offsetof(PgQuery__DropTableSpaceStmt, missing_ok), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__drop_table_space_stmt__field_indices_by_name[] = { + 1, /* field[1] = missing_ok */ + 0, /* field[0] = tablespacename */ +}; +static const ProtobufCIntRange pg_query__drop_table_space_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__drop_table_space_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DropTableSpaceStmt", + "DropTableSpaceStmt", + "PgQuery__DropTableSpaceStmt", + "pg_query", + sizeof(PgQuery__DropTableSpaceStmt), + 2, + pg_query__drop_table_space_stmt__field_descriptors, + pg_query__drop_table_space_stmt__field_indices_by_name, + 1, pg_query__drop_table_space_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__drop_table_space_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_table_space_options_stmt__field_descriptors[3] = +{ { - "name_location", - 3, + "tablespacename", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathSpec, name_location), + offsetof(PgQuery__AlterTableSpaceOptionsStmt, tablespacename), NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "options", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterTableSpaceOptionsStmt, n_options), + offsetof(PgQuery__AlterTableSpaceOptionsStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 4, + "is_reset", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTablePathSpec, location), + offsetof(PgQuery__AlterTableSpaceOptionsStmt, is_reset), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_table_path_spec__field_indices_by_name[] = { - 3, /* field[3] = location */ - 1, /* field[1] = name */ - 2, /* field[2] = name_location */ - 0, /* field[0] = string */ +static const unsigned pg_query__alter_table_space_options_stmt__field_indices_by_name[] = { + 2, /* field[2] = is_reset */ + 1, /* field[1] = options */ + 0, /* field[0] = tablespacename */ }; -static const ProtobufCIntRange pg_query__json_table_path_spec__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_table_space_options_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_table_path_spec__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_table_space_options_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonTablePathSpec", - "JsonTablePathSpec", - "PgQuery__JsonTablePathSpec", + "pg_query.AlterTableSpaceOptionsStmt", + "AlterTableSpaceOptionsStmt", + "PgQuery__AlterTableSpaceOptionsStmt", "pg_query", - sizeof(PgQuery__JsonTablePathSpec), - 4, - pg_query__json_table_path_spec__field_descriptors, - pg_query__json_table_path_spec__field_indices_by_name, - 1, pg_query__json_table_path_spec__number_ranges, - (ProtobufCMessageInit) pg_query__json_table_path_spec__init, + sizeof(PgQuery__AlterTableSpaceOptionsStmt), + 3, + pg_query__alter_table_space_options_stmt__field_descriptors, + pg_query__alter_table_space_options_stmt__field_indices_by_name, + 1, pg_query__alter_table_space_options_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_table_space_options_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_table__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__alter_table_move_all_stmt__field_descriptors[5] = { { - "context_item", + "orig_tablespacename", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTable, context_item), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__AlterTableMoveAllStmt, orig_tablespacename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pathspec", + "objtype", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTable, pathspec), - &pg_query__json_table_path_spec__descriptor, + offsetof(PgQuery__AlterTableMoveAllStmt, objtype), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "passing", + "roles", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonTable, n_passing), - offsetof(PgQuery__JsonTable, passing), + offsetof(PgQuery__AlterTableMoveAllStmt, n_roles), + offsetof(PgQuery__AlterTableMoveAllStmt, roles), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "columns", + "new_tablespacename", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonTable, n_columns), - offsetof(PgQuery__JsonTable, columns), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterTableMoveAllStmt, new_tablespacename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_error", + "nowait", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTable, on_error), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__AlterTableMoveAllStmt, nowait), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_table_move_all_stmt__field_indices_by_name[] = { + 3, /* field[3] = new_tablespacename */ + 4, /* field[4] = nowait */ + 1, /* field[1] = objtype */ + 0, /* field[0] = orig_tablespacename */ + 2, /* field[2] = roles */ +}; +static const ProtobufCIntRange pg_query__alter_table_move_all_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__alter_table_move_all_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterTableMoveAllStmt", + "AlterTableMoveAllStmt", + "PgQuery__AlterTableMoveAllStmt", + "pg_query", + sizeof(PgQuery__AlterTableMoveAllStmt), + 5, + pg_query__alter_table_move_all_stmt__field_descriptors, + pg_query__alter_table_move_all_stmt__field_indices_by_name, + 1, pg_query__alter_table_move_all_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_table_move_all_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_extension_stmt__field_descriptors[3] = +{ { - "alias", - 6, + "extname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTable, alias), - &pg_query__alias__descriptor, + offsetof(PgQuery__CreateExtensionStmt, extname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lateral", - 7, + "if_not_exists", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTable, lateral), + offsetof(PgQuery__CreateExtensionStmt, if_not_exists), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTable, location), - NULL, + "options", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateExtensionStmt, n_options), + offsetof(PgQuery__CreateExtensionStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_table__field_indices_by_name[] = { - 5, /* field[5] = alias */ - 3, /* field[3] = columns */ - 0, /* field[0] = context_item */ - 6, /* field[6] = lateral */ - 7, /* field[7] = location */ - 4, /* field[4] = on_error */ - 2, /* field[2] = passing */ - 1, /* field[1] = pathspec */ +static const unsigned pg_query__create_extension_stmt__field_indices_by_name[] = { + 0, /* field[0] = extname */ + 1, /* field[1] = if_not_exists */ + 2, /* field[2] = options */ }; -static const ProtobufCIntRange pg_query__json_table__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_extension_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_table__descriptor = +const ProtobufCMessageDescriptor pg_query__create_extension_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonTable", - "JsonTable", - "PgQuery__JsonTable", + "pg_query.CreateExtensionStmt", + "CreateExtensionStmt", + "PgQuery__CreateExtensionStmt", "pg_query", - sizeof(PgQuery__JsonTable), - 8, - pg_query__json_table__field_descriptors, - pg_query__json_table__field_indices_by_name, - 1, pg_query__json_table__number_ranges, - (ProtobufCMessageInit) pg_query__json_table__init, + sizeof(PgQuery__CreateExtensionStmt), + 3, + pg_query__create_extension_stmt__field_descriptors, + pg_query__create_extension_stmt__field_indices_by_name, + 1, pg_query__create_extension_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_extension_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_table_column__field_descriptors[11] = +static const ProtobufCFieldDescriptor pg_query__alter_extension_stmt__field_descriptors[2] = { { - "coltype", + "extname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, coltype), - &pg_query__json_table_column_type__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "name", - 2, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, name), + offsetof(PgQuery__AlterExtensionStmt, extname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", - 3, - PROTOBUF_C_LABEL_NONE, + "options", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__AlterExtensionStmt, n_options), + offsetof(PgQuery__AlterExtensionStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_extension_stmt__field_indices_by_name[] = { + 0, /* field[0] = extname */ + 1, /* field[1] = options */ +}; +static const ProtobufCIntRange pg_query__alter_extension_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__alter_extension_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterExtensionStmt", + "AlterExtensionStmt", + "PgQuery__AlterExtensionStmt", + "pg_query", + sizeof(PgQuery__AlterExtensionStmt), + 2, + pg_query__alter_extension_stmt__field_descriptors, + pg_query__alter_extension_stmt__field_indices_by_name, + 1, pg_query__alter_extension_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_extension_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_extension_contents_stmt__field_descriptors[4] = +{ { - "pathspec", - 4, + "extname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, pathspec), - &pg_query__json_table_path_spec__descriptor, + offsetof(PgQuery__AlterExtensionContentsStmt, extname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "format", - 5, + "action", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__AlterExtensionContentsStmt, action), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "wrapper", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, wrapper), - &pg_query__json_wrapper__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "quotes", - 7, + "objtype", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, quotes), - &pg_query__json_quotes__descriptor, + offsetof(PgQuery__AlterExtensionContentsStmt, objtype), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "columns", - 8, - PROTOBUF_C_LABEL_REPEATED, + "object", + 4, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonTableColumn, n_columns), - offsetof(PgQuery__JsonTableColumn, columns), + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterExtensionContentsStmt, object), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_extension_contents_stmt__field_indices_by_name[] = { + 1, /* field[1] = action */ + 0, /* field[0] = extname */ + 3, /* field[3] = object */ + 2, /* field[2] = objtype */ +}; +static const ProtobufCIntRange pg_query__alter_extension_contents_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__alter_extension_contents_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterExtensionContentsStmt", + "AlterExtensionContentsStmt", + "PgQuery__AlterExtensionContentsStmt", + "pg_query", + sizeof(PgQuery__AlterExtensionContentsStmt), + 4, + pg_query__alter_extension_contents_stmt__field_descriptors, + pg_query__alter_extension_contents_stmt__field_indices_by_name, + 1, pg_query__alter_extension_contents_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_extension_contents_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_fdw_stmt__field_descriptors[3] = +{ { - "on_empty", - 9, + "fdwname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, on_empty), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__CreateFdwStmt, fdwname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_error", - 10, - PROTOBUF_C_LABEL_NONE, + "func_options", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, on_error), - &pg_query__json_behavior__descriptor, + offsetof(PgQuery__CreateFdwStmt, n_func_options), + offsetof(PgQuery__CreateFdwStmt, func_options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonTableColumn, location), - NULL, + "options", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateFdwStmt, n_options), + offsetof(PgQuery__CreateFdwStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_table_column__field_indices_by_name[] = { - 0, /* field[0] = coltype */ - 7, /* field[7] = columns */ - 4, /* field[4] = format */ - 10, /* field[10] = location */ - 1, /* field[1] = name */ - 8, /* field[8] = on_empty */ - 9, /* field[9] = on_error */ - 3, /* field[3] = pathspec */ - 6, /* field[6] = quotes */ - 2, /* field[2] = type_name */ - 5, /* field[5] = wrapper */ +static const unsigned pg_query__create_fdw_stmt__field_indices_by_name[] = { + 0, /* field[0] = fdwname */ + 1, /* field[1] = func_options */ + 2, /* field[2] = options */ }; -static const ProtobufCIntRange pg_query__json_table_column__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_fdw_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 11 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_table_column__descriptor = +const ProtobufCMessageDescriptor pg_query__create_fdw_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonTableColumn", - "JsonTableColumn", - "PgQuery__JsonTableColumn", + "pg_query.CreateFdwStmt", + "CreateFdwStmt", + "PgQuery__CreateFdwStmt", "pg_query", - sizeof(PgQuery__JsonTableColumn), - 11, - pg_query__json_table_column__field_descriptors, - pg_query__json_table_column__field_indices_by_name, - 1, pg_query__json_table_column__number_ranges, - (ProtobufCMessageInit) pg_query__json_table_column__init, + sizeof(PgQuery__CreateFdwStmt), + 3, + pg_query__create_fdw_stmt__field_descriptors, + pg_query__create_fdw_stmt__field_indices_by_name, + 1, pg_query__create_fdw_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_fdw_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_key_value__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__alter_fdw_stmt__field_descriptors[3] = { { - "key", + "fdwname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonKeyValue, key), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterFdwStmt, fdwname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "value", + "func_options", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonKeyValue, value), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__AlterFdwStmt, n_func_options), + offsetof(PgQuery__AlterFdwStmt, func_options), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "options", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterFdwStmt, n_options), + offsetof(PgQuery__AlterFdwStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_key_value__field_indices_by_name[] = { - 0, /* field[0] = key */ - 1, /* field[1] = value */ +static const unsigned pg_query__alter_fdw_stmt__field_indices_by_name[] = { + 0, /* field[0] = fdwname */ + 1, /* field[1] = func_options */ + 2, /* field[2] = options */ }; -static const ProtobufCIntRange pg_query__json_key_value__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_fdw_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_key_value__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_fdw_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonKeyValue", - "JsonKeyValue", - "PgQuery__JsonKeyValue", + "pg_query.AlterFdwStmt", + "AlterFdwStmt", + "PgQuery__AlterFdwStmt", "pg_query", - sizeof(PgQuery__JsonKeyValue), - 2, - pg_query__json_key_value__field_descriptors, - pg_query__json_key_value__field_indices_by_name, - 1, pg_query__json_key_value__number_ranges, - (ProtobufCMessageInit) pg_query__json_key_value__init, + sizeof(PgQuery__AlterFdwStmt), + 3, + pg_query__alter_fdw_stmt__field_descriptors, + pg_query__alter_fdw_stmt__field_indices_by_name, + 1, pg_query__alter_fdw_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_fdw_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_parse_expr__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_foreign_server_stmt__field_descriptors[6] = { { - "expr", + "servername", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonParseExpr, expr), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__CreateForeignServerStmt, servername), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", + "servertype", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonParseExpr, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__CreateForeignServerStmt, servertype), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unique_keys", + "version", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonParseExpr, unique_keys), - NULL, + offsetof(PgQuery__CreateForeignServerStmt, version), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "fdwname", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonParseExpr, location), + offsetof(PgQuery__CreateForeignServerStmt, fdwname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "if_not_exists", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateForeignServerStmt, if_not_exists), + NULL, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "options", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateForeignServerStmt, n_options), + offsetof(PgQuery__CreateForeignServerStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_parse_expr__field_indices_by_name[] = { - 0, /* field[0] = expr */ - 3, /* field[3] = location */ - 1, /* field[1] = output */ - 2, /* field[2] = unique_keys */ +static const unsigned pg_query__create_foreign_server_stmt__field_indices_by_name[] = { + 3, /* field[3] = fdwname */ + 4, /* field[4] = if_not_exists */ + 5, /* field[5] = options */ + 0, /* field[0] = servername */ + 1, /* field[1] = servertype */ + 2, /* field[2] = version */ }; -static const ProtobufCIntRange pg_query__json_parse_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_foreign_server_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__json_parse_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__create_foreign_server_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonParseExpr", - "JsonParseExpr", - "PgQuery__JsonParseExpr", + "pg_query.CreateForeignServerStmt", + "CreateForeignServerStmt", + "PgQuery__CreateForeignServerStmt", "pg_query", - sizeof(PgQuery__JsonParseExpr), - 4, - pg_query__json_parse_expr__field_descriptors, - pg_query__json_parse_expr__field_indices_by_name, - 1, pg_query__json_parse_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_parse_expr__init, + sizeof(PgQuery__CreateForeignServerStmt), + 6, + pg_query__create_foreign_server_stmt__field_descriptors, + pg_query__create_foreign_server_stmt__field_indices_by_name, + 1, pg_query__create_foreign_server_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_foreign_server_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_scalar_expr__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_foreign_server_stmt__field_descriptors[4] = { { - "expr", + "servername", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonScalarExpr, expr), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterForeignServerStmt, servername), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", + "version", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonScalarExpr, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__AlterForeignServerStmt, version), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "options", 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterForeignServerStmt, n_options), + offsetof(PgQuery__AlterForeignServerStmt, options), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "has_version", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonScalarExpr, location), + offsetof(PgQuery__AlterForeignServerStmt, has_version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_scalar_expr__field_indices_by_name[] = { - 0, /* field[0] = expr */ - 2, /* field[2] = location */ - 1, /* field[1] = output */ +static const unsigned pg_query__alter_foreign_server_stmt__field_indices_by_name[] = { + 3, /* field[3] = has_version */ + 2, /* field[2] = options */ + 0, /* field[0] = servername */ + 1, /* field[1] = version */ }; -static const ProtobufCIntRange pg_query__json_scalar_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_foreign_server_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__json_scalar_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_foreign_server_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonScalarExpr", - "JsonScalarExpr", - "PgQuery__JsonScalarExpr", + "pg_query.AlterForeignServerStmt", + "AlterForeignServerStmt", + "PgQuery__AlterForeignServerStmt", "pg_query", - sizeof(PgQuery__JsonScalarExpr), - 3, - pg_query__json_scalar_expr__field_descriptors, - pg_query__json_scalar_expr__field_indices_by_name, - 1, pg_query__json_scalar_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_scalar_expr__init, + sizeof(PgQuery__AlterForeignServerStmt), + 4, + pg_query__alter_foreign_server_stmt__field_descriptors, + pg_query__alter_foreign_server_stmt__field_indices_by_name, + 1, pg_query__alter_foreign_server_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_foreign_server_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_serialize_expr__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__create_foreign_table_stmt__field_descriptors[3] = { { - "expr", + "base_stmt", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonSerializeExpr, expr), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__CreateForeignTableStmt, base_stmt), + &pg_query__create_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", + "servername", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonSerializeExpr, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__CreateForeignTableStmt, servername), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "options", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonSerializeExpr, location), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateForeignTableStmt, n_options), + offsetof(PgQuery__CreateForeignTableStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_serialize_expr__field_indices_by_name[] = { - 0, /* field[0] = expr */ - 2, /* field[2] = location */ - 1, /* field[1] = output */ +static const unsigned pg_query__create_foreign_table_stmt__field_indices_by_name[] = { + 0, /* field[0] = base_stmt */ + 2, /* field[2] = options */ + 1, /* field[1] = servername */ }; -static const ProtobufCIntRange pg_query__json_serialize_expr__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_foreign_table_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_serialize_expr__descriptor = +const ProtobufCMessageDescriptor pg_query__create_foreign_table_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonSerializeExpr", - "JsonSerializeExpr", - "PgQuery__JsonSerializeExpr", + "pg_query.CreateForeignTableStmt", + "CreateForeignTableStmt", + "PgQuery__CreateForeignTableStmt", "pg_query", - sizeof(PgQuery__JsonSerializeExpr), + sizeof(PgQuery__CreateForeignTableStmt), 3, - pg_query__json_serialize_expr__field_descriptors, - pg_query__json_serialize_expr__field_indices_by_name, - 1, pg_query__json_serialize_expr__number_ranges, - (ProtobufCMessageInit) pg_query__json_serialize_expr__init, + pg_query__create_foreign_table_stmt__field_descriptors, + pg_query__create_foreign_table_stmt__field_indices_by_name, + 1, pg_query__create_foreign_table_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_foreign_table_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_object_constructor__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__create_user_mapping_stmt__field_descriptors[4] = { { - "exprs", + "user", 1, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonObjectConstructor, n_exprs), - offsetof(PgQuery__JsonObjectConstructor, exprs), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateUserMappingStmt, user), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", + "servername", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectConstructor, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__CreateUserMappingStmt, servername), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "absent_on_null", + "if_not_exists", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectConstructor, absent_on_null), + offsetof(PgQuery__CreateUserMappingStmt, if_not_exists), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unique", + "options", 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateUserMappingStmt, n_options), + offsetof(PgQuery__CreateUserMappingStmt, options), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__create_user_mapping_stmt__field_indices_by_name[] = { + 2, /* field[2] = if_not_exists */ + 3, /* field[3] = options */ + 1, /* field[1] = servername */ + 0, /* field[0] = user */ +}; +static const ProtobufCIntRange pg_query__create_user_mapping_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__create_user_mapping_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreateUserMappingStmt", + "CreateUserMappingStmt", + "PgQuery__CreateUserMappingStmt", + "pg_query", + sizeof(PgQuery__CreateUserMappingStmt), + 4, + pg_query__create_user_mapping_stmt__field_descriptors, + pg_query__create_user_mapping_stmt__field_indices_by_name, + 1, pg_query__create_user_mapping_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_user_mapping_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_user_mapping_stmt__field_descriptors[3] = +{ + { + "user", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectConstructor, unique), - NULL, + offsetof(PgQuery__AlterUserMappingStmt, user), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 5, + "servername", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectConstructor, location), + offsetof(PgQuery__AlterUserMappingStmt, servername), NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "options", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterUserMappingStmt, n_options), + offsetof(PgQuery__AlterUserMappingStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_object_constructor__field_indices_by_name[] = { - 2, /* field[2] = absent_on_null */ - 0, /* field[0] = exprs */ - 4, /* field[4] = location */ - 1, /* field[1] = output */ - 3, /* field[3] = unique */ +static const unsigned pg_query__alter_user_mapping_stmt__field_indices_by_name[] = { + 2, /* field[2] = options */ + 1, /* field[1] = servername */ + 0, /* field[0] = user */ }; -static const ProtobufCIntRange pg_query__json_object_constructor__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_user_mapping_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_object_constructor__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_user_mapping_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonObjectConstructor", - "JsonObjectConstructor", - "PgQuery__JsonObjectConstructor", + "pg_query.AlterUserMappingStmt", + "AlterUserMappingStmt", + "PgQuery__AlterUserMappingStmt", "pg_query", - sizeof(PgQuery__JsonObjectConstructor), - 5, - pg_query__json_object_constructor__field_descriptors, - pg_query__json_object_constructor__field_indices_by_name, - 1, pg_query__json_object_constructor__number_ranges, - (ProtobufCMessageInit) pg_query__json_object_constructor__init, + sizeof(PgQuery__AlterUserMappingStmt), + 3, + pg_query__alter_user_mapping_stmt__field_descriptors, + pg_query__alter_user_mapping_stmt__field_indices_by_name, + 1, pg_query__alter_user_mapping_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_user_mapping_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_array_constructor__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__drop_user_mapping_stmt__field_descriptors[3] = { { - "exprs", + "user", 1, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonArrayConstructor, n_exprs), - offsetof(PgQuery__JsonArrayConstructor, exprs), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__DropUserMappingStmt, user), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", + "servername", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayConstructor, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__DropUserMappingStmt, servername), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "absent_on_null", + "missing_ok", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayConstructor, absent_on_null), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayConstructor, location), + offsetof(PgQuery__DropUserMappingStmt, missing_ok), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_array_constructor__field_indices_by_name[] = { - 2, /* field[2] = absent_on_null */ - 0, /* field[0] = exprs */ - 3, /* field[3] = location */ - 1, /* field[1] = output */ +static const unsigned pg_query__drop_user_mapping_stmt__field_indices_by_name[] = { + 2, /* field[2] = missing_ok */ + 1, /* field[1] = servername */ + 0, /* field[0] = user */ }; -static const ProtobufCIntRange pg_query__json_array_constructor__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__drop_user_mapping_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__json_array_constructor__descriptor = +const ProtobufCMessageDescriptor pg_query__drop_user_mapping_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonArrayConstructor", - "JsonArrayConstructor", - "PgQuery__JsonArrayConstructor", + "pg_query.DropUserMappingStmt", + "DropUserMappingStmt", + "PgQuery__DropUserMappingStmt", "pg_query", - sizeof(PgQuery__JsonArrayConstructor), - 4, - pg_query__json_array_constructor__field_descriptors, - pg_query__json_array_constructor__field_indices_by_name, - 1, pg_query__json_array_constructor__number_ranges, - (ProtobufCMessageInit) pg_query__json_array_constructor__init, + sizeof(PgQuery__DropUserMappingStmt), + 3, + pg_query__drop_user_mapping_stmt__field_descriptors, + pg_query__drop_user_mapping_stmt__field_indices_by_name, + 1, pg_query__drop_user_mapping_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__drop_user_mapping_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_array_query_constructor__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__import_foreign_schema_stmt__field_descriptors[6] = { { - "query", + "server_name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayQueryConstructor, query), - &pg_query__node__descriptor, + offsetof(PgQuery__ImportForeignSchemaStmt, server_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "output", + "remote_schema", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayQueryConstructor, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__ImportForeignSchemaStmt, remote_schema), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "format", + "local_schema", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayQueryConstructor, format), - &pg_query__json_format__descriptor, + offsetof(PgQuery__ImportForeignSchemaStmt, local_schema), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "absent_on_null", + "list_type", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayQueryConstructor, absent_on_null), - NULL, + offsetof(PgQuery__ImportForeignSchemaStmt, list_type), + &pg_query__import_foreign_schema_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "table_list", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayQueryConstructor, location), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ImportForeignSchemaStmt, n_table_list), + offsetof(PgQuery__ImportForeignSchemaStmt, table_list), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "options", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ImportForeignSchemaStmt, n_options), + offsetof(PgQuery__ImportForeignSchemaStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_array_query_constructor__field_indices_by_name[] = { - 3, /* field[3] = absent_on_null */ - 2, /* field[2] = format */ - 4, /* field[4] = location */ - 1, /* field[1] = output */ - 0, /* field[0] = query */ +static const unsigned pg_query__import_foreign_schema_stmt__field_indices_by_name[] = { + 3, /* field[3] = list_type */ + 2, /* field[2] = local_schema */ + 5, /* field[5] = options */ + 1, /* field[1] = remote_schema */ + 0, /* field[0] = server_name */ + 4, /* field[4] = table_list */ }; -static const ProtobufCIntRange pg_query__json_array_query_constructor__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__import_foreign_schema_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__json_array_query_constructor__descriptor = +const ProtobufCMessageDescriptor pg_query__import_foreign_schema_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonArrayQueryConstructor", - "JsonArrayQueryConstructor", - "PgQuery__JsonArrayQueryConstructor", + "pg_query.ImportForeignSchemaStmt", + "ImportForeignSchemaStmt", + "PgQuery__ImportForeignSchemaStmt", "pg_query", - sizeof(PgQuery__JsonArrayQueryConstructor), - 5, - pg_query__json_array_query_constructor__field_descriptors, - pg_query__json_array_query_constructor__field_indices_by_name, - 1, pg_query__json_array_query_constructor__number_ranges, - (ProtobufCMessageInit) pg_query__json_array_query_constructor__init, + sizeof(PgQuery__ImportForeignSchemaStmt), + 6, + pg_query__import_foreign_schema_stmt__field_descriptors, + pg_query__import_foreign_schema_stmt__field_indices_by_name, + 1, pg_query__import_foreign_schema_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__import_foreign_schema_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_agg_constructor__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__create_policy_stmt__field_descriptors[7] = { { - "output", + "policy_name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonAggConstructor, output), - &pg_query__json_output__descriptor, + offsetof(PgQuery__CreatePolicyStmt, policy_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_filter", + "table", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonAggConstructor, agg_filter), - &pg_query__node__descriptor, + offsetof(PgQuery__CreatePolicyStmt, table), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "agg_order", + "cmd_name", 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreatePolicyStmt, cmd_name), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "permissive", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreatePolicyStmt, permissive), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "roles", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__JsonAggConstructor, n_agg_order), - offsetof(PgQuery__JsonAggConstructor, agg_order), + offsetof(PgQuery__CreatePolicyStmt, n_roles), + offsetof(PgQuery__CreatePolicyStmt, roles), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "over", - 4, + "qual", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonAggConstructor, over), - &pg_query__window_def__descriptor, + offsetof(PgQuery__CreatePolicyStmt, qual), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 5, + "with_check", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonAggConstructor, location), - NULL, + offsetof(PgQuery__CreatePolicyStmt, with_check), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_agg_constructor__field_indices_by_name[] = { - 1, /* field[1] = agg_filter */ - 2, /* field[2] = agg_order */ - 4, /* field[4] = location */ - 0, /* field[0] = output */ - 3, /* field[3] = over */ +static const unsigned pg_query__create_policy_stmt__field_indices_by_name[] = { + 2, /* field[2] = cmd_name */ + 3, /* field[3] = permissive */ + 0, /* field[0] = policy_name */ + 5, /* field[5] = qual */ + 4, /* field[4] = roles */ + 1, /* field[1] = table */ + 6, /* field[6] = with_check */ }; -static const ProtobufCIntRange pg_query__json_agg_constructor__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_policy_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__json_agg_constructor__descriptor = +const ProtobufCMessageDescriptor pg_query__create_policy_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonAggConstructor", - "JsonAggConstructor", - "PgQuery__JsonAggConstructor", + "pg_query.CreatePolicyStmt", + "CreatePolicyStmt", + "PgQuery__CreatePolicyStmt", "pg_query", - sizeof(PgQuery__JsonAggConstructor), - 5, - pg_query__json_agg_constructor__field_descriptors, - pg_query__json_agg_constructor__field_indices_by_name, - 1, pg_query__json_agg_constructor__number_ranges, - (ProtobufCMessageInit) pg_query__json_agg_constructor__init, + sizeof(PgQuery__CreatePolicyStmt), + 7, + pg_query__create_policy_stmt__field_descriptors, + pg_query__create_policy_stmt__field_indices_by_name, + 1, pg_query__create_policy_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_policy_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__json_object_agg__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__alter_policy_stmt__field_descriptors[5] = { { - "constructor", + "policy_name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectAgg, constructor), - &pg_query__json_agg_constructor__descriptor, + offsetof(PgQuery__AlterPolicyStmt, policy_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", + "table", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectAgg, arg), - &pg_query__json_key_value__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "absent_on_null", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectAgg, absent_on_null), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "unique", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonObjectAgg, unique), - NULL, + offsetof(PgQuery__AlterPolicyStmt, table), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__json_object_agg__field_indices_by_name[] = { - 2, /* field[2] = absent_on_null */ - 1, /* field[1] = arg */ - 0, /* field[0] = constructor */ - 3, /* field[3] = unique */ -}; -static const ProtobufCIntRange pg_query__json_object_agg__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__json_object_agg__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonObjectAgg", - "JsonObjectAgg", - "PgQuery__JsonObjectAgg", - "pg_query", - sizeof(PgQuery__JsonObjectAgg), - 4, - pg_query__json_object_agg__field_descriptors, - pg_query__json_object_agg__field_indices_by_name, - 1, pg_query__json_object_agg__number_ranges, - (ProtobufCMessageInit) pg_query__json_object_agg__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__json_array_agg__field_descriptors[3] = -{ { - "constructor", - 1, - PROTOBUF_C_LABEL_NONE, + "roles", + 3, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayAgg, constructor), - &pg_query__json_agg_constructor__descriptor, + offsetof(PgQuery__AlterPolicyStmt, n_roles), + offsetof(PgQuery__AlterPolicyStmt, roles), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg", - 2, + "qual", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayAgg, arg), - &pg_query__json_value_expr__descriptor, + offsetof(PgQuery__AlterPolicyStmt, qual), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "absent_on_null", - 3, + "with_check", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__JsonArrayAgg, absent_on_null), - NULL, + offsetof(PgQuery__AlterPolicyStmt, with_check), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__json_array_agg__field_indices_by_name[] = { - 2, /* field[2] = absent_on_null */ - 1, /* field[1] = arg */ - 0, /* field[0] = constructor */ +static const unsigned pg_query__alter_policy_stmt__field_indices_by_name[] = { + 0, /* field[0] = policy_name */ + 3, /* field[3] = qual */ + 2, /* field[2] = roles */ + 1, /* field[1] = table */ + 4, /* field[4] = with_check */ }; -static const ProtobufCIntRange pg_query__json_array_agg__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_policy_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__json_array_agg__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_policy_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.JsonArrayAgg", - "JsonArrayAgg", - "PgQuery__JsonArrayAgg", + "pg_query.AlterPolicyStmt", + "AlterPolicyStmt", + "PgQuery__AlterPolicyStmt", "pg_query", - sizeof(PgQuery__JsonArrayAgg), - 3, - pg_query__json_array_agg__field_descriptors, - pg_query__json_array_agg__field_indices_by_name, - 1, pg_query__json_array_agg__number_ranges, - (ProtobufCMessageInit) pg_query__json_array_agg__init, + sizeof(PgQuery__AlterPolicyStmt), + 5, + pg_query__alter_policy_stmt__field_descriptors, + pg_query__alter_policy_stmt__field_indices_by_name, + 1, pg_query__alter_policy_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_policy_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__raw_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__create_am_stmt__field_descriptors[3] = { { - "stmt", + "amname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RawStmt, stmt), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateAmStmt, amname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stmt_location", + "handler_name", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__RawStmt, stmt_location), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateAmStmt, n_handler_name), + offsetof(PgQuery__CreateAmStmt, handler_name), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stmt_len", + "amtype", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RawStmt, stmt_len), - NULL, + offsetof(PgQuery__CreateAmStmt, amtype), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__raw_stmt__field_indices_by_name[] = { - 0, /* field[0] = stmt */ - 2, /* field[2] = stmt_len */ - 1, /* field[1] = stmt_location */ +static const unsigned pg_query__create_am_stmt__field_indices_by_name[] = { + 0, /* field[0] = amname */ + 2, /* field[2] = amtype */ + 1, /* field[1] = handler_name */ }; -static const ProtobufCIntRange pg_query__raw_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_am_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__raw_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_am_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RawStmt", - "RawStmt", - "PgQuery__RawStmt", + "pg_query.CreateAmStmt", + "CreateAmStmt", + "PgQuery__CreateAmStmt", "pg_query", - sizeof(PgQuery__RawStmt), + sizeof(PgQuery__CreateAmStmt), 3, - pg_query__raw_stmt__field_descriptors, - pg_query__raw_stmt__field_indices_by_name, - 1, pg_query__raw_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__raw_stmt__init, + pg_query__create_am_stmt__field_descriptors, + pg_query__create_am_stmt__field_indices_by_name, + 1, pg_query__create_am_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_am_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__insert_stmt__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__create_trig_stmt__field_descriptors[15] = { { - "relation", + "replace", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__InsertStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__CreateTrigStmt, replace), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cols", + "isconstraint", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__InsertStmt, n_cols), - offsetof(PgQuery__InsertStmt, cols), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateTrigStmt, isconstraint), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "select_stmt", + "trigname", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__InsertStmt, select_stmt), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateTrigStmt, trigname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "on_conflict_clause", + "relation", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__InsertStmt, on_conflict_clause), - &pg_query__on_conflict_clause__descriptor, + offsetof(PgQuery__CreateTrigStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning_list", + "funcname", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__InsertStmt, n_returning_list), - offsetof(PgQuery__InsertStmt, returning_list), + offsetof(PgQuery__CreateTrigStmt, n_funcname), + offsetof(PgQuery__CreateTrigStmt, funcname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "with_clause", + "args", 6, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__InsertStmt, with_clause), - &pg_query__with_clause__descriptor, + offsetof(PgQuery__CreateTrigStmt, n_args), + offsetof(PgQuery__CreateTrigStmt, args), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "override", + "row", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__InsertStmt, override), - &pg_query__overriding_kind__descriptor, + offsetof(PgQuery__CreateTrigStmt, row), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__insert_stmt__field_indices_by_name[] = { - 1, /* field[1] = cols */ - 3, /* field[3] = on_conflict_clause */ - 6, /* field[6] = override */ - 0, /* field[0] = relation */ - 4, /* field[4] = returning_list */ - 2, /* field[2] = select_stmt */ - 5, /* field[5] = with_clause */ -}; -static const ProtobufCIntRange pg_query__insert_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor pg_query__insert_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.InsertStmt", - "InsertStmt", - "PgQuery__InsertStmt", - "pg_query", - sizeof(PgQuery__InsertStmt), - 7, - pg_query__insert_stmt__field_descriptors, - pg_query__insert_stmt__field_indices_by_name, - 1, pg_query__insert_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__insert_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__delete_stmt__field_descriptors[5] = -{ { - "relation", - 1, + "timing", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DeleteStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__CreateTrigStmt, timing), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "using_clause", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DeleteStmt, n_using_clause), - offsetof(PgQuery__DeleteStmt, using_clause), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", - 3, + "events", + 9, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DeleteStmt, where_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateTrigStmt, events), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning_list", - 4, + "columns", + 10, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DeleteStmt, n_returning_list), - offsetof(PgQuery__DeleteStmt, returning_list), + offsetof(PgQuery__CreateTrigStmt, n_columns), + offsetof(PgQuery__CreateTrigStmt, columns), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "with_clause", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__DeleteStmt, with_clause), - &pg_query__with_clause__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__delete_stmt__field_indices_by_name[] = { - 0, /* field[0] = relation */ - 3, /* field[3] = returning_list */ - 1, /* field[1] = using_clause */ - 2, /* field[2] = where_clause */ - 4, /* field[4] = with_clause */ -}; -static const ProtobufCIntRange pg_query__delete_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor pg_query__delete_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DeleteStmt", - "DeleteStmt", - "PgQuery__DeleteStmt", - "pg_query", - sizeof(PgQuery__DeleteStmt), - 5, - pg_query__delete_stmt__field_descriptors, - pg_query__delete_stmt__field_indices_by_name, - 1, pg_query__delete_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__delete_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__update_stmt__field_descriptors[6] = -{ - { - "relation", - 1, + "when_clause", + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__UpdateStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__CreateTrigStmt, when_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "target_list", - 2, + "transition_rels", + 12, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__UpdateStmt, n_target_list), - offsetof(PgQuery__UpdateStmt, target_list), + offsetof(PgQuery__CreateTrigStmt, n_transition_rels), + offsetof(PgQuery__CreateTrigStmt, transition_rels), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", - 3, + "deferrable", + 13, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__UpdateStmt, where_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateTrigStmt, deferrable), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "from_clause", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__UpdateStmt, n_from_clause), - offsetof(PgQuery__UpdateStmt, from_clause), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "returning_list", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__UpdateStmt, n_returning_list), - offsetof(PgQuery__UpdateStmt, returning_list), - &pg_query__node__descriptor, + "initdeferred", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateTrigStmt, initdeferred), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "with_clause", - 6, + "constrrel", + 15, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__UpdateStmt, with_clause), - &pg_query__with_clause__descriptor, + offsetof(PgQuery__CreateTrigStmt, constrrel), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__update_stmt__field_indices_by_name[] = { - 3, /* field[3] = from_clause */ - 0, /* field[0] = relation */ - 4, /* field[4] = returning_list */ - 1, /* field[1] = target_list */ - 2, /* field[2] = where_clause */ - 5, /* field[5] = with_clause */ +static const unsigned pg_query__create_trig_stmt__field_indices_by_name[] = { + 5, /* field[5] = args */ + 9, /* field[9] = columns */ + 14, /* field[14] = constrrel */ + 12, /* field[12] = deferrable */ + 8, /* field[8] = events */ + 4, /* field[4] = funcname */ + 13, /* field[13] = initdeferred */ + 1, /* field[1] = isconstraint */ + 3, /* field[3] = relation */ + 0, /* field[0] = replace */ + 6, /* field[6] = row */ + 7, /* field[7] = timing */ + 11, /* field[11] = transition_rels */ + 2, /* field[2] = trigname */ + 10, /* field[10] = when_clause */ }; -static const ProtobufCIntRange pg_query__update_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_trig_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 15 } }; -const ProtobufCMessageDescriptor pg_query__update_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_trig_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.UpdateStmt", - "UpdateStmt", - "PgQuery__UpdateStmt", + "pg_query.CreateTrigStmt", + "CreateTrigStmt", + "PgQuery__CreateTrigStmt", "pg_query", - sizeof(PgQuery__UpdateStmt), - 6, - pg_query__update_stmt__field_descriptors, - pg_query__update_stmt__field_indices_by_name, - 1, pg_query__update_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__update_stmt__init, + sizeof(PgQuery__CreateTrigStmt), + 15, + pg_query__create_trig_stmt__field_descriptors, + pg_query__create_trig_stmt__field_indices_by_name, + 1, pg_query__create_trig_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_trig_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__merge_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__create_event_trig_stmt__field_descriptors[4] = { { - "relation", + "trigname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__CreateEventTrigStmt, trigname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "source_relation", + "eventname", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeStmt, source_relation), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateEventTrigStmt, eventname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "join_condition", + "whenclause", 3, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__MergeStmt, join_condition), + offsetof(PgQuery__CreateEventTrigStmt, n_whenclause), + offsetof(PgQuery__CreateEventTrigStmt, whenclause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "merge_when_clauses", + "funcname", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MergeStmt, n_merge_when_clauses), - offsetof(PgQuery__MergeStmt, merge_when_clauses), + offsetof(PgQuery__CreateEventTrigStmt, n_funcname), + offsetof(PgQuery__CreateEventTrigStmt, funcname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__create_event_trig_stmt__field_indices_by_name[] = { + 1, /* field[1] = eventname */ + 3, /* field[3] = funcname */ + 0, /* field[0] = trigname */ + 2, /* field[2] = whenclause */ +}; +static const ProtobufCIntRange pg_query__create_event_trig_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__create_event_trig_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreateEventTrigStmt", + "CreateEventTrigStmt", + "PgQuery__CreateEventTrigStmt", + "pg_query", + sizeof(PgQuery__CreateEventTrigStmt), + 4, + pg_query__create_event_trig_stmt__field_descriptors, + pg_query__create_event_trig_stmt__field_indices_by_name, + 1, pg_query__create_event_trig_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_event_trig_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_event_trig_stmt__field_descriptors[2] = +{ { - "returning_list", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__MergeStmt, n_returning_list), - offsetof(PgQuery__MergeStmt, returning_list), - &pg_query__node__descriptor, + "trigname", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterEventTrigStmt, trigname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "with_clause", - 6, + "tgenabled", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__MergeStmt, with_clause), - &pg_query__with_clause__descriptor, + offsetof(PgQuery__AlterEventTrigStmt, tgenabled), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__merge_stmt__field_indices_by_name[] = { - 2, /* field[2] = join_condition */ - 3, /* field[3] = merge_when_clauses */ - 0, /* field[0] = relation */ - 4, /* field[4] = returning_list */ - 1, /* field[1] = source_relation */ - 5, /* field[5] = with_clause */ +static const unsigned pg_query__alter_event_trig_stmt__field_indices_by_name[] = { + 1, /* field[1] = tgenabled */ + 0, /* field[0] = trigname */ }; -static const ProtobufCIntRange pg_query__merge_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_event_trig_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__merge_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_event_trig_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.MergeStmt", - "MergeStmt", - "PgQuery__MergeStmt", - "pg_query", - sizeof(PgQuery__MergeStmt), - 6, - pg_query__merge_stmt__field_descriptors, - pg_query__merge_stmt__field_indices_by_name, - 1, pg_query__merge_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__merge_stmt__init, + "pg_query.AlterEventTrigStmt", + "AlterEventTrigStmt", + "PgQuery__AlterEventTrigStmt", + "pg_query", + sizeof(PgQuery__AlterEventTrigStmt), + 2, + pg_query__alter_event_trig_stmt__field_descriptors, + pg_query__alter_event_trig_stmt__field_indices_by_name, + 1, pg_query__alter_event_trig_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_event_trig_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__select_stmt__field_descriptors[20] = +static const ProtobufCFieldDescriptor pg_query__create_plang_stmt__field_descriptors[6] = { { - "distinct_clause", + "replace", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_distinct_clause), - offsetof(PgQuery__SelectStmt, distinct_clause), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreatePLangStmt, replace), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "into_clause", + "plname", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, into_clause), - &pg_query__into_clause__descriptor, + offsetof(PgQuery__CreatePLangStmt, plname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "target_list", + "plhandler", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_target_list), - offsetof(PgQuery__SelectStmt, target_list), + offsetof(PgQuery__CreatePLangStmt, n_plhandler), + offsetof(PgQuery__CreatePLangStmt, plhandler), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "from_clause", + "plinline", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_from_clause), - offsetof(PgQuery__SelectStmt, from_clause), + offsetof(PgQuery__CreatePLangStmt, n_plinline), + offsetof(PgQuery__CreatePLangStmt, plinline), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", + "plvalidator", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, where_clause), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "group_clause", - 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_group_clause), - offsetof(PgQuery__SelectStmt, group_clause), + offsetof(PgQuery__CreatePLangStmt, n_plvalidator), + offsetof(PgQuery__CreatePLangStmt, plvalidator), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "group_distinct", - 7, + "pltrusted", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, group_distinct), + offsetof(PgQuery__CreatePLangStmt, pltrusted), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__create_plang_stmt__field_indices_by_name[] = { + 2, /* field[2] = plhandler */ + 3, /* field[3] = plinline */ + 1, /* field[1] = plname */ + 5, /* field[5] = pltrusted */ + 4, /* field[4] = plvalidator */ + 0, /* field[0] = replace */ +}; +static const ProtobufCIntRange pg_query__create_plang_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__create_plang_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreatePLangStmt", + "CreatePLangStmt", + "PgQuery__CreatePLangStmt", + "pg_query", + sizeof(PgQuery__CreatePLangStmt), + 6, + pg_query__create_plang_stmt__field_descriptors, + pg_query__create_plang_stmt__field_indices_by_name, + 1, pg_query__create_plang_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_plang_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_role_stmt__field_descriptors[3] = +{ { - "having_clause", - 8, + "stmt_type", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, having_clause), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "window_clause", - 9, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_window_clause), - offsetof(PgQuery__SelectStmt, window_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateRoleStmt, stmt_type), + &pg_query__role_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "values_lists", - 10, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_values_lists), - offsetof(PgQuery__SelectStmt, values_lists), - &pg_query__node__descriptor, + "role", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateRoleStmt, role), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sort_clause", - 11, + "options", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_sort_clause), - offsetof(PgQuery__SelectStmt, sort_clause), + offsetof(PgQuery__CreateRoleStmt, n_options), + offsetof(PgQuery__CreateRoleStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__create_role_stmt__field_indices_by_name[] = { + 2, /* field[2] = options */ + 1, /* field[1] = role */ + 0, /* field[0] = stmt_type */ +}; +static const ProtobufCIntRange pg_query__create_role_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__create_role_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreateRoleStmt", + "CreateRoleStmt", + "PgQuery__CreateRoleStmt", + "pg_query", + sizeof(PgQuery__CreateRoleStmt), + 3, + pg_query__create_role_stmt__field_descriptors, + pg_query__create_role_stmt__field_indices_by_name, + 1, pg_query__create_role_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_role_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_role_stmt__field_descriptors[3] = +{ { - "limit_offset", - 12, + "role", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, limit_offset), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterRoleStmt, role), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "limit_count", - 13, - PROTOBUF_C_LABEL_NONE, + "options", + 2, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, limit_count), + offsetof(PgQuery__AlterRoleStmt, n_options), + offsetof(PgQuery__AlterRoleStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "limit_option", - 14, + "action", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, limit_option), - &pg_query__limit_option__descriptor, + offsetof(PgQuery__AlterRoleStmt, action), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "locking_clause", - 15, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SelectStmt, n_locking_clause), - offsetof(PgQuery__SelectStmt, locking_clause), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_role_stmt__field_indices_by_name[] = { + 2, /* field[2] = action */ + 1, /* field[1] = options */ + 0, /* field[0] = role */ +}; +static const ProtobufCIntRange pg_query__alter_role_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__alter_role_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterRoleStmt", + "AlterRoleStmt", + "PgQuery__AlterRoleStmt", + "pg_query", + sizeof(PgQuery__AlterRoleStmt), + 3, + pg_query__alter_role_stmt__field_descriptors, + pg_query__alter_role_stmt__field_indices_by_name, + 1, pg_query__alter_role_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_role_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_role_set_stmt__field_descriptors[3] = +{ { - "with_clause", - 16, + "role", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, with_clause), - &pg_query__with_clause__descriptor, + offsetof(PgQuery__AlterRoleSetStmt, role), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "op", - 17, + "database", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, op), - &pg_query__set_operation__descriptor, + offsetof(PgQuery__AlterRoleSetStmt, database), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "all", - 18, + "setstmt", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, all), - NULL, + offsetof(PgQuery__AlterRoleSetStmt, setstmt), + &pg_query__variable_set_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_role_set_stmt__field_indices_by_name[] = { + 1, /* field[1] = database */ + 0, /* field[0] = role */ + 2, /* field[2] = setstmt */ +}; +static const ProtobufCIntRange pg_query__alter_role_set_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__alter_role_set_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterRoleSetStmt", + "AlterRoleSetStmt", + "PgQuery__AlterRoleSetStmt", + "pg_query", + sizeof(PgQuery__AlterRoleSetStmt), + 3, + pg_query__alter_role_set_stmt__field_descriptors, + pg_query__alter_role_set_stmt__field_indices_by_name, + 1, pg_query__alter_role_set_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_role_set_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__drop_role_stmt__field_descriptors[2] = +{ { - "larg", - 19, - PROTOBUF_C_LABEL_NONE, + "roles", + 1, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, larg), - &pg_query__select_stmt__descriptor, + offsetof(PgQuery__DropRoleStmt, n_roles), + offsetof(PgQuery__DropRoleStmt, roles), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rarg", - 20, + "missing_ok", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SelectStmt, rarg), - &pg_query__select_stmt__descriptor, + offsetof(PgQuery__DropRoleStmt, missing_ok), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__select_stmt__field_indices_by_name[] = { - 17, /* field[17] = all */ - 0, /* field[0] = distinct_clause */ - 3, /* field[3] = from_clause */ - 5, /* field[5] = group_clause */ - 6, /* field[6] = group_distinct */ - 7, /* field[7] = having_clause */ - 1, /* field[1] = into_clause */ - 18, /* field[18] = larg */ - 12, /* field[12] = limit_count */ - 11, /* field[11] = limit_offset */ - 13, /* field[13] = limit_option */ - 14, /* field[14] = locking_clause */ - 16, /* field[16] = op */ - 19, /* field[19] = rarg */ - 10, /* field[10] = sort_clause */ - 2, /* field[2] = target_list */ - 9, /* field[9] = values_lists */ - 4, /* field[4] = where_clause */ - 8, /* field[8] = window_clause */ - 15, /* field[15] = with_clause */ +static const unsigned pg_query__drop_role_stmt__field_indices_by_name[] = { + 1, /* field[1] = missing_ok */ + 0, /* field[0] = roles */ }; -static const ProtobufCIntRange pg_query__select_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__drop_role_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 20 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__select_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__drop_role_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SelectStmt", - "SelectStmt", - "PgQuery__SelectStmt", + "pg_query.DropRoleStmt", + "DropRoleStmt", + "PgQuery__DropRoleStmt", "pg_query", - sizeof(PgQuery__SelectStmt), - 20, - pg_query__select_stmt__field_descriptors, - pg_query__select_stmt__field_indices_by_name, - 1, pg_query__select_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__select_stmt__init, + sizeof(PgQuery__DropRoleStmt), + 2, + pg_query__drop_role_stmt__field_descriptors, + pg_query__drop_role_stmt__field_indices_by_name, + 1, pg_query__drop_role_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__drop_role_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__set_operation_stmt__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__create_seq_stmt__field_descriptors[5] = { { - "op", + "sequence", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SetOperationStmt, op), - &pg_query__set_operation__descriptor, + offsetof(PgQuery__CreateSeqStmt, sequence), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "all", + "options", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__SetOperationStmt, all), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateSeqStmt, n_options), + offsetof(PgQuery__CreateSeqStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "larg", + "owner_id", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SetOperationStmt, larg), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateSeqStmt, owner_id), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rarg", + "for_identity", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SetOperationStmt, rarg), - &pg_query__node__descriptor, + offsetof(PgQuery__CreateSeqStmt, for_identity), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "col_types", + "if_not_exists", 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SetOperationStmt, n_col_types), - offsetof(PgQuery__SetOperationStmt, col_types), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateSeqStmt, if_not_exists), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__create_seq_stmt__field_indices_by_name[] = { + 3, /* field[3] = for_identity */ + 4, /* field[4] = if_not_exists */ + 1, /* field[1] = options */ + 2, /* field[2] = owner_id */ + 0, /* field[0] = sequence */ +}; +static const ProtobufCIntRange pg_query__create_seq_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__create_seq_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreateSeqStmt", + "CreateSeqStmt", + "PgQuery__CreateSeqStmt", + "pg_query", + sizeof(PgQuery__CreateSeqStmt), + 5, + pg_query__create_seq_stmt__field_descriptors, + pg_query__create_seq_stmt__field_indices_by_name, + 1, pg_query__create_seq_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_seq_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_seq_stmt__field_descriptors[4] = +{ { - "col_typmods", - 6, - PROTOBUF_C_LABEL_REPEATED, + "sequence", + 1, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SetOperationStmt, n_col_typmods), - offsetof(PgQuery__SetOperationStmt, col_typmods), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterSeqStmt, sequence), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "col_collations", - 7, + "options", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SetOperationStmt, n_col_collations), - offsetof(PgQuery__SetOperationStmt, col_collations), + offsetof(PgQuery__AlterSeqStmt, n_options), + offsetof(PgQuery__AlterSeqStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "group_clauses", - 8, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SetOperationStmt, n_group_clauses), - offsetof(PgQuery__SetOperationStmt, group_clauses), - &pg_query__node__descriptor, + "for_identity", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterSeqStmt, for_identity), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__set_operation_stmt__field_indices_by_name[] = { - 1, /* field[1] = all */ - 6, /* field[6] = col_collations */ - 4, /* field[4] = col_types */ - 5, /* field[5] = col_typmods */ - 7, /* field[7] = group_clauses */ - 2, /* field[2] = larg */ - 0, /* field[0] = op */ - 3, /* field[3] = rarg */ -}; -static const ProtobufCIntRange pg_query__set_operation_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 8 } -}; -const ProtobufCMessageDescriptor pg_query__set_operation_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SetOperationStmt", - "SetOperationStmt", - "PgQuery__SetOperationStmt", - "pg_query", - sizeof(PgQuery__SetOperationStmt), - 8, - pg_query__set_operation_stmt__field_descriptors, - pg_query__set_operation_stmt__field_indices_by_name, - 1, pg_query__set_operation_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__set_operation_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__return_stmt__field_descriptors[1] = -{ { - "returnval", - 1, + "missing_ok", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ReturnStmt, returnval), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterSeqStmt, missing_ok), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__return_stmt__field_indices_by_name[] = { - 0, /* field[0] = returnval */ +static const unsigned pg_query__alter_seq_stmt__field_indices_by_name[] = { + 2, /* field[2] = for_identity */ + 3, /* field[3] = missing_ok */ + 1, /* field[1] = options */ + 0, /* field[0] = sequence */ }; -static const ProtobufCIntRange pg_query__return_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_seq_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__return_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_seq_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ReturnStmt", - "ReturnStmt", - "PgQuery__ReturnStmt", + "pg_query.AlterSeqStmt", + "AlterSeqStmt", + "PgQuery__AlterSeqStmt", "pg_query", - sizeof(PgQuery__ReturnStmt), - 1, - pg_query__return_stmt__field_descriptors, - pg_query__return_stmt__field_indices_by_name, - 1, pg_query__return_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__return_stmt__init, + sizeof(PgQuery__AlterSeqStmt), + 4, + pg_query__alter_seq_stmt__field_descriptors, + pg_query__alter_seq_stmt__field_indices_by_name, + 1, pg_query__alter_seq_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_seq_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__plassign_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__define_stmt__field_descriptors[7] = { { - "name", + "kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__PLAssignStmt, name), + offsetof(PgQuery__DefineStmt, kind), + &pg_query__object_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "indirection", + "oldstyle", 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__DefineStmt, oldstyle), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "defnames", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PLAssignStmt, n_indirection), - offsetof(PgQuery__PLAssignStmt, indirection), + offsetof(PgQuery__DefineStmt, n_defnames), + offsetof(PgQuery__DefineStmt, defnames), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nnames", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__PLAssignStmt, nnames), + "args", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__DefineStmt, n_args), + offsetof(PgQuery__DefineStmt, args), + &pg_query__node__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "definition", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__DefineStmt, n_definition), + offsetof(PgQuery__DefineStmt, definition), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "val", - 4, + "if_not_exists", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__PLAssignStmt, val), - &pg_query__select_stmt__descriptor, + offsetof(PgQuery__DefineStmt, if_not_exists), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 5, + "replace", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__PLAssignStmt, location), + offsetof(PgQuery__DefineStmt, replace), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__plassign_stmt__field_indices_by_name[] = { - 1, /* field[1] = indirection */ - 4, /* field[4] = location */ - 0, /* field[0] = name */ - 2, /* field[2] = nnames */ - 3, /* field[3] = val */ +static const unsigned pg_query__define_stmt__field_indices_by_name[] = { + 3, /* field[3] = args */ + 4, /* field[4] = definition */ + 2, /* field[2] = defnames */ + 5, /* field[5] = if_not_exists */ + 0, /* field[0] = kind */ + 1, /* field[1] = oldstyle */ + 6, /* field[6] = replace */ }; -static const ProtobufCIntRange pg_query__plassign_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__define_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__plassign_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__define_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PLAssignStmt", - "PLAssignStmt", - "PgQuery__PLAssignStmt", + "pg_query.DefineStmt", + "DefineStmt", + "PgQuery__DefineStmt", "pg_query", - sizeof(PgQuery__PLAssignStmt), - 5, - pg_query__plassign_stmt__field_descriptors, - pg_query__plassign_stmt__field_indices_by_name, - 1, pg_query__plassign_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__plassign_stmt__init, + sizeof(PgQuery__DefineStmt), + 7, + pg_query__define_stmt__field_descriptors, + pg_query__define_stmt__field_indices_by_name, + 1, pg_query__define_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__define_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_schema_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_domain_stmt__field_descriptors[4] = { { - "schemaname", + "domainname", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSchemaStmt, schemaname), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateDomainStmt, n_domainname), + offsetof(PgQuery__CreateDomainStmt, domainname), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "authrole", + "type_name", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSchemaStmt, authrole), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__CreateDomainStmt, type_name), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "schema_elts", + "coll_clause", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateSchemaStmt, n_schema_elts), - offsetof(PgQuery__CreateSchemaStmt, schema_elts), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateDomainStmt, coll_clause), + &pg_query__collate_clause__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", + "constraints", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSchemaStmt, if_not_exists), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateDomainStmt, n_constraints), + offsetof(PgQuery__CreateDomainStmt, constraints), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_schema_stmt__field_indices_by_name[] = { - 1, /* field[1] = authrole */ - 3, /* field[3] = if_not_exists */ - 2, /* field[2] = schema_elts */ - 0, /* field[0] = schemaname */ +static const unsigned pg_query__create_domain_stmt__field_indices_by_name[] = { + 2, /* field[2] = coll_clause */ + 3, /* field[3] = constraints */ + 0, /* field[0] = domainname */ + 1, /* field[1] = type_name */ }; -static const ProtobufCIntRange pg_query__create_schema_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_domain_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__create_schema_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_domain_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateSchemaStmt", - "CreateSchemaStmt", - "PgQuery__CreateSchemaStmt", + "pg_query.CreateDomainStmt", + "CreateDomainStmt", + "PgQuery__CreateDomainStmt", "pg_query", - sizeof(PgQuery__CreateSchemaStmt), + sizeof(PgQuery__CreateDomainStmt), 4, - pg_query__create_schema_stmt__field_descriptors, - pg_query__create_schema_stmt__field_indices_by_name, - 1, pg_query__create_schema_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_schema_stmt__init, + pg_query__create_domain_stmt__field_descriptors, + pg_query__create_domain_stmt__field_indices_by_name, + 1, pg_query__create_domain_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_domain_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_table_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_op_class_stmt__field_descriptors[6] = { { - "relation", + "opclassname", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__CreateOpClassStmt, n_opclassname), + offsetof(PgQuery__CreateOpClassStmt, opclassname), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cmds", + "opfamilyname", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTableStmt, n_cmds), - offsetof(PgQuery__AlterTableStmt, cmds), + offsetof(PgQuery__CreateOpClassStmt, n_opfamilyname), + offsetof(PgQuery__CreateOpClassStmt, opfamilyname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objtype", + "amname", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__CreateOpClassStmt, amname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "datatype", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableStmt, missing_ok), - NULL, + offsetof(PgQuery__CreateOpClassStmt, datatype), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_table_stmt__field_indices_by_name[] = { - 1, /* field[1] = cmds */ - 3, /* field[3] = missing_ok */ - 2, /* field[2] = objtype */ - 0, /* field[0] = relation */ -}; -static const ProtobufCIntRange pg_query__alter_table_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__alter_table_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTableStmt", - "AlterTableStmt", - "PgQuery__AlterTableStmt", - "pg_query", - sizeof(PgQuery__AlterTableStmt), - 4, - pg_query__alter_table_stmt__field_descriptors, - pg_query__alter_table_stmt__field_indices_by_name, - 1, pg_query__alter_table_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_table_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__replica_identity_stmt__field_descriptors[2] = -{ { - "identity_type", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__ReplicaIdentityStmt, identity_type), + "items", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateOpClassStmt, n_items), + offsetof(PgQuery__CreateOpClassStmt, items), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", - 2, + "is_default", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ReplicaIdentityStmt, name), + offsetof(PgQuery__CreateOpClassStmt, is_default), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__replica_identity_stmt__field_indices_by_name[] = { - 0, /* field[0] = identity_type */ - 1, /* field[1] = name */ +static const unsigned pg_query__create_op_class_stmt__field_indices_by_name[] = { + 2, /* field[2] = amname */ + 3, /* field[3] = datatype */ + 5, /* field[5] = is_default */ + 4, /* field[4] = items */ + 0, /* field[0] = opclassname */ + 1, /* field[1] = opfamilyname */ }; -static const ProtobufCIntRange pg_query__replica_identity_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_op_class_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__replica_identity_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_op_class_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ReplicaIdentityStmt", - "ReplicaIdentityStmt", - "PgQuery__ReplicaIdentityStmt", + "pg_query.CreateOpClassStmt", + "CreateOpClassStmt", + "PgQuery__CreateOpClassStmt", "pg_query", - sizeof(PgQuery__ReplicaIdentityStmt), - 2, - pg_query__replica_identity_stmt__field_descriptors, - pg_query__replica_identity_stmt__field_indices_by_name, - 1, pg_query__replica_identity_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__replica_identity_stmt__init, + sizeof(PgQuery__CreateOpClassStmt), + 6, + pg_query__create_op_class_stmt__field_descriptors, + pg_query__create_op_class_stmt__field_indices_by_name, + 1, pg_query__create_op_class_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_op_class_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_table_cmd__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__create_op_class_item__field_descriptors[6] = { { - "subtype", + "itemtype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, subtype), - &pg_query__alter_table_type__descriptor, + offsetof(PgQuery__CreateOpClassItem, itemtype), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -31381,753 +37489,764 @@ static const ProtobufCFieldDescriptor pg_query__alter_table_cmd__field_descripto "name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, name), + offsetof(PgQuery__CreateOpClassItem, name), + &pg_query__object_with_args__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "num", + "number", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, num), + offsetof(PgQuery__CreateOpClassItem, number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "newowner", + "order_family", 4, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, newowner), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__CreateOpClassItem, n_order_family), + offsetof(PgQuery__CreateOpClassItem, order_family), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "def", + "class_args", 5, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, def), + offsetof(PgQuery__CreateOpClassItem, n_class_args), + offsetof(PgQuery__CreateOpClassItem, class_args), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "behavior", + "storedtype", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, behavior), - &pg_query__drop_behavior__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "missing_ok", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, missing_ok), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "recurse", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableCmd, recurse), - NULL, + offsetof(PgQuery__CreateOpClassItem, storedtype), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_table_cmd__field_indices_by_name[] = { - 5, /* field[5] = behavior */ - 4, /* field[4] = def */ - 6, /* field[6] = missing_ok */ +static const unsigned pg_query__create_op_class_item__field_indices_by_name[] = { + 4, /* field[4] = class_args */ + 0, /* field[0] = itemtype */ 1, /* field[1] = name */ - 3, /* field[3] = newowner */ - 2, /* field[2] = num */ - 7, /* field[7] = recurse */ - 0, /* field[0] = subtype */ + 2, /* field[2] = number */ + 3, /* field[3] = order_family */ + 5, /* field[5] = storedtype */ }; -static const ProtobufCIntRange pg_query__alter_table_cmd__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_op_class_item__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__alter_table_cmd__descriptor = +const ProtobufCMessageDescriptor pg_query__create_op_class_item__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTableCmd", - "AlterTableCmd", - "PgQuery__AlterTableCmd", + "pg_query.CreateOpClassItem", + "CreateOpClassItem", + "PgQuery__CreateOpClassItem", "pg_query", - sizeof(PgQuery__AlterTableCmd), - 8, - pg_query__alter_table_cmd__field_descriptors, - pg_query__alter_table_cmd__field_indices_by_name, - 1, pg_query__alter_table_cmd__number_ranges, - (ProtobufCMessageInit) pg_query__alter_table_cmd__init, + sizeof(PgQuery__CreateOpClassItem), + 6, + pg_query__create_op_class_item__field_descriptors, + pg_query__create_op_class_item__field_indices_by_name, + 1, pg_query__create_op_class_item__number_ranges, + (ProtobufCMessageInit) pg_query__create_op_class_item__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_collation_stmt__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__create_op_family_stmt__field_descriptors[2] = { { - "collname", + "opfamilyname", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterCollationStmt, n_collname), - offsetof(PgQuery__AlterCollationStmt, collname), + offsetof(PgQuery__CreateOpFamilyStmt, n_opfamilyname), + offsetof(PgQuery__CreateOpFamilyStmt, opfamilyname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "amname", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateOpFamilyStmt, amname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const unsigned pg_query__alter_collation_stmt__field_indices_by_name[] = { - 0, /* field[0] = collname */ +static const unsigned pg_query__create_op_family_stmt__field_indices_by_name[] = { + 1, /* field[1] = amname */ + 0, /* field[0] = opfamilyname */ }; -static const ProtobufCIntRange pg_query__alter_collation_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_op_family_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_collation_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_op_family_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterCollationStmt", - "AlterCollationStmt", - "PgQuery__AlterCollationStmt", + "pg_query.CreateOpFamilyStmt", + "CreateOpFamilyStmt", + "PgQuery__CreateOpFamilyStmt", "pg_query", - sizeof(PgQuery__AlterCollationStmt), - 1, - pg_query__alter_collation_stmt__field_descriptors, - pg_query__alter_collation_stmt__field_indices_by_name, - 1, pg_query__alter_collation_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_collation_stmt__init, + sizeof(PgQuery__CreateOpFamilyStmt), + 2, + pg_query__create_op_family_stmt__field_descriptors, + pg_query__create_op_family_stmt__field_indices_by_name, + 1, pg_query__create_op_family_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_op_family_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_domain_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__alter_op_family_stmt__field_descriptors[4] = { { - "subtype", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDomainStmt, subtype), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "type_name", - 2, + "opfamilyname", + 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterDomainStmt, n_type_name), - offsetof(PgQuery__AlterDomainStmt, type_name), + offsetof(PgQuery__AlterOpFamilyStmt, n_opfamilyname), + offsetof(PgQuery__AlterOpFamilyStmt, opfamilyname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", - 3, + "amname", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDomainStmt, name), + offsetof(PgQuery__AlterOpFamilyStmt, amname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "def", - 4, + "is_drop", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDomainStmt, def), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterOpFamilyStmt, is_drop), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "behavior", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDomainStmt, behavior), - &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDomainStmt, missing_ok), - NULL, + "items", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterOpFamilyStmt, n_items), + offsetof(PgQuery__AlterOpFamilyStmt, items), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_domain_stmt__field_indices_by_name[] = { - 4, /* field[4] = behavior */ - 3, /* field[3] = def */ - 5, /* field[5] = missing_ok */ - 2, /* field[2] = name */ - 0, /* field[0] = subtype */ - 1, /* field[1] = type_name */ +static const unsigned pg_query__alter_op_family_stmt__field_indices_by_name[] = { + 1, /* field[1] = amname */ + 2, /* field[2] = is_drop */ + 3, /* field[3] = items */ + 0, /* field[0] = opfamilyname */ }; -static const ProtobufCIntRange pg_query__alter_domain_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_op_family_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__alter_domain_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_op_family_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterDomainStmt", - "AlterDomainStmt", - "PgQuery__AlterDomainStmt", + "pg_query.AlterOpFamilyStmt", + "AlterOpFamilyStmt", + "PgQuery__AlterOpFamilyStmt", "pg_query", - sizeof(PgQuery__AlterDomainStmt), - 6, - pg_query__alter_domain_stmt__field_descriptors, - pg_query__alter_domain_stmt__field_indices_by_name, - 1, pg_query__alter_domain_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_domain_stmt__init, + sizeof(PgQuery__AlterOpFamilyStmt), + 4, + pg_query__alter_op_family_stmt__field_descriptors, + pg_query__alter_op_family_stmt__field_indices_by_name, + 1, pg_query__alter_op_family_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_op_family_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__grant_stmt__field_descriptors[9] = +static const ProtobufCFieldDescriptor pg_query__drop_stmt__field_descriptors[5] = { { - "is_grant", + "objects", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__GrantStmt, is_grant), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__DropStmt, n_objects), + offsetof(PgQuery__DropStmt, objects), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "targtype", + "remove_type", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantStmt, targtype), - &pg_query__grant_target_type__descriptor, + offsetof(PgQuery__DropStmt, remove_type), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objtype", + "behavior", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__DropStmt, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objects", + "missing_ok", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GrantStmt, n_objects), - offsetof(PgQuery__GrantStmt, objects), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__DropStmt, missing_ok), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "privileges", + "concurrent", 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GrantStmt, n_privileges), - offsetof(PgQuery__GrantStmt, privileges), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__DropStmt, concurrent), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__drop_stmt__field_indices_by_name[] = { + 2, /* field[2] = behavior */ + 4, /* field[4] = concurrent */ + 3, /* field[3] = missing_ok */ + 0, /* field[0] = objects */ + 1, /* field[1] = remove_type */ +}; +static const ProtobufCIntRange pg_query__drop_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__drop_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DropStmt", + "DropStmt", + "PgQuery__DropStmt", + "pg_query", + sizeof(PgQuery__DropStmt), + 5, + pg_query__drop_stmt__field_descriptors, + pg_query__drop_stmt__field_indices_by_name, + 1, pg_query__drop_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__drop_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__truncate_stmt__field_descriptors[3] = +{ { - "grantees", - 6, + "relations", + 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GrantStmt, n_grantees), - offsetof(PgQuery__GrantStmt, grantees), + offsetof(PgQuery__TruncateStmt, n_relations), + offsetof(PgQuery__TruncateStmt, relations), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grant_option", - 7, + "restart_seqs", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantStmt, grant_option), - NULL, + offsetof(PgQuery__TruncateStmt, restart_seqs), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "grantor", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__GrantStmt, grantor), - &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "behavior", - 9, + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantStmt, behavior), + offsetof(PgQuery__TruncateStmt, behavior), &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__grant_stmt__field_indices_by_name[] = { - 8, /* field[8] = behavior */ - 6, /* field[6] = grant_option */ - 5, /* field[5] = grantees */ - 7, /* field[7] = grantor */ - 0, /* field[0] = is_grant */ - 3, /* field[3] = objects */ - 2, /* field[2] = objtype */ - 4, /* field[4] = privileges */ - 1, /* field[1] = targtype */ +static const unsigned pg_query__truncate_stmt__field_indices_by_name[] = { + 2, /* field[2] = behavior */ + 0, /* field[0] = relations */ + 1, /* field[1] = restart_seqs */ }; -static const ProtobufCIntRange pg_query__grant_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__truncate_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 9 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__grant_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__truncate_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.GrantStmt", - "GrantStmt", - "PgQuery__GrantStmt", + "pg_query.TruncateStmt", + "TruncateStmt", + "PgQuery__TruncateStmt", "pg_query", - sizeof(PgQuery__GrantStmt), - 9, - pg_query__grant_stmt__field_descriptors, - pg_query__grant_stmt__field_indices_by_name, - 1, pg_query__grant_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__grant_stmt__init, + sizeof(PgQuery__TruncateStmt), + 3, + pg_query__truncate_stmt__field_descriptors, + pg_query__truncate_stmt__field_indices_by_name, + 1, pg_query__truncate_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__truncate_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__object_with_args__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__comment_stmt__field_descriptors[3] = { { - "objname", + "objtype", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ObjectWithArgs, n_objname), - offsetof(PgQuery__ObjectWithArgs, objname), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__CommentStmt, objtype), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objargs", + "object", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ObjectWithArgs, n_objargs), - offsetof(PgQuery__ObjectWithArgs, objargs), + 0, /* quantifier_offset */ + offsetof(PgQuery__CommentStmt, object), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objfuncargs", + "comment", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ObjectWithArgs, n_objfuncargs), - offsetof(PgQuery__ObjectWithArgs, objfuncargs), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "args_unspecified", - 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__ObjectWithArgs, args_unspecified), - NULL, + offsetof(PgQuery__CommentStmt, comment), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__object_with_args__field_indices_by_name[] = { - 3, /* field[3] = args_unspecified */ - 1, /* field[1] = objargs */ - 2, /* field[2] = objfuncargs */ - 0, /* field[0] = objname */ +static const unsigned pg_query__comment_stmt__field_indices_by_name[] = { + 2, /* field[2] = comment */ + 1, /* field[1] = object */ + 0, /* field[0] = objtype */ }; -static const ProtobufCIntRange pg_query__object_with_args__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__comment_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__object_with_args__descriptor = +const ProtobufCMessageDescriptor pg_query__comment_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ObjectWithArgs", - "ObjectWithArgs", - "PgQuery__ObjectWithArgs", + "pg_query.CommentStmt", + "CommentStmt", + "PgQuery__CommentStmt", "pg_query", - sizeof(PgQuery__ObjectWithArgs), - 4, - pg_query__object_with_args__field_descriptors, - pg_query__object_with_args__field_indices_by_name, - 1, pg_query__object_with_args__number_ranges, - (ProtobufCMessageInit) pg_query__object_with_args__init, + sizeof(PgQuery__CommentStmt), + 3, + pg_query__comment_stmt__field_descriptors, + pg_query__comment_stmt__field_indices_by_name, + 1, pg_query__comment_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__comment_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__access_priv__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__sec_label_stmt__field_descriptors[4] = { { - "priv_name", + "objtype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AccessPriv, priv_name), + offsetof(PgQuery__SecLabelStmt, objtype), + &pg_query__object_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cols", + "object", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AccessPriv, n_cols), - offsetof(PgQuery__AccessPriv, cols), + 0, /* quantifier_offset */ + offsetof(PgQuery__SecLabelStmt, object), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "provider", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__SecLabelStmt, provider), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "label", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__SecLabelStmt, label), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const unsigned pg_query__access_priv__field_indices_by_name[] = { - 1, /* field[1] = cols */ - 0, /* field[0] = priv_name */ +static const unsigned pg_query__sec_label_stmt__field_indices_by_name[] = { + 3, /* field[3] = label */ + 1, /* field[1] = object */ + 0, /* field[0] = objtype */ + 2, /* field[2] = provider */ }; -static const ProtobufCIntRange pg_query__access_priv__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__sec_label_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__access_priv__descriptor = +const ProtobufCMessageDescriptor pg_query__sec_label_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AccessPriv", - "AccessPriv", - "PgQuery__AccessPriv", + "pg_query.SecLabelStmt", + "SecLabelStmt", + "PgQuery__SecLabelStmt", "pg_query", - sizeof(PgQuery__AccessPriv), - 2, - pg_query__access_priv__field_descriptors, - pg_query__access_priv__field_indices_by_name, - 1, pg_query__access_priv__number_ranges, - (ProtobufCMessageInit) pg_query__access_priv__init, + sizeof(PgQuery__SecLabelStmt), + 4, + pg_query__sec_label_stmt__field_descriptors, + pg_query__sec_label_stmt__field_indices_by_name, + 1, pg_query__sec_label_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__sec_label_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__grant_role_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__declare_cursor_stmt__field_descriptors[3] = { { - "granted_roles", + "portalname", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GrantRoleStmt, n_granted_roles), - offsetof(PgQuery__GrantRoleStmt, granted_roles), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__DeclareCursorStmt, portalname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grantee_roles", + "options", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GrantRoleStmt, n_grantee_roles), - offsetof(PgQuery__GrantRoleStmt, grantee_roles), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "is_grant", - 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantRoleStmt, is_grant), - NULL, + offsetof(PgQuery__DeclareCursorStmt, options), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "opt", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__GrantRoleStmt, n_opt), - offsetof(PgQuery__GrantRoleStmt, opt), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "grantor", - 5, + "query", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantRoleStmt, grantor), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__DeclareCursorStmt, query), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__declare_cursor_stmt__field_indices_by_name[] = { + 1, /* field[1] = options */ + 0, /* field[0] = portalname */ + 2, /* field[2] = query */ +}; +static const ProtobufCIntRange pg_query__declare_cursor_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__declare_cursor_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DeclareCursorStmt", + "DeclareCursorStmt", + "PgQuery__DeclareCursorStmt", + "pg_query", + sizeof(PgQuery__DeclareCursorStmt), + 3, + pg_query__declare_cursor_stmt__field_descriptors, + pg_query__declare_cursor_stmt__field_indices_by_name, + 1, pg_query__declare_cursor_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__declare_cursor_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__close_portal_stmt__field_descriptors[1] = +{ { - "behavior", - 6, + "portalname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__GrantRoleStmt, behavior), - &pg_query__drop_behavior__descriptor, + offsetof(PgQuery__ClosePortalStmt, portalname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__grant_role_stmt__field_indices_by_name[] = { - 5, /* field[5] = behavior */ - 0, /* field[0] = granted_roles */ - 1, /* field[1] = grantee_roles */ - 4, /* field[4] = grantor */ - 2, /* field[2] = is_grant */ - 3, /* field[3] = opt */ +static const unsigned pg_query__close_portal_stmt__field_indices_by_name[] = { + 0, /* field[0] = portalname */ }; -static const ProtobufCIntRange pg_query__grant_role_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__close_portal_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__grant_role_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__close_portal_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.GrantRoleStmt", - "GrantRoleStmt", - "PgQuery__GrantRoleStmt", + "pg_query.ClosePortalStmt", + "ClosePortalStmt", + "PgQuery__ClosePortalStmt", "pg_query", - sizeof(PgQuery__GrantRoleStmt), - 6, - pg_query__grant_role_stmt__field_descriptors, - pg_query__grant_role_stmt__field_indices_by_name, - 1, pg_query__grant_role_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__grant_role_stmt__init, + sizeof(PgQuery__ClosePortalStmt), + 1, + pg_query__close_portal_stmt__field_descriptors, + pg_query__close_portal_stmt__field_indices_by_name, + 1, pg_query__close_portal_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__close_portal_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_default_privileges_stmt__field_descriptors[2] = -{ - { - "options", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterDefaultPrivilegesStmt, n_options), - offsetof(PgQuery__AlterDefaultPrivilegesStmt, options), - &pg_query__node__descriptor, +static const ProtobufCFieldDescriptor pg_query__fetch_stmt__field_descriptors[4] = +{ + { + "direction", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__FetchStmt, direction), + &pg_query__fetch_direction__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "action", + "how_many", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDefaultPrivilegesStmt, action), - &pg_query__grant_stmt__descriptor, + offsetof(PgQuery__FetchStmt, how_many), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "portalname", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__FetchStmt, portalname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ismove", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__FetchStmt, ismove), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_default_privileges_stmt__field_indices_by_name[] = { - 1, /* field[1] = action */ - 0, /* field[0] = options */ +static const unsigned pg_query__fetch_stmt__field_indices_by_name[] = { + 0, /* field[0] = direction */ + 1, /* field[1] = how_many */ + 3, /* field[3] = ismove */ + 2, /* field[2] = portalname */ }; -static const ProtobufCIntRange pg_query__alter_default_privileges_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__fetch_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__alter_default_privileges_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__fetch_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterDefaultPrivilegesStmt", - "AlterDefaultPrivilegesStmt", - "PgQuery__AlterDefaultPrivilegesStmt", + "pg_query.FetchStmt", + "FetchStmt", + "PgQuery__FetchStmt", "pg_query", - sizeof(PgQuery__AlterDefaultPrivilegesStmt), - 2, - pg_query__alter_default_privileges_stmt__field_descriptors, - pg_query__alter_default_privileges_stmt__field_indices_by_name, - 1, pg_query__alter_default_privileges_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_default_privileges_stmt__init, + sizeof(PgQuery__FetchStmt), + 4, + pg_query__fetch_stmt__field_descriptors, + pg_query__fetch_stmt__field_indices_by_name, + 1, pg_query__fetch_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__fetch_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__copy_stmt__field_descriptors[8] = +static const ProtobufCFieldDescriptor pg_query__index_stmt__field_descriptors[24] = { { - "relation", + "idxname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CopyStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__IndexStmt, idxname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "query", + "relation", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CopyStmt, query), - &pg_query__node__descriptor, + offsetof(PgQuery__IndexStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "attlist", + "access_method", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CopyStmt, n_attlist), - offsetof(PgQuery__CopyStmt, attlist), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__IndexStmt, access_method), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_from", + "table_space", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CopyStmt, is_from), - NULL, + offsetof(PgQuery__IndexStmt, table_space), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_program", + "index_params", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CopyStmt, is_program), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__IndexStmt, n_index_params), + offsetof(PgQuery__IndexStmt, index_params), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "filename", + "index_including_params", 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__CopyStmt, filename), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__IndexStmt, n_index_including_params), + offsetof(PgQuery__IndexStmt, index_including_params), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, @@ -32136,8 +38255,8 @@ static const ProtobufCFieldDescriptor pg_query__copy_stmt__field_descriptors[8] 7, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CopyStmt, n_options), - offsetof(PgQuery__CopyStmt, options), + offsetof(PgQuery__IndexStmt, n_options), + offsetof(PgQuery__IndexStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ @@ -32149,1326 +38268,1402 @@ static const ProtobufCFieldDescriptor pg_query__copy_stmt__field_descriptors[8] PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CopyStmt, where_clause), + offsetof(PgQuery__IndexStmt, where_clause), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__copy_stmt__field_indices_by_name[] = { - 2, /* field[2] = attlist */ - 5, /* field[5] = filename */ - 3, /* field[3] = is_from */ - 4, /* field[4] = is_program */ - 6, /* field[6] = options */ - 1, /* field[1] = query */ - 0, /* field[0] = relation */ - 7, /* field[7] = where_clause */ -}; -static const ProtobufCIntRange pg_query__copy_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 8 } -}; -const ProtobufCMessageDescriptor pg_query__copy_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CopyStmt", - "CopyStmt", - "PgQuery__CopyStmt", - "pg_query", - sizeof(PgQuery__CopyStmt), - 8, - pg_query__copy_stmt__field_descriptors, - pg_query__copy_stmt__field_indices_by_name, - 1, pg_query__copy_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__copy_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__variable_set_stmt__field_descriptors[4] = -{ { - "kind", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__VariableSetStmt, kind), - &pg_query__variable_set_kind__descriptor, + "exclude_op_names", + 9, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__IndexStmt, n_exclude_op_names), + offsetof(PgQuery__IndexStmt, exclude_op_names), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", - 2, + "idxcomment", + 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__VariableSetStmt, name), + offsetof(PgQuery__IndexStmt, idxcomment), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__VariableSetStmt, n_args), - offsetof(PgQuery__VariableSetStmt, args), - &pg_query__node__descriptor, + "index_oid", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__IndexStmt, index_oid), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_local", - 4, + "old_number", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__VariableSetStmt, is_local), + offsetof(PgQuery__IndexStmt, old_number), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__variable_set_stmt__field_indices_by_name[] = { - 2, /* field[2] = args */ - 3, /* field[3] = is_local */ - 0, /* field[0] = kind */ - 1, /* field[1] = name */ -}; -static const ProtobufCIntRange pg_query__variable_set_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__variable_set_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.VariableSetStmt", - "VariableSetStmt", - "PgQuery__VariableSetStmt", - "pg_query", - sizeof(PgQuery__VariableSetStmt), - 4, - pg_query__variable_set_stmt__field_descriptors, - pg_query__variable_set_stmt__field_indices_by_name, - 1, pg_query__variable_set_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__variable_set_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__variable_show_stmt__field_descriptors[1] = -{ { - "name", - 1, + "old_create_subid", + 13, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__VariableShowStmt, name), + offsetof(PgQuery__IndexStmt, old_create_subid), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__variable_show_stmt__field_indices_by_name[] = { - 0, /* field[0] = name */ -}; -static const ProtobufCIntRange pg_query__variable_show_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__variable_show_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.VariableShowStmt", - "VariableShowStmt", - "PgQuery__VariableShowStmt", - "pg_query", - sizeof(PgQuery__VariableShowStmt), - 1, - pg_query__variable_show_stmt__field_descriptors, - pg_query__variable_show_stmt__field_indices_by_name, - 1, pg_query__variable_show_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__variable_show_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__create_stmt__field_descriptors[12] = -{ { - "relation", - 1, + "old_first_relfilelocator_subid", + 14, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__IndexStmt, old_first_relfilelocator_subid), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "table_elts", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStmt, n_table_elts), - offsetof(PgQuery__CreateStmt, table_elts), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inh_relations", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStmt, n_inh_relations), - offsetof(PgQuery__CreateStmt, inh_relations), - &pg_query__node__descriptor, + "unique", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__IndexStmt, unique), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "partbound", - 4, + "nulls_not_distinct", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, partbound), - &pg_query__partition_bound_spec__descriptor, + offsetof(PgQuery__IndexStmt, nulls_not_distinct), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "partspec", - 5, + "primary", + 17, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, partspec), - &pg_query__partition_spec__descriptor, + offsetof(PgQuery__IndexStmt, primary), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "of_typename", - 6, + "isconstraint", + 18, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, of_typename), - &pg_query__type_name__descriptor, + offsetof(PgQuery__IndexStmt, isconstraint), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "constraints", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStmt, n_constraints), - offsetof(PgQuery__CreateStmt, constraints), - &pg_query__node__descriptor, + "deferrable", + 19, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__IndexStmt, deferrable), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 8, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStmt, n_options), - offsetof(PgQuery__CreateStmt, options), - &pg_query__node__descriptor, + "initdeferred", + 20, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__IndexStmt, initdeferred), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "oncommit", - 9, + "transformed", + 21, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, oncommit), - &pg_query__on_commit_action__descriptor, + offsetof(PgQuery__IndexStmt, transformed), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tablespacename", - 10, + "concurrent", + 22, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, tablespacename), + offsetof(PgQuery__IndexStmt, concurrent), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "access_method", - 11, + "if_not_exists", + 23, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, access_method), + offsetof(PgQuery__IndexStmt, if_not_exists), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", - 12, + "reset_default_tblspc", + 24, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStmt, if_not_exists), + offsetof(PgQuery__IndexStmt, reset_default_tblspc), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_stmt__field_indices_by_name[] = { - 10, /* field[10] = access_method */ - 6, /* field[6] = constraints */ - 11, /* field[11] = if_not_exists */ - 2, /* field[2] = inh_relations */ - 5, /* field[5] = of_typename */ - 8, /* field[8] = oncommit */ - 7, /* field[7] = options */ - 3, /* field[3] = partbound */ - 4, /* field[4] = partspec */ - 0, /* field[0] = relation */ - 1, /* field[1] = table_elts */ - 9, /* field[9] = tablespacename */ +static const unsigned pg_query__index_stmt__field_indices_by_name[] = { + 2, /* field[2] = access_method */ + 21, /* field[21] = concurrent */ + 18, /* field[18] = deferrable */ + 8, /* field[8] = exclude_op_names */ + 9, /* field[9] = idxcomment */ + 0, /* field[0] = idxname */ + 22, /* field[22] = if_not_exists */ + 5, /* field[5] = index_including_params */ + 10, /* field[10] = index_oid */ + 4, /* field[4] = index_params */ + 19, /* field[19] = initdeferred */ + 17, /* field[17] = isconstraint */ + 15, /* field[15] = nulls_not_distinct */ + 12, /* field[12] = old_create_subid */ + 13, /* field[13] = old_first_relfilelocator_subid */ + 11, /* field[11] = old_number */ + 6, /* field[6] = options */ + 16, /* field[16] = primary */ + 1, /* field[1] = relation */ + 23, /* field[23] = reset_default_tblspc */ + 3, /* field[3] = table_space */ + 20, /* field[20] = transformed */ + 14, /* field[14] = unique */ + 7, /* field[7] = where_clause */ }; -static const ProtobufCIntRange pg_query__create_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__index_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 12 } + { 0, 24 } }; -const ProtobufCMessageDescriptor pg_query__create_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__index_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateStmt", - "CreateStmt", - "PgQuery__CreateStmt", + "pg_query.IndexStmt", + "IndexStmt", + "PgQuery__IndexStmt", "pg_query", - sizeof(PgQuery__CreateStmt), - 12, - pg_query__create_stmt__field_descriptors, - pg_query__create_stmt__field_indices_by_name, - 1, pg_query__create_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_stmt__init, + sizeof(PgQuery__IndexStmt), + 24, + pg_query__index_stmt__field_descriptors, + pg_query__index_stmt__field_indices_by_name, + 1, pg_query__index_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__index_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__constraint__field_descriptors[31] = +static const ProtobufCFieldDescriptor pg_query__create_stats_stmt__field_descriptors[7] = { { - "contype", + "defnames", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, contype), - &pg_query__constr_type__descriptor, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStatsStmt, n_defnames), + offsetof(PgQuery__CreateStatsStmt, defnames), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "stat_types", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStatsStmt, n_stat_types), + offsetof(PgQuery__CreateStatsStmt, stat_types), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "exprs", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStatsStmt, n_exprs), + offsetof(PgQuery__CreateStatsStmt, exprs), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "relations", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateStatsStmt, n_relations), + offsetof(PgQuery__CreateStatsStmt, relations), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "conname", - 2, + "stxcomment", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, conname), + offsetof(PgQuery__CreateStatsStmt, stxcomment), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "deferrable", - 3, + "transformed", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, deferrable), + offsetof(PgQuery__CreateStatsStmt, transformed), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "initdeferred", - 4, + "if_not_exists", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, initdeferred), + offsetof(PgQuery__CreateStatsStmt, if_not_exists), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__create_stats_stmt__field_indices_by_name[] = { + 0, /* field[0] = defnames */ + 2, /* field[2] = exprs */ + 6, /* field[6] = if_not_exists */ + 3, /* field[3] = relations */ + 1, /* field[1] = stat_types */ + 4, /* field[4] = stxcomment */ + 5, /* field[5] = transformed */ +}; +static const ProtobufCIntRange pg_query__create_stats_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__create_stats_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreateStatsStmt", + "CreateStatsStmt", + "PgQuery__CreateStatsStmt", + "pg_query", + sizeof(PgQuery__CreateStatsStmt), + 7, + pg_query__create_stats_stmt__field_descriptors, + pg_query__create_stats_stmt__field_indices_by_name, + 1, pg_query__create_stats_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_stats_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__stats_elem__field_descriptors[2] = +{ { - "skip_validation", - 5, + "name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, skip_validation), - NULL, + offsetof(PgQuery__StatsElem, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "initially_valid", - 6, + "expr", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, initially_valid), - NULL, + offsetof(PgQuery__StatsElem, expr), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__stats_elem__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 0, /* field[0] = name */ +}; +static const ProtobufCIntRange pg_query__stats_elem__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__stats_elem__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.StatsElem", + "StatsElem", + "PgQuery__StatsElem", + "pg_query", + sizeof(PgQuery__StatsElem), + 2, + pg_query__stats_elem__field_descriptors, + pg_query__stats_elem__field_indices_by_name, + 1, pg_query__stats_elem__number_ranges, + (ProtobufCMessageInit) pg_query__stats_elem__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_stats_stmt__field_descriptors[3] = +{ { - "is_no_inherit", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, is_no_inherit), - NULL, + "defnames", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterStatsStmt, n_defnames), + offsetof(PgQuery__AlterStatsStmt, defnames), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "raw_expr", - 8, + "stxstattarget", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, raw_expr), + offsetof(PgQuery__AlterStatsStmt, stxstattarget), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cooked_expr", - 9, + "missing_ok", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, cooked_expr), + offsetof(PgQuery__AlterStatsStmt, missing_ok), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "generated_when", - 10, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, generated_when), NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_stats_stmt__field_indices_by_name[] = { + 0, /* field[0] = defnames */ + 2, /* field[2] = missing_ok */ + 1, /* field[1] = stxstattarget */ +}; +static const ProtobufCIntRange pg_query__alter_stats_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__alter_stats_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterStatsStmt", + "AlterStatsStmt", + "PgQuery__AlterStatsStmt", + "pg_query", + sizeof(PgQuery__AlterStatsStmt), + 3, + pg_query__alter_stats_stmt__field_descriptors, + pg_query__alter_stats_stmt__field_indices_by_name, + 1, pg_query__alter_stats_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_stats_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_function_stmt__field_descriptors[7] = +{ { - "inhcount", - 11, + "is_procedure", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, inhcount), + offsetof(PgQuery__CreateFunctionStmt, is_procedure), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nulls_not_distinct", - 12, + "replace", + 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, nulls_not_distinct), + offsetof(PgQuery__CreateFunctionStmt, replace), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "keys", - 13, + "funcname", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_keys), - offsetof(PgQuery__Constraint, keys), + offsetof(PgQuery__CreateFunctionStmt, n_funcname), + offsetof(PgQuery__CreateFunctionStmt, funcname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "including", - 14, + "parameters", + 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_including), - offsetof(PgQuery__Constraint, including), + offsetof(PgQuery__CreateFunctionStmt, n_parameters), + offsetof(PgQuery__CreateFunctionStmt, parameters), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "exclusions", - 15, - PROTOBUF_C_LABEL_REPEATED, + "return_type", + 5, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_exclusions), - offsetof(PgQuery__Constraint, exclusions), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateFunctionStmt, return_type), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "options", - 16, + 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_options), - offsetof(PgQuery__Constraint, options), + offsetof(PgQuery__CreateFunctionStmt, n_options), + offsetof(PgQuery__CreateFunctionStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "indexname", - 17, + "sql_body", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, indexname), + offsetof(PgQuery__CreateFunctionStmt, sql_body), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__create_function_stmt__field_indices_by_name[] = { + 2, /* field[2] = funcname */ + 0, /* field[0] = is_procedure */ + 5, /* field[5] = options */ + 3, /* field[3] = parameters */ + 1, /* field[1] = replace */ + 4, /* field[4] = return_type */ + 6, /* field[6] = sql_body */ +}; +static const ProtobufCIntRange pg_query__create_function_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor pg_query__create_function_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CreateFunctionStmt", + "CreateFunctionStmt", + "PgQuery__CreateFunctionStmt", + "pg_query", + sizeof(PgQuery__CreateFunctionStmt), + 7, + pg_query__create_function_stmt__field_descriptors, + pg_query__create_function_stmt__field_indices_by_name, + 1, pg_query__create_function_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_function_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__function_parameter__field_descriptors[4] = +{ { - "indexspace", - 18, + "name", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, indexspace), + offsetof(PgQuery__FunctionParameter, name), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "reset_default_tblspc", - 19, + "arg_type", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, reset_default_tblspc), - NULL, + offsetof(PgQuery__FunctionParameter, arg_type), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "access_method", - 20, + "mode", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, access_method), + offsetof(PgQuery__FunctionParameter, mode), + &pg_query__function_parameter_mode__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", - 21, + "defexpr", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, where_clause), + offsetof(PgQuery__FunctionParameter, defexpr), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__function_parameter__field_indices_by_name[] = { + 1, /* field[1] = arg_type */ + 3, /* field[3] = defexpr */ + 2, /* field[2] = mode */ + 0, /* field[0] = name */ +}; +static const ProtobufCIntRange pg_query__function_parameter__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__function_parameter__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.FunctionParameter", + "FunctionParameter", + "PgQuery__FunctionParameter", + "pg_query", + sizeof(PgQuery__FunctionParameter), + 4, + pg_query__function_parameter__field_descriptors, + pg_query__function_parameter__field_indices_by_name, + 1, pg_query__function_parameter__number_ranges, + (ProtobufCMessageInit) pg_query__function_parameter__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_function_stmt__field_descriptors[3] = +{ { - "pktable", - 22, + "objtype", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, pktable), - &pg_query__range_var__descriptor, + offsetof(PgQuery__AlterFunctionStmt, objtype), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fk_attrs", - 23, - PROTOBUF_C_LABEL_REPEATED, + "func", + 2, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_fk_attrs), - offsetof(PgQuery__Constraint, fk_attrs), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterFunctionStmt, func), + &pg_query__object_with_args__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pk_attrs", - 24, + "actions", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_pk_attrs), - offsetof(PgQuery__Constraint, pk_attrs), + offsetof(PgQuery__AlterFunctionStmt, n_actions), + offsetof(PgQuery__AlterFunctionStmt, actions), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_function_stmt__field_indices_by_name[] = { + 2, /* field[2] = actions */ + 1, /* field[1] = func */ + 0, /* field[0] = objtype */ +}; +static const ProtobufCIntRange pg_query__alter_function_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__alter_function_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterFunctionStmt", + "AlterFunctionStmt", + "PgQuery__AlterFunctionStmt", + "pg_query", + sizeof(PgQuery__AlterFunctionStmt), + 3, + pg_query__alter_function_stmt__field_descriptors, + pg_query__alter_function_stmt__field_indices_by_name, + 1, pg_query__alter_function_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_function_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__do_stmt__field_descriptors[1] = +{ { - "fk_matchtype", - 25, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, fk_matchtype), + "args", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__DoStmt, n_args), + offsetof(PgQuery__DoStmt, args), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__do_stmt__field_indices_by_name[] = { + 0, /* field[0] = args */ +}; +static const ProtobufCIntRange pg_query__do_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__do_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DoStmt", + "DoStmt", + "PgQuery__DoStmt", + "pg_query", + sizeof(PgQuery__DoStmt), + 1, + pg_query__do_stmt__field_descriptors, + pg_query__do_stmt__field_indices_by_name, + 1, pg_query__do_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__do_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__inline_code_block__field_descriptors[4] = +{ { - "fk_upd_action", - 26, + "source_text", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, fk_upd_action), + offsetof(PgQuery__InlineCodeBlock, source_text), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fk_del_action", - 27, + "lang_oid", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, fk_del_action), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "fk_del_set_cols", - 28, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_fk_del_set_cols), - offsetof(PgQuery__Constraint, fk_del_set_cols), - &pg_query__node__descriptor, + offsetof(PgQuery__InlineCodeBlock, lang_oid), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "old_conpfeqop", - 29, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__Constraint, n_old_conpfeqop), - offsetof(PgQuery__Constraint, old_conpfeqop), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "old_pktable_oid", - 30, + "lang_is_trusted", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, old_pktable_oid), + offsetof(PgQuery__InlineCodeBlock, lang_is_trusted), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 31, + "atomic", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__Constraint, location), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__constraint__field_indices_by_name[] = { - 19, /* field[19] = access_method */ - 1, /* field[1] = conname */ - 0, /* field[0] = contype */ - 8, /* field[8] = cooked_expr */ - 2, /* field[2] = deferrable */ - 14, /* field[14] = exclusions */ - 22, /* field[22] = fk_attrs */ - 26, /* field[26] = fk_del_action */ - 27, /* field[27] = fk_del_set_cols */ - 24, /* field[24] = fk_matchtype */ - 25, /* field[25] = fk_upd_action */ - 9, /* field[9] = generated_when */ - 13, /* field[13] = including */ - 16, /* field[16] = indexname */ - 17, /* field[17] = indexspace */ - 10, /* field[10] = inhcount */ - 3, /* field[3] = initdeferred */ - 5, /* field[5] = initially_valid */ - 6, /* field[6] = is_no_inherit */ - 12, /* field[12] = keys */ - 30, /* field[30] = location */ - 11, /* field[11] = nulls_not_distinct */ - 28, /* field[28] = old_conpfeqop */ - 29, /* field[29] = old_pktable_oid */ - 15, /* field[15] = options */ - 23, /* field[23] = pk_attrs */ - 21, /* field[21] = pktable */ - 7, /* field[7] = raw_expr */ - 18, /* field[18] = reset_default_tblspc */ - 4, /* field[4] = skip_validation */ - 20, /* field[20] = where_clause */ + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__InlineCodeBlock, atomic), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const ProtobufCIntRange pg_query__constraint__number_ranges[1 + 1] = +static const unsigned pg_query__inline_code_block__field_indices_by_name[] = { + 3, /* field[3] = atomic */ + 2, /* field[2] = lang_is_trusted */ + 1, /* field[1] = lang_oid */ + 0, /* field[0] = source_text */ +}; +static const ProtobufCIntRange pg_query__inline_code_block__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 31 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__constraint__descriptor = +const ProtobufCMessageDescriptor pg_query__inline_code_block__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.Constraint", - "Constraint", - "PgQuery__Constraint", + "pg_query.InlineCodeBlock", + "InlineCodeBlock", + "PgQuery__InlineCodeBlock", "pg_query", - sizeof(PgQuery__Constraint), - 31, - pg_query__constraint__field_descriptors, - pg_query__constraint__field_indices_by_name, - 1, pg_query__constraint__number_ranges, - (ProtobufCMessageInit) pg_query__constraint__init, + sizeof(PgQuery__InlineCodeBlock), + 4, + pg_query__inline_code_block__field_descriptors, + pg_query__inline_code_block__field_indices_by_name, + 1, pg_query__inline_code_block__number_ranges, + (ProtobufCMessageInit) pg_query__inline_code_block__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_table_space_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__call_stmt__field_descriptors[3] = { { - "tablespacename", + "funccall", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableSpaceStmt, tablespacename), + offsetof(PgQuery__CallStmt, funccall), + &pg_query__func_call__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "owner", + "funcexpr", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableSpaceStmt, owner), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__CallStmt, funcexpr), + &pg_query__func_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "outargs", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableSpaceStmt, location), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "options", - 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateTableSpaceStmt, n_options), - offsetof(PgQuery__CreateTableSpaceStmt, options), + offsetof(PgQuery__CallStmt, n_outargs), + offsetof(PgQuery__CallStmt, outargs), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_table_space_stmt__field_indices_by_name[] = { - 2, /* field[2] = location */ - 3, /* field[3] = options */ - 1, /* field[1] = owner */ - 0, /* field[0] = tablespacename */ +static const unsigned pg_query__call_stmt__field_indices_by_name[] = { + 0, /* field[0] = funccall */ + 1, /* field[1] = funcexpr */ + 2, /* field[2] = outargs */ }; -static const ProtobufCIntRange pg_query__create_table_space_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__call_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__create_table_space_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__call_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateTableSpaceStmt", - "CreateTableSpaceStmt", - "PgQuery__CreateTableSpaceStmt", + "pg_query.CallStmt", + "CallStmt", + "PgQuery__CallStmt", "pg_query", - sizeof(PgQuery__CreateTableSpaceStmt), - 4, - pg_query__create_table_space_stmt__field_descriptors, - pg_query__create_table_space_stmt__field_indices_by_name, - 1, pg_query__create_table_space_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_table_space_stmt__init, + sizeof(PgQuery__CallStmt), + 3, + pg_query__call_stmt__field_descriptors, + pg_query__call_stmt__field_indices_by_name, + 1, pg_query__call_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__call_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__drop_table_space_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__call_context__field_descriptors[1] = { { - "tablespacename", + "atomic", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__DropTableSpaceStmt, tablespacename), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "missing_ok", - 2, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DropTableSpaceStmt, missing_ok), + offsetof(PgQuery__CallContext, atomic), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__drop_table_space_stmt__field_indices_by_name[] = { - 1, /* field[1] = missing_ok */ - 0, /* field[0] = tablespacename */ +static const unsigned pg_query__call_context__field_indices_by_name[] = { + 0, /* field[0] = atomic */ }; -static const ProtobufCIntRange pg_query__drop_table_space_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__call_context__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__drop_table_space_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__call_context__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropTableSpaceStmt", - "DropTableSpaceStmt", - "PgQuery__DropTableSpaceStmt", + "pg_query.CallContext", + "CallContext", + "PgQuery__CallContext", "pg_query", - sizeof(PgQuery__DropTableSpaceStmt), - 2, - pg_query__drop_table_space_stmt__field_descriptors, - pg_query__drop_table_space_stmt__field_indices_by_name, - 1, pg_query__drop_table_space_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__drop_table_space_stmt__init, + sizeof(PgQuery__CallContext), + 1, + pg_query__call_context__field_descriptors, + pg_query__call_context__field_indices_by_name, + 1, pg_query__call_context__number_ranges, + (ProtobufCMessageInit) pg_query__call_context__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_table_space_options_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__rename_stmt__field_descriptors[8] = { { - "tablespacename", + "rename_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableSpaceOptionsStmt, tablespacename), + offsetof(PgQuery__RenameStmt, rename_type), + &pg_query__object_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "relation_type", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__RenameStmt, relation_type), + &pg_query__object_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "relation", + 3, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTableSpaceOptionsStmt, n_options), - offsetof(PgQuery__AlterTableSpaceOptionsStmt, options), + 0, /* quantifier_offset */ + offsetof(PgQuery__RenameStmt, relation), + &pg_query__range_var__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "object", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__RenameStmt, object), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_reset", - 3, + "subname", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__RenameStmt, subname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "newname", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__RenameStmt, newname), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "behavior", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__RenameStmt, behavior), + &pg_query__drop_behavior__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "missing_ok", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableSpaceOptionsStmt, is_reset), + offsetof(PgQuery__RenameStmt, missing_ok), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_table_space_options_stmt__field_indices_by_name[] = { - 2, /* field[2] = is_reset */ - 1, /* field[1] = options */ - 0, /* field[0] = tablespacename */ +static const unsigned pg_query__rename_stmt__field_indices_by_name[] = { + 6, /* field[6] = behavior */ + 7, /* field[7] = missing_ok */ + 5, /* field[5] = newname */ + 3, /* field[3] = object */ + 2, /* field[2] = relation */ + 1, /* field[1] = relation_type */ + 0, /* field[0] = rename_type */ + 4, /* field[4] = subname */ }; -static const ProtobufCIntRange pg_query__alter_table_space_options_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__rename_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__alter_table_space_options_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__rename_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTableSpaceOptionsStmt", - "AlterTableSpaceOptionsStmt", - "PgQuery__AlterTableSpaceOptionsStmt", + "pg_query.RenameStmt", + "RenameStmt", + "PgQuery__RenameStmt", "pg_query", - sizeof(PgQuery__AlterTableSpaceOptionsStmt), - 3, - pg_query__alter_table_space_options_stmt__field_descriptors, - pg_query__alter_table_space_options_stmt__field_indices_by_name, - 1, pg_query__alter_table_space_options_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_table_space_options_stmt__init, + sizeof(PgQuery__RenameStmt), + 8, + pg_query__rename_stmt__field_descriptors, + pg_query__rename_stmt__field_indices_by_name, + 1, pg_query__rename_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__rename_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_table_move_all_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__alter_object_depends_stmt__field_descriptors[5] = { { - "orig_tablespacename", + "object_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableMoveAllStmt, orig_tablespacename), + offsetof(PgQuery__AlterObjectDependsStmt, object_type), + &pg_query__object_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objtype", + "relation", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableMoveAllStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__AlterObjectDependsStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "roles", + "object", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTableMoveAllStmt, n_roles), - offsetof(PgQuery__AlterTableMoveAllStmt, roles), + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterObjectDependsStmt, object), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "new_tablespacename", + "extname", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableMoveAllStmt, new_tablespacename), + offsetof(PgQuery__AlterObjectDependsStmt, extname), + &pg_query__string__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nowait", + "remove", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTableMoveAllStmt, nowait), + offsetof(PgQuery__AlterObjectDependsStmt, remove), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_table_move_all_stmt__field_indices_by_name[] = { - 3, /* field[3] = new_tablespacename */ - 4, /* field[4] = nowait */ - 1, /* field[1] = objtype */ - 0, /* field[0] = orig_tablespacename */ - 2, /* field[2] = roles */ +static const unsigned pg_query__alter_object_depends_stmt__field_indices_by_name[] = { + 3, /* field[3] = extname */ + 2, /* field[2] = object */ + 0, /* field[0] = object_type */ + 1, /* field[1] = relation */ + 4, /* field[4] = remove */ }; -static const ProtobufCIntRange pg_query__alter_table_move_all_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_object_depends_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__alter_table_move_all_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_object_depends_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTableMoveAllStmt", - "AlterTableMoveAllStmt", - "PgQuery__AlterTableMoveAllStmt", + "pg_query.AlterObjectDependsStmt", + "AlterObjectDependsStmt", + "PgQuery__AlterObjectDependsStmt", "pg_query", - sizeof(PgQuery__AlterTableMoveAllStmt), + sizeof(PgQuery__AlterObjectDependsStmt), 5, - pg_query__alter_table_move_all_stmt__field_descriptors, - pg_query__alter_table_move_all_stmt__field_indices_by_name, - 1, pg_query__alter_table_move_all_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_table_move_all_stmt__init, + pg_query__alter_object_depends_stmt__field_descriptors, + pg_query__alter_object_depends_stmt__field_indices_by_name, + 1, pg_query__alter_object_depends_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_object_depends_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_extension_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_object_schema_stmt__field_descriptors[5] = { { - "extname", + "object_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateExtensionStmt, extname), + offsetof(PgQuery__AlterObjectSchemaStmt, object_type), + &pg_query__object_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", + "relation", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateExtensionStmt, if_not_exists), - NULL, + offsetof(PgQuery__AlterObjectSchemaStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "object", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateExtensionStmt, n_options), - offsetof(PgQuery__CreateExtensionStmt, options), + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterObjectSchemaStmt, object), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__create_extension_stmt__field_indices_by_name[] = { - 0, /* field[0] = extname */ - 1, /* field[1] = if_not_exists */ - 2, /* field[2] = options */ -}; -static const ProtobufCIntRange pg_query__create_extension_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__create_extension_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateExtensionStmt", - "CreateExtensionStmt", - "PgQuery__CreateExtensionStmt", - "pg_query", - sizeof(PgQuery__CreateExtensionStmt), - 3, - pg_query__create_extension_stmt__field_descriptors, - pg_query__create_extension_stmt__field_indices_by_name, - 1, pg_query__create_extension_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_extension_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_extension_stmt__field_descriptors[2] = -{ { - "extname", - 1, + "newschema", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterExtensionStmt, extname), + offsetof(PgQuery__AlterObjectSchemaStmt, newschema), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterExtensionStmt, n_options), - offsetof(PgQuery__AlterExtensionStmt, options), - &pg_query__node__descriptor, + "missing_ok", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterObjectSchemaStmt, missing_ok), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_extension_stmt__field_indices_by_name[] = { - 0, /* field[0] = extname */ - 1, /* field[1] = options */ +static const unsigned pg_query__alter_object_schema_stmt__field_indices_by_name[] = { + 4, /* field[4] = missing_ok */ + 3, /* field[3] = newschema */ + 2, /* field[2] = object */ + 0, /* field[0] = object_type */ + 1, /* field[1] = relation */ }; -static const ProtobufCIntRange pg_query__alter_extension_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_object_schema_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__alter_extension_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_object_schema_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterExtensionStmt", - "AlterExtensionStmt", - "PgQuery__AlterExtensionStmt", + "pg_query.AlterObjectSchemaStmt", + "AlterObjectSchemaStmt", + "PgQuery__AlterObjectSchemaStmt", "pg_query", - sizeof(PgQuery__AlterExtensionStmt), - 2, - pg_query__alter_extension_stmt__field_descriptors, - pg_query__alter_extension_stmt__field_indices_by_name, - 1, pg_query__alter_extension_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_extension_stmt__init, + sizeof(PgQuery__AlterObjectSchemaStmt), + 5, + pg_query__alter_object_schema_stmt__field_descriptors, + pg_query__alter_object_schema_stmt__field_indices_by_name, + 1, pg_query__alter_object_schema_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_object_schema_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_extension_contents_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__alter_owner_stmt__field_descriptors[4] = { { - "extname", + "object_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterExtensionContentsStmt, extname), + offsetof(PgQuery__AlterOwnerStmt, object_type), + &pg_query__object_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "action", + "relation", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterExtensionContentsStmt, action), - NULL, + offsetof(PgQuery__AlterOwnerStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objtype", + "object", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterExtensionContentsStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__AlterOwnerStmt, object), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object", + "newowner", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterExtensionContentsStmt, object), - &pg_query__node__descriptor, + offsetof(PgQuery__AlterOwnerStmt, newowner), + &pg_query__role_spec__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_extension_contents_stmt__field_indices_by_name[] = { - 1, /* field[1] = action */ - 0, /* field[0] = extname */ - 3, /* field[3] = object */ - 2, /* field[2] = objtype */ +static const unsigned pg_query__alter_owner_stmt__field_indices_by_name[] = { + 3, /* field[3] = newowner */ + 2, /* field[2] = object */ + 0, /* field[0] = object_type */ + 1, /* field[1] = relation */ }; -static const ProtobufCIntRange pg_query__alter_extension_contents_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_owner_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__alter_extension_contents_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_owner_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterExtensionContentsStmt", - "AlterExtensionContentsStmt", - "PgQuery__AlterExtensionContentsStmt", + "pg_query.AlterOwnerStmt", + "AlterOwnerStmt", + "PgQuery__AlterOwnerStmt", "pg_query", - sizeof(PgQuery__AlterExtensionContentsStmt), + sizeof(PgQuery__AlterOwnerStmt), 4, - pg_query__alter_extension_contents_stmt__field_descriptors, - pg_query__alter_extension_contents_stmt__field_indices_by_name, - 1, pg_query__alter_extension_contents_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_extension_contents_stmt__init, + pg_query__alter_owner_stmt__field_descriptors, + pg_query__alter_owner_stmt__field_indices_by_name, + 1, pg_query__alter_owner_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_owner_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_fdw_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_operator_stmt__field_descriptors[2] = { { - "fdwname", + "opername", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateFdwStmt, fdwname), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "func_options", - 2, - PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateFdwStmt, n_func_options), - offsetof(PgQuery__CreateFdwStmt, func_options), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterOperatorStmt, opername), + &pg_query__object_with_args__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "options", - 3, + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateFdwStmt, n_options), - offsetof(PgQuery__CreateFdwStmt, options), + offsetof(PgQuery__AlterOperatorStmt, n_options), + offsetof(PgQuery__AlterOperatorStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_fdw_stmt__field_indices_by_name[] = { - 0, /* field[0] = fdwname */ - 1, /* field[1] = func_options */ - 2, /* field[2] = options */ +static const unsigned pg_query__alter_operator_stmt__field_indices_by_name[] = { + 0, /* field[0] = opername */ + 1, /* field[1] = options */ }; -static const ProtobufCIntRange pg_query__create_fdw_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_operator_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__create_fdw_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_operator_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateFdwStmt", - "CreateFdwStmt", - "PgQuery__CreateFdwStmt", + "pg_query.AlterOperatorStmt", + "AlterOperatorStmt", + "PgQuery__AlterOperatorStmt", "pg_query", - sizeof(PgQuery__CreateFdwStmt), - 3, - pg_query__create_fdw_stmt__field_descriptors, - pg_query__create_fdw_stmt__field_indices_by_name, - 1, pg_query__create_fdw_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_fdw_stmt__init, + sizeof(PgQuery__AlterOperatorStmt), + 2, + pg_query__alter_operator_stmt__field_descriptors, + pg_query__alter_operator_stmt__field_indices_by_name, + 1, pg_query__alter_operator_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_operator_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_fdw_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_type_stmt__field_descriptors[2] = { { - "fdwname", + "type_name", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterFdwStmt, fdwname), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "func_options", - 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterFdwStmt, n_func_options), - offsetof(PgQuery__AlterFdwStmt, func_options), + offsetof(PgQuery__AlterTypeStmt, n_type_name), + offsetof(PgQuery__AlterTypeStmt, type_name), &pg_query__node__descriptor, NULL, 0, /* flags */ @@ -33476,1851 +39671,1912 @@ static const ProtobufCFieldDescriptor pg_query__alter_fdw_stmt__field_descriptor }, { "options", - 3, + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterFdwStmt, n_options), - offsetof(PgQuery__AlterFdwStmt, options), + offsetof(PgQuery__AlterTypeStmt, n_options), + offsetof(PgQuery__AlterTypeStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_fdw_stmt__field_indices_by_name[] = { - 0, /* field[0] = fdwname */ - 1, /* field[1] = func_options */ - 2, /* field[2] = options */ +static const unsigned pg_query__alter_type_stmt__field_indices_by_name[] = { + 1, /* field[1] = options */ + 0, /* field[0] = type_name */ }; -static const ProtobufCIntRange pg_query__alter_fdw_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_type_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_fdw_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_type_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterFdwStmt", - "AlterFdwStmt", - "PgQuery__AlterFdwStmt", + "pg_query.AlterTypeStmt", + "AlterTypeStmt", + "PgQuery__AlterTypeStmt", "pg_query", - sizeof(PgQuery__AlterFdwStmt), - 3, - pg_query__alter_fdw_stmt__field_descriptors, - pg_query__alter_fdw_stmt__field_indices_by_name, - 1, pg_query__alter_fdw_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_fdw_stmt__init, + sizeof(PgQuery__AlterTypeStmt), + 2, + pg_query__alter_type_stmt__field_descriptors, + pg_query__alter_type_stmt__field_indices_by_name, + 1, pg_query__alter_type_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_type_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_foreign_server_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__rule_stmt__field_descriptors[7] = { { - "servername", + "relation", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignServerStmt, servername), + offsetof(PgQuery__RuleStmt, relation), + &pg_query__range_var__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "servertype", + "rulename", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignServerStmt, servertype), + offsetof(PgQuery__RuleStmt, rulename), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "version", + "where_clause", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignServerStmt, version), + offsetof(PgQuery__RuleStmt, where_clause), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fdwname", + "event", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignServerStmt, fdwname), + offsetof(PgQuery__RuleStmt, event), + &pg_query__cmd_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", + "instead", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignServerStmt, if_not_exists), + offsetof(PgQuery__RuleStmt, instead), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "actions", 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateForeignServerStmt, n_options), - offsetof(PgQuery__CreateForeignServerStmt, options), + offsetof(PgQuery__RuleStmt, n_actions), + offsetof(PgQuery__RuleStmt, actions), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "replace", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__RuleStmt, replace), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; -static const unsigned pg_query__create_foreign_server_stmt__field_indices_by_name[] = { - 3, /* field[3] = fdwname */ - 4, /* field[4] = if_not_exists */ - 5, /* field[5] = options */ - 0, /* field[0] = servername */ - 1, /* field[1] = servertype */ - 2, /* field[2] = version */ +static const unsigned pg_query__rule_stmt__field_indices_by_name[] = { + 5, /* field[5] = actions */ + 3, /* field[3] = event */ + 4, /* field[4] = instead */ + 0, /* field[0] = relation */ + 6, /* field[6] = replace */ + 1, /* field[1] = rulename */ + 2, /* field[2] = where_clause */ }; -static const ProtobufCIntRange pg_query__create_foreign_server_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__rule_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__create_foreign_server_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__rule_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateForeignServerStmt", - "CreateForeignServerStmt", - "PgQuery__CreateForeignServerStmt", + "pg_query.RuleStmt", + "RuleStmt", + "PgQuery__RuleStmt", "pg_query", - sizeof(PgQuery__CreateForeignServerStmt), - 6, - pg_query__create_foreign_server_stmt__field_descriptors, - pg_query__create_foreign_server_stmt__field_indices_by_name, - 1, pg_query__create_foreign_server_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_foreign_server_stmt__init, + sizeof(PgQuery__RuleStmt), + 7, + pg_query__rule_stmt__field_descriptors, + pg_query__rule_stmt__field_indices_by_name, + 1, pg_query__rule_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__rule_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_foreign_server_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__notify_stmt__field_descriptors[2] = { { - "servername", + "conditionname", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterForeignServerStmt, servername), + offsetof(PgQuery__NotifyStmt, conditionname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "version", + "payload", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterForeignServerStmt, version), + offsetof(PgQuery__NotifyStmt, payload), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__notify_stmt__field_indices_by_name[] = { + 0, /* field[0] = conditionname */ + 1, /* field[1] = payload */ +}; +static const ProtobufCIntRange pg_query__notify_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__notify_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.NotifyStmt", + "NotifyStmt", + "PgQuery__NotifyStmt", + "pg_query", + sizeof(PgQuery__NotifyStmt), + 2, + pg_query__notify_stmt__field_descriptors, + pg_query__notify_stmt__field_indices_by_name, + 1, pg_query__notify_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__notify_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__listen_stmt__field_descriptors[1] = +{ { - "options", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterForeignServerStmt, n_options), - offsetof(PgQuery__AlterForeignServerStmt, options), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "has_version", - 4, + "conditionname", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterForeignServerStmt, has_version), - NULL, + offsetof(PgQuery__ListenStmt, conditionname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_foreign_server_stmt__field_indices_by_name[] = { - 3, /* field[3] = has_version */ - 2, /* field[2] = options */ - 0, /* field[0] = servername */ - 1, /* field[1] = version */ +static const unsigned pg_query__listen_stmt__field_indices_by_name[] = { + 0, /* field[0] = conditionname */ }; -static const ProtobufCIntRange pg_query__alter_foreign_server_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__listen_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__alter_foreign_server_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__listen_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterForeignServerStmt", - "AlterForeignServerStmt", - "PgQuery__AlterForeignServerStmt", + "pg_query.ListenStmt", + "ListenStmt", + "PgQuery__ListenStmt", "pg_query", - sizeof(PgQuery__AlterForeignServerStmt), - 4, - pg_query__alter_foreign_server_stmt__field_descriptors, - pg_query__alter_foreign_server_stmt__field_indices_by_name, - 1, pg_query__alter_foreign_server_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_foreign_server_stmt__init, + sizeof(PgQuery__ListenStmt), + 1, + pg_query__listen_stmt__field_descriptors, + pg_query__listen_stmt__field_indices_by_name, + 1, pg_query__listen_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__listen_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_foreign_table_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__unlisten_stmt__field_descriptors[1] = { { - "base_stmt", + "conditionname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignTableStmt, base_stmt), - &pg_query__create_stmt__descriptor, + offsetof(PgQuery__UnlistenStmt, conditionname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__unlisten_stmt__field_indices_by_name[] = { + 0, /* field[0] = conditionname */ +}; +static const ProtobufCIntRange pg_query__unlisten_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__unlisten_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.UnlistenStmt", + "UnlistenStmt", + "PgQuery__UnlistenStmt", + "pg_query", + sizeof(PgQuery__UnlistenStmt), + 1, + pg_query__unlisten_stmt__field_descriptors, + pg_query__unlisten_stmt__field_indices_by_name, + 1, pg_query__unlisten_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__unlisten_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__transaction_stmt__field_descriptors[6] = +{ { - "servername", - 2, + "kind", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateForeignTableStmt, servername), + offsetof(PgQuery__TransactionStmt, kind), + &pg_query__transaction_stmt_kind__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "options", - 3, + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateForeignTableStmt, n_options), - offsetof(PgQuery__CreateForeignTableStmt, options), + offsetof(PgQuery__TransactionStmt, n_options), + offsetof(PgQuery__TransactionStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__create_foreign_table_stmt__field_indices_by_name[] = { - 0, /* field[0] = base_stmt */ - 2, /* field[2] = options */ - 1, /* field[1] = servername */ -}; -static const ProtobufCIntRange pg_query__create_foreign_table_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__create_foreign_table_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateForeignTableStmt", - "CreateForeignTableStmt", - "PgQuery__CreateForeignTableStmt", - "pg_query", - sizeof(PgQuery__CreateForeignTableStmt), - 3, - pg_query__create_foreign_table_stmt__field_descriptors, - pg_query__create_foreign_table_stmt__field_indices_by_name, - 1, pg_query__create_foreign_table_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_foreign_table_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__create_user_mapping_stmt__field_descriptors[4] = -{ { - "user", - 1, + "savepoint_name", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateUserMappingStmt, user), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__TransactionStmt, savepoint_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "servername", - 2, + "gid", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateUserMappingStmt, servername), + offsetof(PgQuery__TransactionStmt, gid), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", - 3, + "chain", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateUserMappingStmt, if_not_exists), + offsetof(PgQuery__TransactionStmt, chain), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateUserMappingStmt, n_options), - offsetof(PgQuery__CreateUserMappingStmt, options), - &pg_query__node__descriptor, + "location", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__TransactionStmt, location), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_user_mapping_stmt__field_indices_by_name[] = { - 2, /* field[2] = if_not_exists */ - 3, /* field[3] = options */ - 1, /* field[1] = servername */ - 0, /* field[0] = user */ +static const unsigned pg_query__transaction_stmt__field_indices_by_name[] = { + 4, /* field[4] = chain */ + 3, /* field[3] = gid */ + 0, /* field[0] = kind */ + 5, /* field[5] = location */ + 1, /* field[1] = options */ + 2, /* field[2] = savepoint_name */ }; -static const ProtobufCIntRange pg_query__create_user_mapping_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__transaction_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__create_user_mapping_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__transaction_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateUserMappingStmt", - "CreateUserMappingStmt", - "PgQuery__CreateUserMappingStmt", + "pg_query.TransactionStmt", + "TransactionStmt", + "PgQuery__TransactionStmt", "pg_query", - sizeof(PgQuery__CreateUserMappingStmt), - 4, - pg_query__create_user_mapping_stmt__field_descriptors, - pg_query__create_user_mapping_stmt__field_indices_by_name, - 1, pg_query__create_user_mapping_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_user_mapping_stmt__init, + sizeof(PgQuery__TransactionStmt), + 6, + pg_query__transaction_stmt__field_descriptors, + pg_query__transaction_stmt__field_indices_by_name, + 1, pg_query__transaction_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__transaction_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_user_mapping_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__composite_type_stmt__field_descriptors[2] = { { - "user", + "typevar", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterUserMappingStmt, user), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__CompositeTypeStmt, typevar), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "servername", + "coldeflist", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterUserMappingStmt, servername), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CompositeTypeStmt, n_coldeflist), + offsetof(PgQuery__CompositeTypeStmt, coldeflist), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__composite_type_stmt__field_indices_by_name[] = { + 1, /* field[1] = coldeflist */ + 0, /* field[0] = typevar */ +}; +static const ProtobufCIntRange pg_query__composite_type_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__composite_type_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CompositeTypeStmt", + "CompositeTypeStmt", + "PgQuery__CompositeTypeStmt", + "pg_query", + sizeof(PgQuery__CompositeTypeStmt), + 2, + pg_query__composite_type_stmt__field_descriptors, + pg_query__composite_type_stmt__field_indices_by_name, + 1, pg_query__composite_type_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__composite_type_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__create_enum_stmt__field_descriptors[2] = +{ + { + "type_name", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateEnumStmt, n_type_name), + offsetof(PgQuery__CreateEnumStmt, type_name), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 3, + "vals", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterUserMappingStmt, n_options), - offsetof(PgQuery__AlterUserMappingStmt, options), + offsetof(PgQuery__CreateEnumStmt, n_vals), + offsetof(PgQuery__CreateEnumStmt, vals), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_user_mapping_stmt__field_indices_by_name[] = { - 2, /* field[2] = options */ - 1, /* field[1] = servername */ - 0, /* field[0] = user */ +static const unsigned pg_query__create_enum_stmt__field_indices_by_name[] = { + 0, /* field[0] = type_name */ + 1, /* field[1] = vals */ }; -static const ProtobufCIntRange pg_query__alter_user_mapping_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_enum_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_user_mapping_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_enum_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterUserMappingStmt", - "AlterUserMappingStmt", - "PgQuery__AlterUserMappingStmt", + "pg_query.CreateEnumStmt", + "CreateEnumStmt", + "PgQuery__CreateEnumStmt", "pg_query", - sizeof(PgQuery__AlterUserMappingStmt), - 3, - pg_query__alter_user_mapping_stmt__field_descriptors, - pg_query__alter_user_mapping_stmt__field_indices_by_name, - 1, pg_query__alter_user_mapping_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_user_mapping_stmt__init, + sizeof(PgQuery__CreateEnumStmt), + 2, + pg_query__create_enum_stmt__field_descriptors, + pg_query__create_enum_stmt__field_indices_by_name, + 1, pg_query__create_enum_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_enum_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__drop_user_mapping_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__create_range_stmt__field_descriptors[2] = { { - "user", + "type_name", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__DropUserMappingStmt, user), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__CreateRangeStmt, n_type_name), + offsetof(PgQuery__CreateRangeStmt, type_name), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "servername", + "params", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__DropUserMappingStmt, servername), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "missing_ok", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__DropUserMappingStmt, missing_ok), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateRangeStmt, n_params), + offsetof(PgQuery__CreateRangeStmt, params), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__drop_user_mapping_stmt__field_indices_by_name[] = { - 2, /* field[2] = missing_ok */ - 1, /* field[1] = servername */ - 0, /* field[0] = user */ +static const unsigned pg_query__create_range_stmt__field_indices_by_name[] = { + 1, /* field[1] = params */ + 0, /* field[0] = type_name */ }; -static const ProtobufCIntRange pg_query__drop_user_mapping_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_range_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__drop_user_mapping_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_range_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropUserMappingStmt", - "DropUserMappingStmt", - "PgQuery__DropUserMappingStmt", + "pg_query.CreateRangeStmt", + "CreateRangeStmt", + "PgQuery__CreateRangeStmt", "pg_query", - sizeof(PgQuery__DropUserMappingStmt), - 3, - pg_query__drop_user_mapping_stmt__field_descriptors, - pg_query__drop_user_mapping_stmt__field_indices_by_name, - 1, pg_query__drop_user_mapping_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__drop_user_mapping_stmt__init, + sizeof(PgQuery__CreateRangeStmt), + 2, + pg_query__create_range_stmt__field_descriptors, + pg_query__create_range_stmt__field_indices_by_name, + 1, pg_query__create_range_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_range_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__import_foreign_schema_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__alter_enum_stmt__field_descriptors[6] = { { - "server_name", + "type_name", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__ImportForeignSchemaStmt, server_name), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterEnumStmt, n_type_name), + offsetof(PgQuery__AlterEnumStmt, type_name), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "remote_schema", + "old_val", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__ImportForeignSchemaStmt, remote_schema), + offsetof(PgQuery__AlterEnumStmt, old_val), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "local_schema", + "new_val", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__ImportForeignSchemaStmt, local_schema), + offsetof(PgQuery__AlterEnumStmt, new_val), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "list_type", + "new_val_neighbor", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__ImportForeignSchemaStmt, list_type), - &pg_query__import_foreign_schema_type__descriptor, + offsetof(PgQuery__AlterEnumStmt, new_val_neighbor), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_list", + "new_val_is_after", 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ImportForeignSchemaStmt, n_table_list), - offsetof(PgQuery__ImportForeignSchemaStmt, table_list), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterEnumStmt, new_val_is_after), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "skip_if_new_val_exists", 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ImportForeignSchemaStmt, n_options), - offsetof(PgQuery__ImportForeignSchemaStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterEnumStmt, skip_if_new_val_exists), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__import_foreign_schema_stmt__field_indices_by_name[] = { - 3, /* field[3] = list_type */ - 2, /* field[2] = local_schema */ - 5, /* field[5] = options */ - 1, /* field[1] = remote_schema */ - 0, /* field[0] = server_name */ - 4, /* field[4] = table_list */ +static const unsigned pg_query__alter_enum_stmt__field_indices_by_name[] = { + 2, /* field[2] = new_val */ + 4, /* field[4] = new_val_is_after */ + 3, /* field[3] = new_val_neighbor */ + 1, /* field[1] = old_val */ + 5, /* field[5] = skip_if_new_val_exists */ + 0, /* field[0] = type_name */ }; -static const ProtobufCIntRange pg_query__import_foreign_schema_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_enum_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__import_foreign_schema_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_enum_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ImportForeignSchemaStmt", - "ImportForeignSchemaStmt", - "PgQuery__ImportForeignSchemaStmt", + "pg_query.AlterEnumStmt", + "AlterEnumStmt", + "PgQuery__AlterEnumStmt", "pg_query", - sizeof(PgQuery__ImportForeignSchemaStmt), + sizeof(PgQuery__AlterEnumStmt), 6, - pg_query__import_foreign_schema_stmt__field_descriptors, - pg_query__import_foreign_schema_stmt__field_indices_by_name, - 1, pg_query__import_foreign_schema_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__import_foreign_schema_stmt__init, + pg_query__alter_enum_stmt__field_descriptors, + pg_query__alter_enum_stmt__field_indices_by_name, + 1, pg_query__alter_enum_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_enum_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_policy_stmt__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__view_stmt__field_descriptors[6] = { { - "policy_name", + "view", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePolicyStmt, policy_name), + offsetof(PgQuery__ViewStmt, view), + &pg_query__range_var__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table", + "aliases", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePolicyStmt, table), - &pg_query__range_var__descriptor, + offsetof(PgQuery__ViewStmt, n_aliases), + offsetof(PgQuery__ViewStmt, aliases), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cmd_name", + "query", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePolicyStmt, cmd_name), + offsetof(PgQuery__ViewStmt, query), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "permissive", + "replace", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePolicyStmt, permissive), + offsetof(PgQuery__ViewStmt, replace), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "roles", + "options", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatePolicyStmt, n_roles), - offsetof(PgQuery__CreatePolicyStmt, roles), + offsetof(PgQuery__ViewStmt, n_options), + offsetof(PgQuery__ViewStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "qual", + "with_check_option", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePolicyStmt, qual), - &pg_query__node__descriptor, + offsetof(PgQuery__ViewStmt, with_check_option), + &pg_query__view_check_option__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__view_stmt__field_indices_by_name[] = { + 1, /* field[1] = aliases */ + 4, /* field[4] = options */ + 2, /* field[2] = query */ + 3, /* field[3] = replace */ + 0, /* field[0] = view */ + 5, /* field[5] = with_check_option */ +}; +static const ProtobufCIntRange pg_query__view_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor pg_query__view_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ViewStmt", + "ViewStmt", + "PgQuery__ViewStmt", + "pg_query", + sizeof(PgQuery__ViewStmt), + 6, + pg_query__view_stmt__field_descriptors, + pg_query__view_stmt__field_indices_by_name, + 1, pg_query__view_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__view_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__load_stmt__field_descriptors[1] = +{ { - "with_check", - 7, + "filename", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePolicyStmt, with_check), - &pg_query__node__descriptor, + offsetof(PgQuery__LoadStmt, filename), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_policy_stmt__field_indices_by_name[] = { - 2, /* field[2] = cmd_name */ - 3, /* field[3] = permissive */ - 0, /* field[0] = policy_name */ - 5, /* field[5] = qual */ - 4, /* field[4] = roles */ - 1, /* field[1] = table */ - 6, /* field[6] = with_check */ +static const unsigned pg_query__load_stmt__field_indices_by_name[] = { + 0, /* field[0] = filename */ }; -static const ProtobufCIntRange pg_query__create_policy_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__load_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__create_policy_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__load_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreatePolicyStmt", - "CreatePolicyStmt", - "PgQuery__CreatePolicyStmt", + "pg_query.LoadStmt", + "LoadStmt", + "PgQuery__LoadStmt", "pg_query", - sizeof(PgQuery__CreatePolicyStmt), - 7, - pg_query__create_policy_stmt__field_descriptors, - pg_query__create_policy_stmt__field_indices_by_name, - 1, pg_query__create_policy_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_policy_stmt__init, + sizeof(PgQuery__LoadStmt), + 1, + pg_query__load_stmt__field_descriptors, + pg_query__load_stmt__field_indices_by_name, + 1, pg_query__load_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__load_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_policy_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__createdb_stmt__field_descriptors[2] = { { - "policy_name", + "dbname", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPolicyStmt, policy_name), + offsetof(PgQuery__CreatedbStmt, dbname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table", + "options", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPolicyStmt, table), - &pg_query__range_var__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "roles", - 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterPolicyStmt, n_roles), - offsetof(PgQuery__AlterPolicyStmt, roles), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "qual", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPolicyStmt, qual), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "with_check", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPolicyStmt, with_check), + offsetof(PgQuery__CreatedbStmt, n_options), + offsetof(PgQuery__CreatedbStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_policy_stmt__field_indices_by_name[] = { - 0, /* field[0] = policy_name */ - 3, /* field[3] = qual */ - 2, /* field[2] = roles */ - 1, /* field[1] = table */ - 4, /* field[4] = with_check */ +static const unsigned pg_query__createdb_stmt__field_indices_by_name[] = { + 0, /* field[0] = dbname */ + 1, /* field[1] = options */ }; -static const ProtobufCIntRange pg_query__alter_policy_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__createdb_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_policy_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__createdb_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterPolicyStmt", - "AlterPolicyStmt", - "PgQuery__AlterPolicyStmt", + "pg_query.CreatedbStmt", + "CreatedbStmt", + "PgQuery__CreatedbStmt", "pg_query", - sizeof(PgQuery__AlterPolicyStmt), - 5, - pg_query__alter_policy_stmt__field_descriptors, - pg_query__alter_policy_stmt__field_indices_by_name, - 1, pg_query__alter_policy_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_policy_stmt__init, + sizeof(PgQuery__CreatedbStmt), + 2, + pg_query__createdb_stmt__field_descriptors, + pg_query__createdb_stmt__field_indices_by_name, + 1, pg_query__createdb_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__createdb_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_am_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_database_stmt__field_descriptors[2] = { { - "amname", + "dbname", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateAmStmt, amname), + offsetof(PgQuery__AlterDatabaseStmt, dbname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "handler_name", + "options", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateAmStmt, n_handler_name), - offsetof(PgQuery__CreateAmStmt, handler_name), + offsetof(PgQuery__AlterDatabaseStmt, n_options), + offsetof(PgQuery__AlterDatabaseStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_database_stmt__field_indices_by_name[] = { + 0, /* field[0] = dbname */ + 1, /* field[1] = options */ +}; +static const ProtobufCIntRange pg_query__alter_database_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__alter_database_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterDatabaseStmt", + "AlterDatabaseStmt", + "PgQuery__AlterDatabaseStmt", + "pg_query", + sizeof(PgQuery__AlterDatabaseStmt), + 2, + pg_query__alter_database_stmt__field_descriptors, + pg_query__alter_database_stmt__field_indices_by_name, + 1, pg_query__alter_database_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_database_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_database_refresh_coll_stmt__field_descriptors[1] = +{ { - "amtype", - 3, + "dbname", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateAmStmt, amtype), + offsetof(PgQuery__AlterDatabaseRefreshCollStmt, dbname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_am_stmt__field_indices_by_name[] = { - 0, /* field[0] = amname */ - 2, /* field[2] = amtype */ - 1, /* field[1] = handler_name */ +static const unsigned pg_query__alter_database_refresh_coll_stmt__field_indices_by_name[] = { + 0, /* field[0] = dbname */ }; -static const ProtobufCIntRange pg_query__create_am_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_database_refresh_coll_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 1 } }; -const ProtobufCMessageDescriptor pg_query__create_am_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_database_refresh_coll_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateAmStmt", - "CreateAmStmt", - "PgQuery__CreateAmStmt", + "pg_query.AlterDatabaseRefreshCollStmt", + "AlterDatabaseRefreshCollStmt", + "PgQuery__AlterDatabaseRefreshCollStmt", "pg_query", - sizeof(PgQuery__CreateAmStmt), - 3, - pg_query__create_am_stmt__field_descriptors, - pg_query__create_am_stmt__field_indices_by_name, - 1, pg_query__create_am_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_am_stmt__init, + sizeof(PgQuery__AlterDatabaseRefreshCollStmt), + 1, + pg_query__alter_database_refresh_coll_stmt__field_descriptors, + pg_query__alter_database_refresh_coll_stmt__field_indices_by_name, + 1, pg_query__alter_database_refresh_coll_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_database_refresh_coll_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_trig_stmt__field_descriptors[15] = +static const ProtobufCFieldDescriptor pg_query__alter_database_set_stmt__field_descriptors[2] = { { - "replace", + "dbname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, replace), - NULL, + offsetof(PgQuery__AlterDatabaseSetStmt, dbname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "isconstraint", + "setstmt", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, isconstraint), - NULL, + offsetof(PgQuery__AlterDatabaseSetStmt, setstmt), + &pg_query__variable_set_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_database_set_stmt__field_indices_by_name[] = { + 0, /* field[0] = dbname */ + 1, /* field[1] = setstmt */ +}; +static const ProtobufCIntRange pg_query__alter_database_set_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__alter_database_set_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterDatabaseSetStmt", + "AlterDatabaseSetStmt", + "PgQuery__AlterDatabaseSetStmt", + "pg_query", + sizeof(PgQuery__AlterDatabaseSetStmt), + 2, + pg_query__alter_database_set_stmt__field_descriptors, + pg_query__alter_database_set_stmt__field_indices_by_name, + 1, pg_query__alter_database_set_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_database_set_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__dropdb_stmt__field_descriptors[3] = +{ { - "trigname", - 3, + "dbname", + 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, trigname), + offsetof(PgQuery__DropdbStmt, dbname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", - 4, + "missing_ok", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__DropdbStmt, missing_ok), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "funcname", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateTrigStmt, n_funcname), - offsetof(PgQuery__CreateTrigStmt, funcname), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", - 6, + "options", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateTrigStmt, n_args), - offsetof(PgQuery__CreateTrigStmt, args), + offsetof(PgQuery__DropdbStmt, n_options), + offsetof(PgQuery__DropdbStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__dropdb_stmt__field_indices_by_name[] = { + 0, /* field[0] = dbname */ + 1, /* field[1] = missing_ok */ + 2, /* field[2] = options */ +}; +static const ProtobufCIntRange pg_query__dropdb_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__dropdb_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DropdbStmt", + "DropdbStmt", + "PgQuery__DropdbStmt", + "pg_query", + sizeof(PgQuery__DropdbStmt), + 3, + pg_query__dropdb_stmt__field_descriptors, + pg_query__dropdb_stmt__field_indices_by_name, + 1, pg_query__dropdb_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__dropdb_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__alter_system_stmt__field_descriptors[1] = +{ { - "row", - 7, + "setstmt", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, row), - NULL, + offsetof(PgQuery__AlterSystemStmt, setstmt), + &pg_query__variable_set_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_system_stmt__field_indices_by_name[] = { + 0, /* field[0] = setstmt */ +}; +static const ProtobufCIntRange pg_query__alter_system_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__alter_system_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterSystemStmt", + "AlterSystemStmt", + "PgQuery__AlterSystemStmt", + "pg_query", + sizeof(PgQuery__AlterSystemStmt), + 1, + pg_query__alter_system_stmt__field_descriptors, + pg_query__alter_system_stmt__field_indices_by_name, + 1, pg_query__alter_system_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_system_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__cluster_stmt__field_descriptors[3] = +{ { - "timing", - 8, + "relation", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, timing), - NULL, + offsetof(PgQuery__ClusterStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "events", - 9, + "indexname", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, events), - NULL, + offsetof(PgQuery__ClusterStmt, indexname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "columns", - 10, + "params", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateTrigStmt, n_columns), - offsetof(PgQuery__CreateTrigStmt, columns), + offsetof(PgQuery__ClusterStmt, n_params), + offsetof(PgQuery__ClusterStmt, params), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__cluster_stmt__field_indices_by_name[] = { + 1, /* field[1] = indexname */ + 2, /* field[2] = params */ + 0, /* field[0] = relation */ +}; +static const ProtobufCIntRange pg_query__cluster_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__cluster_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ClusterStmt", + "ClusterStmt", + "PgQuery__ClusterStmt", + "pg_query", + sizeof(PgQuery__ClusterStmt), + 3, + pg_query__cluster_stmt__field_descriptors, + pg_query__cluster_stmt__field_indices_by_name, + 1, pg_query__cluster_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__cluster_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__vacuum_stmt__field_descriptors[3] = +{ { - "when_clause", - 11, - PROTOBUF_C_LABEL_NONE, + "options", + 1, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, when_clause), + offsetof(PgQuery__VacuumStmt, n_options), + offsetof(PgQuery__VacuumStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "transition_rels", - 12, + "rels", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateTrigStmt, n_transition_rels), - offsetof(PgQuery__CreateTrigStmt, transition_rels), + offsetof(PgQuery__VacuumStmt, n_rels), + offsetof(PgQuery__VacuumStmt, rels), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "deferrable", - 13, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, deferrable), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "initdeferred", - 14, + "is_vacuumcmd", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, initdeferred), - NULL, + offsetof(PgQuery__VacuumStmt, is_vacuumcmd), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "constrrel", - 15, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTrigStmt, constrrel), - &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_trig_stmt__field_indices_by_name[] = { - 5, /* field[5] = args */ - 9, /* field[9] = columns */ - 14, /* field[14] = constrrel */ - 12, /* field[12] = deferrable */ - 8, /* field[8] = events */ - 4, /* field[4] = funcname */ - 13, /* field[13] = initdeferred */ - 1, /* field[1] = isconstraint */ - 3, /* field[3] = relation */ - 0, /* field[0] = replace */ - 6, /* field[6] = row */ - 7, /* field[7] = timing */ - 11, /* field[11] = transition_rels */ - 2, /* field[2] = trigname */ - 10, /* field[10] = when_clause */ +static const unsigned pg_query__vacuum_stmt__field_indices_by_name[] = { + 2, /* field[2] = is_vacuumcmd */ + 0, /* field[0] = options */ + 1, /* field[1] = rels */ }; -static const ProtobufCIntRange pg_query__create_trig_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__vacuum_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 15 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__create_trig_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__vacuum_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateTrigStmt", - "CreateTrigStmt", - "PgQuery__CreateTrigStmt", + "pg_query.VacuumStmt", + "VacuumStmt", + "PgQuery__VacuumStmt", "pg_query", - sizeof(PgQuery__CreateTrigStmt), - 15, - pg_query__create_trig_stmt__field_descriptors, - pg_query__create_trig_stmt__field_indices_by_name, - 1, pg_query__create_trig_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_trig_stmt__init, + sizeof(PgQuery__VacuumStmt), + 3, + pg_query__vacuum_stmt__field_descriptors, + pg_query__vacuum_stmt__field_indices_by_name, + 1, pg_query__vacuum_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__vacuum_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_event_trig_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__vacuum_relation__field_descriptors[3] = { { - "trigname", + "relation", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateEventTrigStmt, trigname), + offsetof(PgQuery__VacuumRelation, relation), + &pg_query__range_var__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "eventname", + "oid", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateEventTrigStmt, eventname), + offsetof(PgQuery__VacuumRelation, oid), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "whenclause", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateEventTrigStmt, n_whenclause), - offsetof(PgQuery__CreateEventTrigStmt, whenclause), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcname", - 4, + "va_cols", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateEventTrigStmt, n_funcname), - offsetof(PgQuery__CreateEventTrigStmt, funcname), + offsetof(PgQuery__VacuumRelation, n_va_cols), + offsetof(PgQuery__VacuumRelation, va_cols), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_event_trig_stmt__field_indices_by_name[] = { - 1, /* field[1] = eventname */ - 3, /* field[3] = funcname */ - 0, /* field[0] = trigname */ - 2, /* field[2] = whenclause */ +static const unsigned pg_query__vacuum_relation__field_indices_by_name[] = { + 1, /* field[1] = oid */ + 0, /* field[0] = relation */ + 2, /* field[2] = va_cols */ }; -static const ProtobufCIntRange pg_query__create_event_trig_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__vacuum_relation__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__create_event_trig_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__vacuum_relation__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateEventTrigStmt", - "CreateEventTrigStmt", - "PgQuery__CreateEventTrigStmt", + "pg_query.VacuumRelation", + "VacuumRelation", + "PgQuery__VacuumRelation", "pg_query", - sizeof(PgQuery__CreateEventTrigStmt), - 4, - pg_query__create_event_trig_stmt__field_descriptors, - pg_query__create_event_trig_stmt__field_indices_by_name, - 1, pg_query__create_event_trig_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_event_trig_stmt__init, + sizeof(PgQuery__VacuumRelation), + 3, + pg_query__vacuum_relation__field_descriptors, + pg_query__vacuum_relation__field_indices_by_name, + 1, pg_query__vacuum_relation__number_ranges, + (ProtobufCMessageInit) pg_query__vacuum_relation__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_event_trig_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__explain_stmt__field_descriptors[2] = { { - "trigname", + "query", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEventTrigStmt, trigname), + offsetof(PgQuery__ExplainStmt, query), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tgenabled", + "options", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEventTrigStmt, tgenabled), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ExplainStmt, n_options), + offsetof(PgQuery__ExplainStmt, options), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_event_trig_stmt__field_indices_by_name[] = { - 1, /* field[1] = tgenabled */ - 0, /* field[0] = trigname */ +static const unsigned pg_query__explain_stmt__field_indices_by_name[] = { + 1, /* field[1] = options */ + 0, /* field[0] = query */ }; -static const ProtobufCIntRange pg_query__alter_event_trig_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__explain_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_event_trig_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__explain_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterEventTrigStmt", - "AlterEventTrigStmt", - "PgQuery__AlterEventTrigStmt", + "pg_query.ExplainStmt", + "ExplainStmt", + "PgQuery__ExplainStmt", "pg_query", - sizeof(PgQuery__AlterEventTrigStmt), + sizeof(PgQuery__ExplainStmt), 2, - pg_query__alter_event_trig_stmt__field_descriptors, - pg_query__alter_event_trig_stmt__field_indices_by_name, - 1, pg_query__alter_event_trig_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_event_trig_stmt__init, + pg_query__explain_stmt__field_descriptors, + pg_query__explain_stmt__field_indices_by_name, + 1, pg_query__explain_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__explain_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_plang_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__create_table_as_stmt__field_descriptors[5] = { { - "replace", + "query", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePLangStmt, replace), - NULL, + offsetof(PgQuery__CreateTableAsStmt, query), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plname", + "into", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePLangStmt, plname), + offsetof(PgQuery__CreateTableAsStmt, into), + &pg_query__into_clause__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plhandler", + "objtype", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatePLangStmt, n_plhandler), - offsetof(PgQuery__CreatePLangStmt, plhandler), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateTableAsStmt, objtype), + &pg_query__object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "plinline", + "is_select_into", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatePLangStmt, n_plinline), - offsetof(PgQuery__CreatePLangStmt, plinline), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "plvalidator", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatePLangStmt, n_plvalidator), - offsetof(PgQuery__CreatePLangStmt, plvalidator), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "pltrusted", - 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePLangStmt, pltrusted), - NULL, + offsetof(PgQuery__CreateTableAsStmt, is_select_into), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__create_plang_stmt__field_indices_by_name[] = { - 2, /* field[2] = plhandler */ - 3, /* field[3] = plinline */ - 1, /* field[1] = plname */ - 5, /* field[5] = pltrusted */ - 4, /* field[4] = plvalidator */ - 0, /* field[0] = replace */ -}; -static const ProtobufCIntRange pg_query__create_plang_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 6 } -}; -const ProtobufCMessageDescriptor pg_query__create_plang_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreatePLangStmt", - "CreatePLangStmt", - "PgQuery__CreatePLangStmt", - "pg_query", - sizeof(PgQuery__CreatePLangStmt), - 6, - pg_query__create_plang_stmt__field_descriptors, - pg_query__create_plang_stmt__field_indices_by_name, - 1, pg_query__create_plang_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_plang_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__create_role_stmt__field_descriptors[3] = -{ - { - "stmt_type", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateRoleStmt, stmt_type), - &pg_query__role_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "role", - 2, + "if_not_exists", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateRoleStmt, role), + offsetof(PgQuery__CreateTableAsStmt, if_not_exists), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "options", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateRoleStmt, n_options), - offsetof(PgQuery__CreateRoleStmt, options), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_role_stmt__field_indices_by_name[] = { - 2, /* field[2] = options */ - 1, /* field[1] = role */ - 0, /* field[0] = stmt_type */ +static const unsigned pg_query__create_table_as_stmt__field_indices_by_name[] = { + 4, /* field[4] = if_not_exists */ + 1, /* field[1] = into */ + 3, /* field[3] = is_select_into */ + 2, /* field[2] = objtype */ + 0, /* field[0] = query */ }; -static const ProtobufCIntRange pg_query__create_role_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_table_as_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__create_role_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_table_as_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateRoleStmt", - "CreateRoleStmt", - "PgQuery__CreateRoleStmt", + "pg_query.CreateTableAsStmt", + "CreateTableAsStmt", + "PgQuery__CreateTableAsStmt", "pg_query", - sizeof(PgQuery__CreateRoleStmt), - 3, - pg_query__create_role_stmt__field_descriptors, - pg_query__create_role_stmt__field_indices_by_name, - 1, pg_query__create_role_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_role_stmt__init, + sizeof(PgQuery__CreateTableAsStmt), + 5, + pg_query__create_table_as_stmt__field_descriptors, + pg_query__create_table_as_stmt__field_indices_by_name, + 1, pg_query__create_table_as_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_table_as_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_role_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__refresh_mat_view_stmt__field_descriptors[3] = { { - "role", + "concurrent", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterRoleStmt, role), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__RefreshMatViewStmt, concurrent), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "skip_data", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterRoleStmt, n_options), - offsetof(PgQuery__AlterRoleStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__RefreshMatViewStmt, skip_data), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "action", + "relation", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterRoleStmt, action), - NULL, + offsetof(PgQuery__RefreshMatViewStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_role_stmt__field_indices_by_name[] = { - 2, /* field[2] = action */ - 1, /* field[1] = options */ - 0, /* field[0] = role */ +static const unsigned pg_query__refresh_mat_view_stmt__field_indices_by_name[] = { + 0, /* field[0] = concurrent */ + 2, /* field[2] = relation */ + 1, /* field[1] = skip_data */ }; -static const ProtobufCIntRange pg_query__alter_role_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__refresh_mat_view_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__alter_role_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__refresh_mat_view_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterRoleStmt", - "AlterRoleStmt", - "PgQuery__AlterRoleStmt", + "pg_query.RefreshMatViewStmt", + "RefreshMatViewStmt", + "PgQuery__RefreshMatViewStmt", "pg_query", - sizeof(PgQuery__AlterRoleStmt), + sizeof(PgQuery__RefreshMatViewStmt), 3, - pg_query__alter_role_stmt__field_descriptors, - pg_query__alter_role_stmt__field_indices_by_name, - 1, pg_query__alter_role_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_role_stmt__init, + pg_query__refresh_mat_view_stmt__field_descriptors, + pg_query__refresh_mat_view_stmt__field_indices_by_name, + 1, pg_query__refresh_mat_view_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__refresh_mat_view_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_role_set_stmt__field_descriptors[3] = +#define pg_query__check_point_stmt__field_descriptors NULL +#define pg_query__check_point_stmt__field_indices_by_name NULL +#define pg_query__check_point_stmt__number_ranges NULL +const ProtobufCMessageDescriptor pg_query__check_point_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.CheckPointStmt", + "CheckPointStmt", + "PgQuery__CheckPointStmt", + "pg_query", + sizeof(PgQuery__CheckPointStmt), + 0, + pg_query__check_point_stmt__field_descriptors, + pg_query__check_point_stmt__field_indices_by_name, + 0, pg_query__check_point_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__check_point_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__discard_stmt__field_descriptors[1] = { { - "role", + "target", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterRoleSetStmt, role), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__DiscardStmt, target), + &pg_query__discard_mode__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__discard_stmt__field_indices_by_name[] = { + 0, /* field[0] = target */ +}; +static const ProtobufCIntRange pg_query__discard_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor pg_query__discard_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DiscardStmt", + "DiscardStmt", + "PgQuery__DiscardStmt", + "pg_query", + sizeof(PgQuery__DiscardStmt), + 1, + pg_query__discard_stmt__field_descriptors, + pg_query__discard_stmt__field_indices_by_name, + 1, pg_query__discard_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__discard_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__lock_stmt__field_descriptors[3] = +{ { - "database", + "relations", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__LockStmt, n_relations), + offsetof(PgQuery__LockStmt, relations), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mode", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterRoleSetStmt, database), + offsetof(PgQuery__LockStmt, mode), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "setstmt", + "nowait", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterRoleSetStmt, setstmt), - &pg_query__variable_set_stmt__descriptor, + offsetof(PgQuery__LockStmt, nowait), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_role_set_stmt__field_indices_by_name[] = { - 1, /* field[1] = database */ - 0, /* field[0] = role */ - 2, /* field[2] = setstmt */ +static const unsigned pg_query__lock_stmt__field_indices_by_name[] = { + 1, /* field[1] = mode */ + 2, /* field[2] = nowait */ + 0, /* field[0] = relations */ }; -static const ProtobufCIntRange pg_query__alter_role_set_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__lock_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__alter_role_set_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__lock_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterRoleSetStmt", - "AlterRoleSetStmt", - "PgQuery__AlterRoleSetStmt", + "pg_query.LockStmt", + "LockStmt", + "PgQuery__LockStmt", "pg_query", - sizeof(PgQuery__AlterRoleSetStmt), + sizeof(PgQuery__LockStmt), 3, - pg_query__alter_role_set_stmt__field_descriptors, - pg_query__alter_role_set_stmt__field_indices_by_name, - 1, pg_query__alter_role_set_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_role_set_stmt__init, + pg_query__lock_stmt__field_descriptors, + pg_query__lock_stmt__field_indices_by_name, + 1, pg_query__lock_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__lock_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__drop_role_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__constraints_set_stmt__field_descriptors[2] = { { - "roles", + "constraints", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DropRoleStmt, n_roles), - offsetof(PgQuery__DropRoleStmt, roles), + offsetof(PgQuery__ConstraintsSetStmt, n_constraints), + offsetof(PgQuery__ConstraintsSetStmt, constraints), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "deferred", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DropRoleStmt, missing_ok), + offsetof(PgQuery__ConstraintsSetStmt, deferred), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__drop_role_stmt__field_indices_by_name[] = { - 1, /* field[1] = missing_ok */ - 0, /* field[0] = roles */ +static const unsigned pg_query__constraints_set_stmt__field_indices_by_name[] = { + 0, /* field[0] = constraints */ + 1, /* field[1] = deferred */ }; -static const ProtobufCIntRange pg_query__drop_role_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__constraints_set_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__drop_role_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__constraints_set_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropRoleStmt", - "DropRoleStmt", - "PgQuery__DropRoleStmt", + "pg_query.ConstraintsSetStmt", + "ConstraintsSetStmt", + "PgQuery__ConstraintsSetStmt", "pg_query", - sizeof(PgQuery__DropRoleStmt), + sizeof(PgQuery__ConstraintsSetStmt), 2, - pg_query__drop_role_stmt__field_descriptors, - pg_query__drop_role_stmt__field_indices_by_name, - 1, pg_query__drop_role_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__drop_role_stmt__init, + pg_query__constraints_set_stmt__field_descriptors, + pg_query__constraints_set_stmt__field_indices_by_name, + 1, pg_query__constraints_set_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__constraints_set_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_seq_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__reindex_stmt__field_descriptors[4] = { { - "sequence", + "kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSeqStmt, sequence), - &pg_query__range_var__descriptor, + offsetof(PgQuery__ReindexStmt, kind), + &pg_query__reindex_object_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "relation", 2, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateSeqStmt, n_options), - offsetof(PgQuery__CreateSeqStmt, options), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__ReindexStmt, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "owner_id", + "name", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSeqStmt, owner_id), - NULL, + offsetof(PgQuery__ReindexStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "for_identity", + "params", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSeqStmt, for_identity), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "if_not_exists", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSeqStmt, if_not_exists), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__ReindexStmt, n_params), + offsetof(PgQuery__ReindexStmt, params), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_seq_stmt__field_indices_by_name[] = { - 3, /* field[3] = for_identity */ - 4, /* field[4] = if_not_exists */ - 1, /* field[1] = options */ - 2, /* field[2] = owner_id */ - 0, /* field[0] = sequence */ +static const unsigned pg_query__reindex_stmt__field_indices_by_name[] = { + 0, /* field[0] = kind */ + 2, /* field[2] = name */ + 3, /* field[3] = params */ + 1, /* field[1] = relation */ }; -static const ProtobufCIntRange pg_query__create_seq_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__reindex_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__create_seq_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__reindex_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateSeqStmt", - "CreateSeqStmt", - "PgQuery__CreateSeqStmt", + "pg_query.ReindexStmt", + "ReindexStmt", + "PgQuery__ReindexStmt", "pg_query", - sizeof(PgQuery__CreateSeqStmt), - 5, - pg_query__create_seq_stmt__field_descriptors, - pg_query__create_seq_stmt__field_indices_by_name, - 1, pg_query__create_seq_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_seq_stmt__init, + sizeof(PgQuery__ReindexStmt), + 4, + pg_query__reindex_stmt__field_descriptors, + pg_query__reindex_stmt__field_indices_by_name, + 1, pg_query__reindex_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__reindex_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_seq_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_conversion_stmt__field_descriptors[5] = { { - "sequence", + "conversion_name", 1, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSeqStmt, sequence), - &pg_query__range_var__descriptor, + offsetof(PgQuery__CreateConversionStmt, n_conversion_name), + offsetof(PgQuery__CreateConversionStmt, conversion_name), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "for_encoding_name", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterSeqStmt, n_options), - offsetof(PgQuery__AlterSeqStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateConversionStmt, for_encoding_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "for_identity", + "to_encoding_name", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSeqStmt, for_identity), - NULL, + offsetof(PgQuery__CreateConversionStmt, to_encoding_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "func_name", 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateConversionStmt, n_func_name), + offsetof(PgQuery__CreateConversionStmt, func_name), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "def", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSeqStmt, missing_ok), + offsetof(PgQuery__CreateConversionStmt, def), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_seq_stmt__field_indices_by_name[] = { - 2, /* field[2] = for_identity */ - 3, /* field[3] = missing_ok */ - 1, /* field[1] = options */ - 0, /* field[0] = sequence */ +static const unsigned pg_query__create_conversion_stmt__field_indices_by_name[] = { + 0, /* field[0] = conversion_name */ + 4, /* field[4] = def */ + 1, /* field[1] = for_encoding_name */ + 3, /* field[3] = func_name */ + 2, /* field[2] = to_encoding_name */ }; -static const ProtobufCIntRange pg_query__alter_seq_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_conversion_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__alter_seq_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_conversion_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterSeqStmt", - "AlterSeqStmt", - "PgQuery__AlterSeqStmt", + "pg_query.CreateConversionStmt", + "CreateConversionStmt", + "PgQuery__CreateConversionStmt", "pg_query", - sizeof(PgQuery__AlterSeqStmt), - 4, - pg_query__alter_seq_stmt__field_descriptors, - pg_query__alter_seq_stmt__field_indices_by_name, - 1, pg_query__alter_seq_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_seq_stmt__init, + sizeof(PgQuery__CreateConversionStmt), + 5, + pg_query__create_conversion_stmt__field_descriptors, + pg_query__create_conversion_stmt__field_indices_by_name, + 1, pg_query__create_conversion_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_conversion_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__define_stmt__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__create_cast_stmt__field_descriptors[5] = { { - "kind", + "sourcetype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DefineStmt, kind), - &pg_query__object_type__descriptor, + offsetof(PgQuery__CreateCastStmt, sourcetype), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "oldstyle", + "targettype", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DefineStmt, oldstyle), - NULL, + offsetof(PgQuery__CreateCastStmt, targettype), + &pg_query__type_name__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "defnames", + "func", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DefineStmt, n_defnames), - offsetof(PgQuery__DefineStmt, defnames), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateCastStmt, func), + &pg_query__object_with_args__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "args", + "context", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DefineStmt, n_args), - offsetof(PgQuery__DefineStmt, args), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "definition", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DefineStmt, n_definition), - offsetof(PgQuery__DefineStmt, definition), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "if_not_exists", - 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__DefineStmt, if_not_exists), - NULL, + offsetof(PgQuery__CreateCastStmt, context), + &pg_query__coercion_context__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "replace", - 7, + "inout", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DefineStmt, replace), + offsetof(PgQuery__CreateCastStmt, inout), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__define_stmt__field_indices_by_name[] = { - 3, /* field[3] = args */ - 4, /* field[4] = definition */ - 2, /* field[2] = defnames */ - 5, /* field[5] = if_not_exists */ - 0, /* field[0] = kind */ - 1, /* field[1] = oldstyle */ - 6, /* field[6] = replace */ +static const unsigned pg_query__create_cast_stmt__field_indices_by_name[] = { + 3, /* field[3] = context */ + 2, /* field[2] = func */ + 4, /* field[4] = inout */ + 0, /* field[0] = sourcetype */ + 1, /* field[1] = targettype */ }; -static const ProtobufCIntRange pg_query__define_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_cast_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__define_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_cast_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DefineStmt", - "DefineStmt", - "PgQuery__DefineStmt", + "pg_query.CreateCastStmt", + "CreateCastStmt", + "PgQuery__CreateCastStmt", "pg_query", - sizeof(PgQuery__DefineStmt), - 7, - pg_query__define_stmt__field_descriptors, - pg_query__define_stmt__field_indices_by_name, - 1, pg_query__define_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__define_stmt__init, + sizeof(PgQuery__CreateCastStmt), + 5, + pg_query__create_cast_stmt__field_descriptors, + pg_query__create_cast_stmt__field_indices_by_name, + 1, pg_query__create_cast_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_cast_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_domain_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_transform_stmt__field_descriptors[5] = { { - "domainname", + "replace", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateDomainStmt, n_domainname), - offsetof(PgQuery__CreateDomainStmt, domainname), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateTransformStmt, replace), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -35329,703 +41585,753 @@ static const ProtobufCFieldDescriptor pg_query__create_domain_stmt__field_descri "type_name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateTransformStmt, type_name), + &pg_query__type_name__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lang", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateDomainStmt, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__CreateTransformStmt, lang), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coll_clause", - 3, + "fromsql", + 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateDomainStmt, coll_clause), - &pg_query__collate_clause__descriptor, + offsetof(PgQuery__CreateTransformStmt, fromsql), + &pg_query__object_with_args__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "constraints", - 4, - PROTOBUF_C_LABEL_REPEATED, + "tosql", + 5, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateDomainStmt, n_constraints), - offsetof(PgQuery__CreateDomainStmt, constraints), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__CreateTransformStmt, tosql), + &pg_query__object_with_args__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_domain_stmt__field_indices_by_name[] = { - 2, /* field[2] = coll_clause */ - 3, /* field[3] = constraints */ - 0, /* field[0] = domainname */ +static const unsigned pg_query__create_transform_stmt__field_indices_by_name[] = { + 3, /* field[3] = fromsql */ + 2, /* field[2] = lang */ + 0, /* field[0] = replace */ + 4, /* field[4] = tosql */ 1, /* field[1] = type_name */ }; -static const ProtobufCIntRange pg_query__create_domain_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_transform_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__create_domain_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_transform_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateDomainStmt", - "CreateDomainStmt", - "PgQuery__CreateDomainStmt", + "pg_query.CreateTransformStmt", + "CreateTransformStmt", + "PgQuery__CreateTransformStmt", "pg_query", - sizeof(PgQuery__CreateDomainStmt), - 4, - pg_query__create_domain_stmt__field_descriptors, - pg_query__create_domain_stmt__field_indices_by_name, - 1, pg_query__create_domain_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_domain_stmt__init, + sizeof(PgQuery__CreateTransformStmt), + 5, + pg_query__create_transform_stmt__field_descriptors, + pg_query__create_transform_stmt__field_indices_by_name, + 1, pg_query__create_transform_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_transform_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_op_class_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__prepare_stmt__field_descriptors[3] = { { - "opclassname", + "name", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateOpClassStmt, n_opclassname), - offsetof(PgQuery__CreateOpClassStmt, opclassname), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__PrepareStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "opfamilyname", + "argtypes", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateOpClassStmt, n_opfamilyname), - offsetof(PgQuery__CreateOpClassStmt, opfamilyname), + offsetof(PgQuery__PrepareStmt, n_argtypes), + offsetof(PgQuery__PrepareStmt, argtypes), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "amname", + "query", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassStmt, amname), + offsetof(PgQuery__PrepareStmt, query), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__prepare_stmt__field_indices_by_name[] = { + 1, /* field[1] = argtypes */ + 0, /* field[0] = name */ + 2, /* field[2] = query */ +}; +static const ProtobufCIntRange pg_query__prepare_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__prepare_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.PrepareStmt", + "PrepareStmt", + "PgQuery__PrepareStmt", + "pg_query", + sizeof(PgQuery__PrepareStmt), + 3, + pg_query__prepare_stmt__field_descriptors, + pg_query__prepare_stmt__field_indices_by_name, + 1, pg_query__prepare_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__prepare_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__execute_stmt__field_descriptors[2] = +{ { - "datatype", - 4, + "name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassStmt, datatype), - &pg_query__type_name__descriptor, + offsetof(PgQuery__ExecuteStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "items", - 5, + "params", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateOpClassStmt, n_items), - offsetof(PgQuery__CreateOpClassStmt, items), + offsetof(PgQuery__ExecuteStmt, n_params), + offsetof(PgQuery__ExecuteStmt, params), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "is_default", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassStmt, is_default), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, }; -static const unsigned pg_query__create_op_class_stmt__field_indices_by_name[] = { - 2, /* field[2] = amname */ - 3, /* field[3] = datatype */ - 5, /* field[5] = is_default */ - 4, /* field[4] = items */ - 0, /* field[0] = opclassname */ - 1, /* field[1] = opfamilyname */ +static const unsigned pg_query__execute_stmt__field_indices_by_name[] = { + 0, /* field[0] = name */ + 1, /* field[1] = params */ }; -static const ProtobufCIntRange pg_query__create_op_class_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__execute_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__create_op_class_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__execute_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateOpClassStmt", - "CreateOpClassStmt", - "PgQuery__CreateOpClassStmt", + "pg_query.ExecuteStmt", + "ExecuteStmt", + "PgQuery__ExecuteStmt", "pg_query", - sizeof(PgQuery__CreateOpClassStmt), - 6, - pg_query__create_op_class_stmt__field_descriptors, - pg_query__create_op_class_stmt__field_indices_by_name, - 1, pg_query__create_op_class_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_op_class_stmt__init, + sizeof(PgQuery__ExecuteStmt), + 2, + pg_query__execute_stmt__field_descriptors, + pg_query__execute_stmt__field_indices_by_name, + 1, pg_query__execute_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__execute_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_op_class_item__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__deallocate_stmt__field_descriptors[3] = { { - "itemtype", + "name", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassItem, itemtype), - NULL, + offsetof(PgQuery__DeallocateStmt, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", + "isall", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassItem, name), - &pg_query__object_with_args__descriptor, + offsetof(PgQuery__DeallocateStmt, isall), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "number", + "location", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassItem, number), - NULL, + offsetof(PgQuery__DeallocateStmt, location), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "order_family", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateOpClassItem, n_order_family), - offsetof(PgQuery__CreateOpClassItem, order_family), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__deallocate_stmt__field_indices_by_name[] = { + 1, /* field[1] = isall */ + 2, /* field[2] = location */ + 0, /* field[0] = name */ +}; +static const ProtobufCIntRange pg_query__deallocate_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__deallocate_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DeallocateStmt", + "DeallocateStmt", + "PgQuery__DeallocateStmt", + "pg_query", + sizeof(PgQuery__DeallocateStmt), + 3, + pg_query__deallocate_stmt__field_descriptors, + pg_query__deallocate_stmt__field_indices_by_name, + 1, pg_query__deallocate_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__deallocate_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__drop_owned_stmt__field_descriptors[2] = +{ { - "class_args", - 5, + "roles", + 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateOpClassItem, n_class_args), - offsetof(PgQuery__CreateOpClassItem, class_args), + offsetof(PgQuery__DropOwnedStmt, n_roles), + offsetof(PgQuery__DropOwnedStmt, roles), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "storedtype", - 6, + "behavior", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpClassItem, storedtype), - &pg_query__type_name__descriptor, + offsetof(PgQuery__DropOwnedStmt, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_op_class_item__field_indices_by_name[] = { - 4, /* field[4] = class_args */ - 0, /* field[0] = itemtype */ - 1, /* field[1] = name */ - 2, /* field[2] = number */ - 3, /* field[3] = order_family */ - 5, /* field[5] = storedtype */ +static const unsigned pg_query__drop_owned_stmt__field_indices_by_name[] = { + 1, /* field[1] = behavior */ + 0, /* field[0] = roles */ }; -static const ProtobufCIntRange pg_query__create_op_class_item__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__drop_owned_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__create_op_class_item__descriptor = +const ProtobufCMessageDescriptor pg_query__drop_owned_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateOpClassItem", - "CreateOpClassItem", - "PgQuery__CreateOpClassItem", + "pg_query.DropOwnedStmt", + "DropOwnedStmt", + "PgQuery__DropOwnedStmt", "pg_query", - sizeof(PgQuery__CreateOpClassItem), - 6, - pg_query__create_op_class_item__field_descriptors, - pg_query__create_op_class_item__field_indices_by_name, - 1, pg_query__create_op_class_item__number_ranges, - (ProtobufCMessageInit) pg_query__create_op_class_item__init, + sizeof(PgQuery__DropOwnedStmt), + 2, + pg_query__drop_owned_stmt__field_descriptors, + pg_query__drop_owned_stmt__field_indices_by_name, + 1, pg_query__drop_owned_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__drop_owned_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_op_family_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__reassign_owned_stmt__field_descriptors[2] = { { - "opfamilyname", + "roles", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateOpFamilyStmt, n_opfamilyname), - offsetof(PgQuery__CreateOpFamilyStmt, opfamilyname), + offsetof(PgQuery__ReassignOwnedStmt, n_roles), + offsetof(PgQuery__ReassignOwnedStmt, roles), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "amname", + "newrole", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateOpFamilyStmt, amname), + offsetof(PgQuery__ReassignOwnedStmt, newrole), + &pg_query__role_spec__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_op_family_stmt__field_indices_by_name[] = { - 1, /* field[1] = amname */ - 0, /* field[0] = opfamilyname */ +static const unsigned pg_query__reassign_owned_stmt__field_indices_by_name[] = { + 1, /* field[1] = newrole */ + 0, /* field[0] = roles */ }; -static const ProtobufCIntRange pg_query__create_op_family_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__reassign_owned_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__create_op_family_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__reassign_owned_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateOpFamilyStmt", - "CreateOpFamilyStmt", - "PgQuery__CreateOpFamilyStmt", + "pg_query.ReassignOwnedStmt", + "ReassignOwnedStmt", + "PgQuery__ReassignOwnedStmt", "pg_query", - sizeof(PgQuery__CreateOpFamilyStmt), + sizeof(PgQuery__ReassignOwnedStmt), 2, - pg_query__create_op_family_stmt__field_descriptors, - pg_query__create_op_family_stmt__field_indices_by_name, - 1, pg_query__create_op_family_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_op_family_stmt__init, + pg_query__reassign_owned_stmt__field_descriptors, + pg_query__reassign_owned_stmt__field_indices_by_name, + 1, pg_query__reassign_owned_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__reassign_owned_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_op_family_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__alter_tsdictionary_stmt__field_descriptors[2] = { { - "opfamilyname", + "dictname", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterOpFamilyStmt, n_opfamilyname), - offsetof(PgQuery__AlterOpFamilyStmt, opfamilyname), + offsetof(PgQuery__AlterTSDictionaryStmt, n_dictname), + offsetof(PgQuery__AlterTSDictionaryStmt, dictname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "amname", + "options", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOpFamilyStmt, amname), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "is_drop", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOpFamilyStmt, is_drop), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "items", - 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterOpFamilyStmt, n_items), - offsetof(PgQuery__AlterOpFamilyStmt, items), + offsetof(PgQuery__AlterTSDictionaryStmt, n_options), + offsetof(PgQuery__AlterTSDictionaryStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_op_family_stmt__field_indices_by_name[] = { - 1, /* field[1] = amname */ - 2, /* field[2] = is_drop */ - 3, /* field[3] = items */ - 0, /* field[0] = opfamilyname */ +static const unsigned pg_query__alter_tsdictionary_stmt__field_indices_by_name[] = { + 0, /* field[0] = dictname */ + 1, /* field[1] = options */ }; -static const ProtobufCIntRange pg_query__alter_op_family_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_tsdictionary_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_op_family_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_tsdictionary_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterOpFamilyStmt", - "AlterOpFamilyStmt", - "PgQuery__AlterOpFamilyStmt", + "pg_query.AlterTSDictionaryStmt", + "AlterTSDictionaryStmt", + "PgQuery__AlterTSDictionaryStmt", "pg_query", - sizeof(PgQuery__AlterOpFamilyStmt), - 4, - pg_query__alter_op_family_stmt__field_descriptors, - pg_query__alter_op_family_stmt__field_indices_by_name, - 1, pg_query__alter_op_family_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_op_family_stmt__init, + sizeof(PgQuery__AlterTSDictionaryStmt), + 2, + pg_query__alter_tsdictionary_stmt__field_descriptors, + pg_query__alter_tsdictionary_stmt__field_indices_by_name, + 1, pg_query__alter_tsdictionary_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_tsdictionary_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__drop_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__alter_tsconfiguration_stmt__field_descriptors[7] = { { - "objects", + "kind", 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterTSConfigurationStmt, kind), + &pg_query__alter_tsconfig_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "cfgname", + 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DropStmt, n_objects), - offsetof(PgQuery__DropStmt, objects), + offsetof(PgQuery__AlterTSConfigurationStmt, n_cfgname), + offsetof(PgQuery__AlterTSConfigurationStmt, cfgname), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "remove_type", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__DropStmt, remove_type), - &pg_query__object_type__descriptor, + "tokentype", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterTSConfigurationStmt, n_tokentype), + offsetof(PgQuery__AlterTSConfigurationStmt, tokentype), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "behavior", - 3, + "dicts", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterTSConfigurationStmt, n_dicts), + offsetof(PgQuery__AlterTSConfigurationStmt, dicts), + &pg_query__node__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "override", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DropStmt, behavior), - &pg_query__drop_behavior__descriptor, + offsetof(PgQuery__AlterTSConfigurationStmt, override), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", - 4, + "replace", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DropStmt, missing_ok), + offsetof(PgQuery__AlterTSConfigurationStmt, replace), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "concurrent", - 5, + "missing_ok", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__DropStmt, concurrent), + offsetof(PgQuery__AlterTSConfigurationStmt, missing_ok), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__drop_stmt__field_indices_by_name[] = { - 2, /* field[2] = behavior */ - 4, /* field[4] = concurrent */ - 3, /* field[3] = missing_ok */ - 0, /* field[0] = objects */ - 1, /* field[1] = remove_type */ +static const unsigned pg_query__alter_tsconfiguration_stmt__field_indices_by_name[] = { + 1, /* field[1] = cfgname */ + 3, /* field[3] = dicts */ + 0, /* field[0] = kind */ + 6, /* field[6] = missing_ok */ + 4, /* field[4] = override */ + 5, /* field[5] = replace */ + 2, /* field[2] = tokentype */ }; -static const ProtobufCIntRange pg_query__drop_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_tsconfiguration_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__drop_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_tsconfiguration_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropStmt", - "DropStmt", - "PgQuery__DropStmt", + "pg_query.AlterTSConfigurationStmt", + "AlterTSConfigurationStmt", + "PgQuery__AlterTSConfigurationStmt", "pg_query", - sizeof(PgQuery__DropStmt), - 5, - pg_query__drop_stmt__field_descriptors, - pg_query__drop_stmt__field_indices_by_name, - 1, pg_query__drop_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__drop_stmt__init, + sizeof(PgQuery__AlterTSConfigurationStmt), + 7, + pg_query__alter_tsconfiguration_stmt__field_descriptors, + pg_query__alter_tsconfiguration_stmt__field_indices_by_name, + 1, pg_query__alter_tsconfiguration_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_tsconfiguration_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__truncate_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__publication_table__field_descriptors[3] = { { - "relations", + "relation", 1, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TruncateStmt, n_relations), - offsetof(PgQuery__TruncateStmt, relations), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PublicationTable, relation), + &pg_query__range_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "restart_seqs", + "where_clause", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__TruncateStmt, restart_seqs), - NULL, + offsetof(PgQuery__PublicationTable, where_clause), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "behavior", + "columns", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__TruncateStmt, behavior), - &pg_query__drop_behavior__descriptor, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PublicationTable, n_columns), + offsetof(PgQuery__PublicationTable, columns), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__truncate_stmt__field_indices_by_name[] = { - 2, /* field[2] = behavior */ - 0, /* field[0] = relations */ - 1, /* field[1] = restart_seqs */ +static const unsigned pg_query__publication_table__field_indices_by_name[] = { + 2, /* field[2] = columns */ + 0, /* field[0] = relation */ + 1, /* field[1] = where_clause */ }; -static const ProtobufCIntRange pg_query__truncate_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__publication_table__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__truncate_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__publication_table__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TruncateStmt", - "TruncateStmt", - "PgQuery__TruncateStmt", + "pg_query.PublicationTable", + "PublicationTable", + "PgQuery__PublicationTable", "pg_query", - sizeof(PgQuery__TruncateStmt), + sizeof(PgQuery__PublicationTable), 3, - pg_query__truncate_stmt__field_descriptors, - pg_query__truncate_stmt__field_indices_by_name, - 1, pg_query__truncate_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__truncate_stmt__init, + pg_query__publication_table__field_descriptors, + pg_query__publication_table__field_indices_by_name, + 1, pg_query__publication_table__number_ranges, + (ProtobufCMessageInit) pg_query__publication_table__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__comment_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__publication_obj_spec__field_descriptors[4] = { { - "objtype", + "pubobjtype", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CommentStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__PublicationObjSpec, pubobjtype), + &pg_query__publication_obj_spec_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object", + "name", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CommentStmt, object), - &pg_query__node__descriptor, + offsetof(PgQuery__PublicationObjSpec, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "comment", + "pubtable", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CommentStmt, comment), + offsetof(PgQuery__PublicationObjSpec, pubtable), + &pg_query__publication_table__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PublicationObjSpec, location), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__comment_stmt__field_indices_by_name[] = { - 2, /* field[2] = comment */ - 1, /* field[1] = object */ - 0, /* field[0] = objtype */ +static const unsigned pg_query__publication_obj_spec__field_indices_by_name[] = { + 3, /* field[3] = location */ + 1, /* field[1] = name */ + 0, /* field[0] = pubobjtype */ + 2, /* field[2] = pubtable */ }; -static const ProtobufCIntRange pg_query__comment_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__publication_obj_spec__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__comment_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__publication_obj_spec__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CommentStmt", - "CommentStmt", - "PgQuery__CommentStmt", + "pg_query.PublicationObjSpec", + "PublicationObjSpec", + "PgQuery__PublicationObjSpec", "pg_query", - sizeof(PgQuery__CommentStmt), - 3, - pg_query__comment_stmt__field_descriptors, - pg_query__comment_stmt__field_indices_by_name, - 1, pg_query__comment_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__comment_stmt__init, + sizeof(PgQuery__PublicationObjSpec), + 4, + pg_query__publication_obj_spec__field_descriptors, + pg_query__publication_obj_spec__field_indices_by_name, + 1, pg_query__publication_obj_spec__number_ranges, + (ProtobufCMessageInit) pg_query__publication_obj_spec__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__sec_label_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_publication_stmt__field_descriptors[4] = { { - "objtype", + "pubname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__SecLabelStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__CreatePublicationStmt, pubname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object", + "options", 2, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__SecLabelStmt, object), + offsetof(PgQuery__CreatePublicationStmt, n_options), + offsetof(PgQuery__CreatePublicationStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "provider", + "pubobjects", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__SecLabelStmt, provider), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreatePublicationStmt, n_pubobjects), + offsetof(PgQuery__CreatePublicationStmt, pubobjects), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "label", + "for_all_tables", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SecLabelStmt, label), + offsetof(PgQuery__CreatePublicationStmt, for_all_tables), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__sec_label_stmt__field_indices_by_name[] = { - 3, /* field[3] = label */ - 1, /* field[1] = object */ - 0, /* field[0] = objtype */ - 2, /* field[2] = provider */ +static const unsigned pg_query__create_publication_stmt__field_indices_by_name[] = { + 3, /* field[3] = for_all_tables */ + 1, /* field[1] = options */ + 0, /* field[0] = pubname */ + 2, /* field[2] = pubobjects */ }; -static const ProtobufCIntRange pg_query__sec_label_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_publication_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__sec_label_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_publication_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SecLabelStmt", - "SecLabelStmt", - "PgQuery__SecLabelStmt", + "pg_query.CreatePublicationStmt", + "CreatePublicationStmt", + "PgQuery__CreatePublicationStmt", "pg_query", - sizeof(PgQuery__SecLabelStmt), + sizeof(PgQuery__CreatePublicationStmt), 4, - pg_query__sec_label_stmt__field_descriptors, - pg_query__sec_label_stmt__field_indices_by_name, - 1, pg_query__sec_label_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__sec_label_stmt__init, + pg_query__create_publication_stmt__field_descriptors, + pg_query__create_publication_stmt__field_indices_by_name, + 1, pg_query__create_publication_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_publication_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__declare_cursor_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__alter_publication_stmt__field_descriptors[5] = { { - "portalname", + "pubname", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__DeclareCursorStmt, portalname), + offsetof(PgQuery__AlterPublicationStmt, pubname), NULL, &protobuf_c_empty_string, 0, /* flags */ @@ -36034,5131 +42340,5169 @@ static const ProtobufCFieldDescriptor pg_query__declare_cursor_stmt__field_descr { "options", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__DeclareCursorStmt, options), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterPublicationStmt, n_options), + offsetof(PgQuery__AlterPublicationStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "query", + "pubobjects", 3, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__DeclareCursorStmt, query), + offsetof(PgQuery__AlterPublicationStmt, n_pubobjects), + offsetof(PgQuery__AlterPublicationStmt, pubobjects), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__declare_cursor_stmt__field_indices_by_name[] = { - 1, /* field[1] = options */ - 0, /* field[0] = portalname */ - 2, /* field[2] = query */ -}; -static const ProtobufCIntRange pg_query__declare_cursor_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__declare_cursor_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DeclareCursorStmt", - "DeclareCursorStmt", - "PgQuery__DeclareCursorStmt", - "pg_query", - sizeof(PgQuery__DeclareCursorStmt), - 3, - pg_query__declare_cursor_stmt__field_descriptors, - pg_query__declare_cursor_stmt__field_indices_by_name, - 1, pg_query__declare_cursor_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__declare_cursor_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__close_portal_stmt__field_descriptors[1] = -{ { - "portalname", - 1, + "for_all_tables", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ClosePortalStmt, portalname), + offsetof(PgQuery__AlterPublicationStmt, for_all_tables), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "action", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__AlterPublicationStmt, action), + &pg_query__alter_publication_action__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__close_portal_stmt__field_indices_by_name[] = { - 0, /* field[0] = portalname */ +static const unsigned pg_query__alter_publication_stmt__field_indices_by_name[] = { + 4, /* field[4] = action */ + 3, /* field[3] = for_all_tables */ + 1, /* field[1] = options */ + 0, /* field[0] = pubname */ + 2, /* field[2] = pubobjects */ }; -static const ProtobufCIntRange pg_query__close_portal_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__alter_publication_stmt__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__close_portal_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__alter_publication_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ClosePortalStmt", - "ClosePortalStmt", - "PgQuery__ClosePortalStmt", + "pg_query.AlterPublicationStmt", + "AlterPublicationStmt", + "PgQuery__AlterPublicationStmt", "pg_query", - sizeof(PgQuery__ClosePortalStmt), - 1, - pg_query__close_portal_stmt__field_descriptors, - pg_query__close_portal_stmt__field_indices_by_name, - 1, pg_query__close_portal_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__close_portal_stmt__init, + sizeof(PgQuery__AlterPublicationStmt), + 5, + pg_query__alter_publication_stmt__field_descriptors, + pg_query__alter_publication_stmt__field_indices_by_name, + 1, pg_query__alter_publication_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_publication_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__fetch_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__create_subscription_stmt__field_descriptors[4] = { { - "direction", + "subname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__FetchStmt, direction), - &pg_query__fetch_direction__descriptor, + offsetof(PgQuery__CreateSubscriptionStmt, subname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "how_many", + "conninfo", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__FetchStmt, how_many), - NULL, + offsetof(PgQuery__CreateSubscriptionStmt, conninfo), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "portalname", + "publication", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__FetchStmt, portalname), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateSubscriptionStmt, n_publication), + offsetof(PgQuery__CreateSubscriptionStmt, publication), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "ismove", + "options", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__FetchStmt, ismove), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__CreateSubscriptionStmt, n_options), + offsetof(PgQuery__CreateSubscriptionStmt, options), + &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__fetch_stmt__field_indices_by_name[] = { - 0, /* field[0] = direction */ - 1, /* field[1] = how_many */ - 3, /* field[3] = ismove */ - 2, /* field[2] = portalname */ +static const unsigned pg_query__create_subscription_stmt__field_indices_by_name[] = { + 1, /* field[1] = conninfo */ + 3, /* field[3] = options */ + 2, /* field[2] = publication */ + 0, /* field[0] = subname */ }; -static const ProtobufCIntRange pg_query__fetch_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__create_subscription_stmt__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__fetch_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__create_subscription_stmt__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FetchStmt", - "FetchStmt", - "PgQuery__FetchStmt", + "pg_query.CreateSubscriptionStmt", + "CreateSubscriptionStmt", + "PgQuery__CreateSubscriptionStmt", "pg_query", - sizeof(PgQuery__FetchStmt), + sizeof(PgQuery__CreateSubscriptionStmt), 4, - pg_query__fetch_stmt__field_descriptors, - pg_query__fetch_stmt__field_indices_by_name, - 1, pg_query__fetch_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__fetch_stmt__init, + pg_query__create_subscription_stmt__field_descriptors, + pg_query__create_subscription_stmt__field_indices_by_name, + 1, pg_query__create_subscription_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__create_subscription_stmt__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__index_stmt__field_descriptors[24] = +static const ProtobufCFieldDescriptor pg_query__alter_subscription_stmt__field_descriptors[5] = { { - "idxname", + "kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, idxname), + offsetof(PgQuery__AlterSubscriptionStmt, kind), + &pg_query__alter_subscription_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", + "subname", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__AlterSubscriptionStmt, subname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "access_method", + "conninfo", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, access_method), + offsetof(PgQuery__AlterSubscriptionStmt, conninfo), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_space", + "publication", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, table_space), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__AlterSubscriptionStmt, n_publication), + offsetof(PgQuery__AlterSubscriptionStmt, publication), + &pg_query__node__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "index_params", + "options", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexStmt, n_index_params), - offsetof(PgQuery__IndexStmt, index_params), + offsetof(PgQuery__AlterSubscriptionStmt, n_options), + offsetof(PgQuery__AlterSubscriptionStmt, options), &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__alter_subscription_stmt__field_indices_by_name[] = { + 2, /* field[2] = conninfo */ + 0, /* field[0] = kind */ + 4, /* field[4] = options */ + 3, /* field[3] = publication */ + 1, /* field[1] = subname */ +}; +static const ProtobufCIntRange pg_query__alter_subscription_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor pg_query__alter_subscription_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.AlterSubscriptionStmt", + "AlterSubscriptionStmt", + "PgQuery__AlterSubscriptionStmt", + "pg_query", + sizeof(PgQuery__AlterSubscriptionStmt), + 5, + pg_query__alter_subscription_stmt__field_descriptors, + pg_query__alter_subscription_stmt__field_indices_by_name, + 1, pg_query__alter_subscription_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__alter_subscription_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__drop_subscription_stmt__field_descriptors[3] = +{ { - "index_including_params", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexStmt, n_index_including_params), - offsetof(PgQuery__IndexStmt, index_including_params), - &pg_query__node__descriptor, + "subname", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__DropSubscriptionStmt, subname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexStmt, n_options), - offsetof(PgQuery__IndexStmt, options), - &pg_query__node__descriptor, + "missing_ok", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__DropSubscriptionStmt, missing_ok), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "behavior", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__DropSubscriptionStmt, behavior), + &pg_query__drop_behavior__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__drop_subscription_stmt__field_indices_by_name[] = { + 2, /* field[2] = behavior */ + 1, /* field[1] = missing_ok */ + 0, /* field[0] = subname */ +}; +static const ProtobufCIntRange pg_query__drop_subscription_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor pg_query__drop_subscription_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.DropSubscriptionStmt", + "DropSubscriptionStmt", + "PgQuery__DropSubscriptionStmt", + "pg_query", + sizeof(PgQuery__DropSubscriptionStmt), + 3, + pg_query__drop_subscription_stmt__field_descriptors, + pg_query__drop_subscription_stmt__field_indices_by_name, + 1, pg_query__drop_subscription_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__drop_subscription_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__scan_token__field_descriptors[4] = +{ { - "where_clause", - 8, + "start", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, where_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__ScanToken, start), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "exclude_op_names", - 9, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__IndexStmt, n_exclude_op_names), - offsetof(PgQuery__IndexStmt, exclude_op_names), - &pg_query__node__descriptor, + "end", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__ScanToken, end), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "idxcomment", - 10, + "token", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, idxcomment), + offsetof(PgQuery__ScanToken, token), + &pg_query__token__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "index_oid", - 11, + "keyword_kind", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, index_oid), - NULL, + offsetof(PgQuery__ScanToken, keyword_kind), + &pg_query__keyword_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__scan_token__field_indices_by_name[] = { + 1, /* field[1] = end */ + 3, /* field[3] = keyword_kind */ + 0, /* field[0] = start */ + 2, /* field[2] = token */ +}; +static const ProtobufCIntRange pg_query__scan_token__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 4, 2 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__scan_token__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.ScanToken", + "ScanToken", + "PgQuery__ScanToken", + "pg_query", + sizeof(PgQuery__ScanToken), + 4, + pg_query__scan_token__field_descriptors, + pg_query__scan_token__field_indices_by_name, + 2, pg_query__scan_token__number_ranges, + (ProtobufCMessageInit) pg_query__scan_token__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__summary_result__table__field_descriptors[4] = +{ { - "old_number", - 12, + "name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, old_number), - NULL, + offsetof(PgQuery__SummaryResult__Table, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "old_create_subid", - 13, + "schema_name", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, old_create_subid), - NULL, + offsetof(PgQuery__SummaryResult__Table, schema_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "old_first_relfilelocator_subid", - 14, + "table_name", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, old_first_relfilelocator_subid), - NULL, + offsetof(PgQuery__SummaryResult__Table, table_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "unique", - 15, + "context", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, unique), - NULL, + offsetof(PgQuery__SummaryResult__Table, context), + &pg_query__summary_result__context__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__summary_result__table__field_indices_by_name[] = { + 3, /* field[3] = context */ + 0, /* field[0] = name */ + 1, /* field[1] = schema_name */ + 2, /* field[2] = table_name */ +}; +static const ProtobufCIntRange pg_query__summary_result__table__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__summary_result__table__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SummaryResult.Table", + "Table", + "PgQuery__SummaryResult__Table", + "pg_query", + sizeof(PgQuery__SummaryResult__Table), + 4, + pg_query__summary_result__table__field_descriptors, + pg_query__summary_result__table__field_indices_by_name, + 1, pg_query__summary_result__table__number_ranges, + (ProtobufCMessageInit) pg_query__summary_result__table__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__summary_result__aliases_entry__field_descriptors[2] = +{ { - "nulls_not_distinct", - 16, + "key", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, nulls_not_distinct), - NULL, + offsetof(PgQuery__SummaryResult__AliasesEntry, key), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "primary", - 17, + "value", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, primary), - NULL, + offsetof(PgQuery__SummaryResult__AliasesEntry, value), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__summary_result__aliases_entry__field_indices_by_name[] = { + 0, /* field[0] = key */ + 1, /* field[1] = value */ +}; +static const ProtobufCIntRange pg_query__summary_result__aliases_entry__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__summary_result__aliases_entry__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SummaryResult.AliasesEntry", + "AliasesEntry", + "PgQuery__SummaryResult__AliasesEntry", + "pg_query", + sizeof(PgQuery__SummaryResult__AliasesEntry), + 2, + pg_query__summary_result__aliases_entry__field_descriptors, + pg_query__summary_result__aliases_entry__field_indices_by_name, + 1, pg_query__summary_result__aliases_entry__number_ranges, + (ProtobufCMessageInit) pg_query__summary_result__aliases_entry__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__summary_result__function__field_descriptors[4] = +{ { - "isconstraint", - 18, + "name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, isconstraint), - NULL, + offsetof(PgQuery__SummaryResult__Function, name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "deferrable", - 19, + "function_name", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, deferrable), - NULL, + offsetof(PgQuery__SummaryResult__Function, function_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "initdeferred", - 20, + "schema_name", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, initdeferred), - NULL, + offsetof(PgQuery__SummaryResult__Function, schema_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "transformed", - 21, + "context", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, transformed), - NULL, + offsetof(PgQuery__SummaryResult__Function, context), + &pg_query__summary_result__context__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__summary_result__function__field_indices_by_name[] = { + 3, /* field[3] = context */ + 1, /* field[1] = function_name */ + 0, /* field[0] = name */ + 2, /* field[2] = schema_name */ +}; +static const ProtobufCIntRange pg_query__summary_result__function__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor pg_query__summary_result__function__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.SummaryResult.Function", + "Function", + "PgQuery__SummaryResult__Function", + "pg_query", + sizeof(PgQuery__SummaryResult__Function), + 4, + pg_query__summary_result__function__field_descriptors, + pg_query__summary_result__function__field_indices_by_name, + 1, pg_query__summary_result__function__number_ranges, + (ProtobufCMessageInit) pg_query__summary_result__function__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__summary_result__filter_column__field_descriptors[3] = +{ { - "concurrent", - 22, + "schema_name", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, concurrent), - NULL, + offsetof(PgQuery__SummaryResult__FilterColumn, schema_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", - 23, + "table_name", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, if_not_exists), - NULL, + offsetof(PgQuery__SummaryResult__FilterColumn, table_name), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "reset_default_tblspc", - 24, + "column", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__IndexStmt, reset_default_tblspc), - NULL, + offsetof(PgQuery__SummaryResult__FilterColumn, column), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__index_stmt__field_indices_by_name[] = { - 2, /* field[2] = access_method */ - 21, /* field[21] = concurrent */ - 18, /* field[18] = deferrable */ - 8, /* field[8] = exclude_op_names */ - 9, /* field[9] = idxcomment */ - 0, /* field[0] = idxname */ - 22, /* field[22] = if_not_exists */ - 5, /* field[5] = index_including_params */ - 10, /* field[10] = index_oid */ - 4, /* field[4] = index_params */ - 19, /* field[19] = initdeferred */ - 17, /* field[17] = isconstraint */ - 15, /* field[15] = nulls_not_distinct */ - 12, /* field[12] = old_create_subid */ - 13, /* field[13] = old_first_relfilelocator_subid */ - 11, /* field[11] = old_number */ - 6, /* field[6] = options */ - 16, /* field[16] = primary */ - 1, /* field[1] = relation */ - 23, /* field[23] = reset_default_tblspc */ - 3, /* field[3] = table_space */ - 20, /* field[20] = transformed */ - 14, /* field[14] = unique */ - 7, /* field[7] = where_clause */ +static const unsigned pg_query__summary_result__filter_column__field_indices_by_name[] = { + 2, /* field[2] = column */ + 0, /* field[0] = schema_name */ + 1, /* field[1] = table_name */ }; -static const ProtobufCIntRange pg_query__index_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__summary_result__filter_column__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 24 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__index_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__summary_result__filter_column__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.IndexStmt", - "IndexStmt", - "PgQuery__IndexStmt", + "pg_query.SummaryResult.FilterColumn", + "FilterColumn", + "PgQuery__SummaryResult__FilterColumn", "pg_query", - sizeof(PgQuery__IndexStmt), - 24, - pg_query__index_stmt__field_descriptors, - pg_query__index_stmt__field_indices_by_name, - 1, pg_query__index_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__index_stmt__init, + sizeof(PgQuery__SummaryResult__FilterColumn), + 3, + pg_query__summary_result__filter_column__field_descriptors, + pg_query__summary_result__filter_column__field_indices_by_name, + 1, pg_query__summary_result__filter_column__number_ranges, + (ProtobufCMessageInit) pg_query__summary_result__filter_column__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_stats_stmt__field_descriptors[7] = +static const ProtobufCEnumValue pg_query__summary_result__context__enum_values_by_number[5] = +{ + { "None", "PG_QUERY__SUMMARY_RESULT__CONTEXT__None", 0 }, + { "Select", "PG_QUERY__SUMMARY_RESULT__CONTEXT__Select", 1 }, + { "DML", "PG_QUERY__SUMMARY_RESULT__CONTEXT__DML", 2 }, + { "DDL", "PG_QUERY__SUMMARY_RESULT__CONTEXT__DDL", 3 }, + { "Call", "PG_QUERY__SUMMARY_RESULT__CONTEXT__Call", 4 }, +}; +static const ProtobufCIntRange pg_query__summary_result__context__value_ranges[] = { +{0, 0},{0, 5} +}; +static const ProtobufCEnumValueIndex pg_query__summary_result__context__enum_values_by_name[5] = +{ + { "Call", 4 }, + { "DDL", 3 }, + { "DML", 2 }, + { "None", 0 }, + { "Select", 1 }, +}; +const ProtobufCEnumDescriptor pg_query__summary_result__context__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.SummaryResult.Context", + "Context", + "PgQuery__SummaryResult__Context", + "pg_query", + 5, + pg_query__summary_result__context__enum_values_by_number, + 5, + pg_query__summary_result__context__enum_values_by_name, + 1, + pg_query__summary_result__context__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCFieldDescriptor pg_query__summary_result__field_descriptors[7] = { { - "defnames", + "tables", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStatsStmt, n_defnames), - offsetof(PgQuery__CreateStatsStmt, defnames), - &pg_query__node__descriptor, + offsetof(PgQuery__SummaryResult, n_tables), + offsetof(PgQuery__SummaryResult, tables), + &pg_query__summary_result__table__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stat_types", + "aliases", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStatsStmt, n_stat_types), - offsetof(PgQuery__CreateStatsStmt, stat_types), - &pg_query__node__descriptor, + offsetof(PgQuery__SummaryResult, n_aliases), + offsetof(PgQuery__SummaryResult, aliases), + &pg_query__summary_result__aliases_entry__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "exprs", + "cte_names", 3, PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStatsStmt, n_exprs), - offsetof(PgQuery__CreateStatsStmt, exprs), - &pg_query__node__descriptor, + PROTOBUF_C_TYPE_STRING, + offsetof(PgQuery__SummaryResult, n_cte_names), + offsetof(PgQuery__SummaryResult, cte_names), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relations", + "functions", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateStatsStmt, n_relations), - offsetof(PgQuery__CreateStatsStmt, relations), - &pg_query__node__descriptor, + offsetof(PgQuery__SummaryResult, n_functions), + offsetof(PgQuery__SummaryResult, functions), + &pg_query__summary_result__function__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "stxcomment", + "filter_columns", 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStatsStmt, stxcomment), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__SummaryResult, n_filter_columns), + offsetof(PgQuery__SummaryResult, filter_columns), + &pg_query__summary_result__filter_column__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "transformed", + "statement_types", 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStatsStmt, transformed), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_STRING, + offsetof(PgQuery__SummaryResult, n_statement_types), + offsetof(PgQuery__SummaryResult, statement_types), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", + "truncated_query", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateStatsStmt, if_not_exists), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__create_stats_stmt__field_indices_by_name[] = { - 0, /* field[0] = defnames */ - 2, /* field[2] = exprs */ - 6, /* field[6] = if_not_exists */ - 3, /* field[3] = relations */ - 1, /* field[1] = stat_types */ - 4, /* field[4] = stxcomment */ - 5, /* field[5] = transformed */ -}; -static const ProtobufCIntRange pg_query__create_stats_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor pg_query__create_stats_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateStatsStmt", - "CreateStatsStmt", - "PgQuery__CreateStatsStmt", - "pg_query", - sizeof(PgQuery__CreateStatsStmt), - 7, - pg_query__create_stats_stmt__field_descriptors, - pg_query__create_stats_stmt__field_indices_by_name, - 1, pg_query__create_stats_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_stats_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__stats_elem__field_descriptors[2] = -{ - { - "name", - 1, - PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__StatsElem, name), + offsetof(PgQuery__SummaryResult, truncated_query), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "expr", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__StatsElem, expr), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, }; -static const unsigned pg_query__stats_elem__field_indices_by_name[] = { - 1, /* field[1] = expr */ - 0, /* field[0] = name */ +static const unsigned pg_query__summary_result__field_indices_by_name[] = { + 1, /* field[1] = aliases */ + 2, /* field[2] = cte_names */ + 4, /* field[4] = filter_columns */ + 3, /* field[3] = functions */ + 5, /* field[5] = statement_types */ + 0, /* field[0] = tables */ + 6, /* field[6] = truncated_query */ }; -static const ProtobufCIntRange pg_query__stats_elem__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__summary_result__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__stats_elem__descriptor = +const ProtobufCMessageDescriptor pg_query__summary_result__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.StatsElem", - "StatsElem", - "PgQuery__StatsElem", + "pg_query.SummaryResult", + "SummaryResult", + "PgQuery__SummaryResult", "pg_query", - sizeof(PgQuery__StatsElem), - 2, - pg_query__stats_elem__field_descriptors, - pg_query__stats_elem__field_indices_by_name, - 1, pg_query__stats_elem__number_ranges, - (ProtobufCMessageInit) pg_query__stats_elem__init, + sizeof(PgQuery__SummaryResult), + 7, + pg_query__summary_result__field_descriptors, + pg_query__summary_result__field_indices_by_name, + 1, pg_query__summary_result__number_ranges, + (ProtobufCMessageInit) pg_query__summary_result__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_stats_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sqlparse_result__field_descriptors[2] = { { - "defnames", + "version", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterStatsStmt, n_defnames), - offsetof(PgQuery__AlterStatsStmt, defnames), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "stxstattarget", - 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterStatsStmt, stxstattarget), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLParseResult, version), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterStatsStmt, missing_ok), - NULL, + "plpgsql_funcs", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLParseResult, n_plpgsql_funcs), + offsetof(PgQuery__PLpgSQLParseResult, plpgsql_funcs), + &pg_query__plpg_sql_function__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_stats_stmt__field_indices_by_name[] = { - 0, /* field[0] = defnames */ - 2, /* field[2] = missing_ok */ - 1, /* field[1] = stxstattarget */ +static const unsigned pg_query__plpg_sqlparse_result__field_indices_by_name[] = { + 1, /* field[1] = plpgsql_funcs */ + 0, /* field[0] = version */ }; -static const ProtobufCIntRange pg_query__alter_stats_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sqlparse_result__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_stats_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sqlparse_result__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterStatsStmt", - "AlterStatsStmt", - "PgQuery__AlterStatsStmt", + "pg_query.PLpgSQLParseResult", + "PLpgSQLParseResult", + "PgQuery__PLpgSQLParseResult", "pg_query", - sizeof(PgQuery__AlterStatsStmt), - 3, - pg_query__alter_stats_stmt__field_descriptors, - pg_query__alter_stats_stmt__field_indices_by_name, - 1, pg_query__alter_stats_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_stats_stmt__init, + sizeof(PgQuery__PLpgSQLParseResult), + 2, + pg_query__plpg_sqlparse_result__field_descriptors, + pg_query__plpg_sqlparse_result__field_indices_by_name, + 1, pg_query__plpg_sqlparse_result__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sqlparse_result__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_function_stmt__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt__field_descriptors[27] = { { - "is_procedure", + "stmt_block", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateFunctionStmt, is_procedure), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_block), + &pg_query__plpg_sql_stmt_block__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "replace", + "stmt_assign", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateFunctionStmt, replace), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_assign), + &pg_query__plpg_sql_stmt_assign__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcname", + "stmt_if", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateFunctionStmt, n_funcname), - offsetof(PgQuery__CreateFunctionStmt, funcname), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_if), + &pg_query__plpg_sql_stmt_if__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "parameters", + "stmt_case_", 4, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateFunctionStmt, n_parameters), - offsetof(PgQuery__CreateFunctionStmt, parameters), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_case_), + &pg_query__plpg_sql_stmt_case__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "return_type", + "stmt_loop", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateFunctionStmt, return_type), - &pg_query__type_name__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_loop), + &pg_query__plpg_sql_stmt_loop__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "stmt_while", 6, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateFunctionStmt, n_options), - offsetof(PgQuery__CreateFunctionStmt, options), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_while), + &pg_query__plpg_sql_stmt_while__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "sql_body", + "stmt_fori", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CreateFunctionStmt, sql_body), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_fori), + &pg_query__plpg_sql_stmt_fori__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__create_function_stmt__field_indices_by_name[] = { - 2, /* field[2] = funcname */ - 0, /* field[0] = is_procedure */ - 5, /* field[5] = options */ - 3, /* field[3] = parameters */ - 1, /* field[1] = replace */ - 4, /* field[4] = return_type */ - 6, /* field[6] = sql_body */ -}; -static const ProtobufCIntRange pg_query__create_function_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor pg_query__create_function_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateFunctionStmt", - "CreateFunctionStmt", - "PgQuery__CreateFunctionStmt", - "pg_query", - sizeof(PgQuery__CreateFunctionStmt), - 7, - pg_query__create_function_stmt__field_descriptors, - pg_query__create_function_stmt__field_indices_by_name, - 1, pg_query__create_function_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_function_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__function_parameter__field_descriptors[4] = -{ { - "name", - 1, + "stmt_fors", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__FunctionParameter, name), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_fors), + &pg_query__plpg_sql_stmt_fors__descriptor, NULL, - &protobuf_c_empty_string, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "arg_type", - 2, + "stmt_forc", + 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__FunctionParameter, arg_type), - &pg_query__type_name__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_forc), + &pg_query__plpg_sql_stmt_forc__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "mode", - 3, + "stmt_foreach_a", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__FunctionParameter, mode), - &pg_query__function_parameter_mode__descriptor, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_foreach_a), + &pg_query__plpg_sql_stmt_foreach_a__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "defexpr", - 4, + "stmt_exit", + 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__FunctionParameter, defexpr), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_exit), + &pg_query__plpg_sql_stmt_exit__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__function_parameter__field_indices_by_name[] = { - 1, /* field[1] = arg_type */ - 3, /* field[3] = defexpr */ - 2, /* field[2] = mode */ - 0, /* field[0] = name */ -}; -static const ProtobufCIntRange pg_query__function_parameter__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__function_parameter__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.FunctionParameter", - "FunctionParameter", - "PgQuery__FunctionParameter", - "pg_query", - sizeof(PgQuery__FunctionParameter), - 4, - pg_query__function_parameter__field_descriptors, - pg_query__function_parameter__field_indices_by_name, - 1, pg_query__function_parameter__number_ranges, - (ProtobufCMessageInit) pg_query__function_parameter__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_function_stmt__field_descriptors[3] = -{ { - "objtype", - 1, + "stmt_return", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterFunctionStmt, objtype), - &pg_query__object_type__descriptor, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_return), + &pg_query__plpg_sql_stmt_return__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func", - 2, + "stmt_return_next", + 13, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterFunctionStmt, func), - &pg_query__object_with_args__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_return_next), + &pg_query__plpg_sql_stmt_return_next__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "actions", - 3, - PROTOBUF_C_LABEL_REPEATED, + "stmt_return_query", + 14, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterFunctionStmt, n_actions), - offsetof(PgQuery__AlterFunctionStmt, actions), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_return_query), + &pg_query__plpg_sql_stmt_return_query__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_function_stmt__field_indices_by_name[] = { - 2, /* field[2] = actions */ - 1, /* field[1] = func */ - 0, /* field[0] = objtype */ -}; -static const ProtobufCIntRange pg_query__alter_function_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__alter_function_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterFunctionStmt", - "AlterFunctionStmt", - "PgQuery__AlterFunctionStmt", - "pg_query", - sizeof(PgQuery__AlterFunctionStmt), - 3, - pg_query__alter_function_stmt__field_descriptors, - pg_query__alter_function_stmt__field_indices_by_name, - 1, pg_query__alter_function_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_function_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__do_stmt__field_descriptors[1] = -{ { - "args", - 1, - PROTOBUF_C_LABEL_REPEATED, + "stmt_raise", + 15, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DoStmt, n_args), - offsetof(PgQuery__DoStmt, args), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_raise), + &pg_query__plpg_sql_stmt_raise__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__do_stmt__field_indices_by_name[] = { - 0, /* field[0] = args */ -}; -static const ProtobufCIntRange pg_query__do_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__do_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DoStmt", - "DoStmt", - "PgQuery__DoStmt", - "pg_query", - sizeof(PgQuery__DoStmt), - 1, - pg_query__do_stmt__field_descriptors, - pg_query__do_stmt__field_indices_by_name, - 1, pg_query__do_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__do_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__inline_code_block__field_descriptors[4] = -{ { - "source_text", - 1, + "stmt_assert", + 16, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__InlineCodeBlock, source_text), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_assert), + &pg_query__plpg_sql_stmt_assert__descriptor, NULL, - &protobuf_c_empty_string, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lang_oid", - 2, + "stmt_execsql", + 17, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(PgQuery__InlineCodeBlock, lang_oid), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_execsql), + &pg_query__plpg_sql_stmt_execsql__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lang_is_trusted", - 3, + "stmt_dynexecute", + 18, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__InlineCodeBlock, lang_is_trusted), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_dynexecute), + &pg_query__plpg_sql_stmt_dynexecute__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "atomic", - 4, + "stmt_dynfors", + 19, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__InlineCodeBlock, atomic), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_dynfors), + &pg_query__plpg_sql_stmt_dynfors__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__inline_code_block__field_indices_by_name[] = { - 3, /* field[3] = atomic */ - 2, /* field[2] = lang_is_trusted */ - 1, /* field[1] = lang_oid */ - 0, /* field[0] = source_text */ -}; -static const ProtobufCIntRange pg_query__inline_code_block__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__inline_code_block__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.InlineCodeBlock", - "InlineCodeBlock", - "PgQuery__InlineCodeBlock", - "pg_query", - sizeof(PgQuery__InlineCodeBlock), - 4, - pg_query__inline_code_block__field_descriptors, - pg_query__inline_code_block__field_indices_by_name, - 1, pg_query__inline_code_block__number_ranges, - (ProtobufCMessageInit) pg_query__inline_code_block__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__call_stmt__field_descriptors[3] = -{ { - "funccall", - 1, + "stmt_getdiag", + 20, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CallStmt, funccall), - &pg_query__func_call__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_getdiag), + &pg_query__plpg_sql_stmt_getdiag__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "funcexpr", - 2, + "stmt_open", + 21, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__CallStmt, funcexpr), - &pg_query__func_expr__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_open), + &pg_query__plpg_sql_stmt_open__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "outargs", - 3, - PROTOBUF_C_LABEL_REPEATED, + "stmt_fetch", + 22, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CallStmt, n_outargs), - offsetof(PgQuery__CallStmt, outargs), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_fetch), + &pg_query__plpg_sql_stmt_fetch__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__call_stmt__field_indices_by_name[] = { - 0, /* field[0] = funccall */ - 1, /* field[1] = funcexpr */ - 2, /* field[2] = outargs */ -}; -static const ProtobufCIntRange pg_query__call_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__call_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CallStmt", - "CallStmt", - "PgQuery__CallStmt", - "pg_query", - sizeof(PgQuery__CallStmt), - 3, - pg_query__call_stmt__field_descriptors, - pg_query__call_stmt__field_indices_by_name, - 1, pg_query__call_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__call_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__call_context__field_descriptors[1] = -{ { - "atomic", - 1, + "stmt_close", + 23, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__CallContext, atomic), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_close), + &pg_query__plpg_sql_stmt_close__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__call_context__field_indices_by_name[] = { - 0, /* field[0] = atomic */ -}; -static const ProtobufCIntRange pg_query__call_context__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__call_context__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CallContext", - "CallContext", - "PgQuery__CallContext", - "pg_query", - sizeof(PgQuery__CallContext), - 1, - pg_query__call_context__field_descriptors, - pg_query__call_context__field_indices_by_name, - 1, pg_query__call_context__number_ranges, - (ProtobufCMessageInit) pg_query__call_context__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__rename_stmt__field_descriptors[8] = -{ { - "rename_type", - 1, + "stmt_perform", + 24, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, rename_type), - &pg_query__object_type__descriptor, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_perform), + &pg_query__plpg_sql_stmt_perform__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation_type", - 2, + "stmt_call", + 25, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, relation_type), - &pg_query__object_type__descriptor, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_call), + &pg_query__plpg_sql_stmt_call__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", - 3, + "stmt_commit", + 26, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_commit), + &pg_query__plpg_sql_stmt_commit__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object", - 4, + "stmt_rollback", + 27, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, object), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmt, stmt_case), + offsetof(PgQuery__PLpgSQLStmt, stmt_rollback), + &pg_query__plpg_sql_stmt_rollback__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__plpg_sql_stmt__field_indices_by_name[] = { + 15, /* field[15] = stmt_assert */ + 1, /* field[1] = stmt_assign */ + 0, /* field[0] = stmt_block */ + 24, /* field[24] = stmt_call */ + 3, /* field[3] = stmt_case_ */ + 22, /* field[22] = stmt_close */ + 25, /* field[25] = stmt_commit */ + 17, /* field[17] = stmt_dynexecute */ + 18, /* field[18] = stmt_dynfors */ + 16, /* field[16] = stmt_execsql */ + 10, /* field[10] = stmt_exit */ + 21, /* field[21] = stmt_fetch */ + 8, /* field[8] = stmt_forc */ + 9, /* field[9] = stmt_foreach_a */ + 6, /* field[6] = stmt_fori */ + 7, /* field[7] = stmt_fors */ + 19, /* field[19] = stmt_getdiag */ + 2, /* field[2] = stmt_if */ + 4, /* field[4] = stmt_loop */ + 20, /* field[20] = stmt_open */ + 23, /* field[23] = stmt_perform */ + 14, /* field[14] = stmt_raise */ + 11, /* field[11] = stmt_return */ + 12, /* field[12] = stmt_return_next */ + 13, /* field[13] = stmt_return_query */ + 26, /* field[26] = stmt_rollback */ + 5, /* field[5] = stmt_while */ +}; +static const ProtobufCIntRange pg_query__plpg_sql_stmt__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 27 } +}; +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_stmt", + "PLpgSQLStmt", + "PgQuery__PLpgSQLStmt", + "pg_query", + sizeof(PgQuery__PLpgSQLStmt), + 27, + pg_query__plpg_sql_stmt__field_descriptors, + pg_query__plpg_sql_stmt__field_indices_by_name, + 1, pg_query__plpg_sql_stmt__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__plpg_sql_datum__field_descriptors[4] = +{ { - "subname", - 5, + "var", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, subname), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLDatum, datum_case), + offsetof(PgQuery__PLpgSQLDatum, var), + &pg_query__plpg_sql_var__descriptor, NULL, - &protobuf_c_empty_string, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "newname", - 6, + "row", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, newname), + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLDatum, datum_case), + offsetof(PgQuery__PLpgSQLDatum, row), + &pg_query__plpg_sql_row__descriptor, NULL, - &protobuf_c_empty_string, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "behavior", - 7, + "rec", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, behavior), - &pg_query__drop_behavior__descriptor, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLDatum, datum_case), + offsetof(PgQuery__PLpgSQLDatum, rec), + &pg_query__plpg_sql_rec__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", - 8, + "recfield", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(PgQuery__RenameStmt, missing_ok), - NULL, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLDatum, datum_case), + offsetof(PgQuery__PLpgSQLDatum, recfield), + &pg_query__plpg_sql_recfield__descriptor, NULL, - 0, /* flags */ + PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__rename_stmt__field_indices_by_name[] = { - 6, /* field[6] = behavior */ - 7, /* field[7] = missing_ok */ - 5, /* field[5] = newname */ - 3, /* field[3] = object */ - 2, /* field[2] = relation */ - 1, /* field[1] = relation_type */ - 0, /* field[0] = rename_type */ - 4, /* field[4] = subname */ +static const unsigned pg_query__plpg_sql_datum__field_indices_by_name[] = { + 2, /* field[2] = rec */ + 3, /* field[3] = recfield */ + 1, /* field[1] = row */ + 0, /* field[0] = var */ }; -static const ProtobufCIntRange pg_query__rename_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_datum__number_ranges[2 + 1] = { { 1, 0 }, - { 0, 8 } + { 3, 1 }, + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__rename_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_datum__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RenameStmt", - "RenameStmt", - "PgQuery__RenameStmt", + "pg_query.PLpgSQL_datum", + "PLpgSQLDatum", + "PgQuery__PLpgSQLDatum", "pg_query", - sizeof(PgQuery__RenameStmt), - 8, - pg_query__rename_stmt__field_descriptors, - pg_query__rename_stmt__field_indices_by_name, - 1, pg_query__rename_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__rename_stmt__init, + sizeof(PgQuery__PLpgSQLDatum), + 4, + pg_query__plpg_sql_datum__field_descriptors, + pg_query__plpg_sql_datum__field_indices_by_name, + 2, pg_query__plpg_sql_datum__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_datum__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_object_depends_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_type__field_descriptors[2] = { { - "object_type", + "typname", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectDependsStmt, object_type), - &pg_query__object_type__descriptor, + offsetof(PgQuery__PLpgSQLType, typname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", + "ttype", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectDependsStmt, relation), - &pg_query__range_var__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "object", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectDependsStmt, object), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLType, ttype), + &pg_query__plpg_sql_type_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned pg_query__plpg_sql_type__field_indices_by_name[] = { + 1, /* field[1] = ttype */ + 0, /* field[0] = typname */ +}; +static const ProtobufCIntRange pg_query__plpg_sql_type__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__plpg_sql_type__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_type", + "PLpgSQLType", + "PgQuery__PLpgSQLType", + "pg_query", + sizeof(PgQuery__PLpgSQLType), + 2, + pg_query__plpg_sql_type__field_descriptors, + pg_query__plpg_sql_type__field_indices_by_name, + 1, pg_query__plpg_sql_type__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_type__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__plpg_sql_expr__field_descriptors[2] = +{ { - "extname", - 4, + "query", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectDependsStmt, extname), - &pg_query__string__descriptor, + offsetof(PgQuery__PLpgSQLExpr, query), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "remove", - 5, + "parse_mode", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectDependsStmt, remove), + offsetof(PgQuery__PLpgSQLExpr, parse_mode), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_object_depends_stmt__field_indices_by_name[] = { - 3, /* field[3] = extname */ - 2, /* field[2] = object */ - 0, /* field[0] = object_type */ - 1, /* field[1] = relation */ - 4, /* field[4] = remove */ +static const unsigned pg_query__plpg_sql_expr__field_indices_by_name[] = { + 1, /* field[1] = parse_mode */ + 0, /* field[0] = query */ }; -static const ProtobufCIntRange pg_query__alter_object_depends_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_expr__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__alter_object_depends_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_expr__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterObjectDependsStmt", - "AlterObjectDependsStmt", - "PgQuery__AlterObjectDependsStmt", + "pg_query.PLpgSQL_expr", + "PLpgSQLExpr", + "PgQuery__PLpgSQLExpr", "pg_query", - sizeof(PgQuery__AlterObjectDependsStmt), - 5, - pg_query__alter_object_depends_stmt__field_descriptors, - pg_query__alter_object_depends_stmt__field_indices_by_name, - 1, pg_query__alter_object_depends_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_object_depends_stmt__init, + sizeof(PgQuery__PLpgSQLExpr), + 2, + pg_query__plpg_sql_expr__field_descriptors, + pg_query__plpg_sql_expr__field_indices_by_name, + 1, pg_query__plpg_sql_expr__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_expr__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_object_schema_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_var__field_descriptors[12] = { { - "object_type", + "dtype", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectSchemaStmt, object_type), - &pg_query__object_type__descriptor, + offsetof(PgQuery__PLpgSQLVar, dtype), + &pg_query__plpg_sql_datum_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", + "dno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectSchemaStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLVar, dno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object", + "refname", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectSchemaStmt, object), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLVar, refname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "newschema", + "lineno", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectSchemaStmt, newschema), + offsetof(PgQuery__PLpgSQLVar, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "isconst", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterObjectSchemaStmt, missing_ok), + offsetof(PgQuery__PLpgSQLVar, isconst), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_object_schema_stmt__field_indices_by_name[] = { - 4, /* field[4] = missing_ok */ - 3, /* field[3] = newschema */ - 2, /* field[2] = object */ - 0, /* field[0] = object_type */ - 1, /* field[1] = relation */ -}; -static const ProtobufCIntRange pg_query__alter_object_schema_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor pg_query__alter_object_schema_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterObjectSchemaStmt", - "AlterObjectSchemaStmt", - "PgQuery__AlterObjectSchemaStmt", - "pg_query", - sizeof(PgQuery__AlterObjectSchemaStmt), - 5, - pg_query__alter_object_schema_stmt__field_descriptors, - pg_query__alter_object_schema_stmt__field_indices_by_name, - 1, pg_query__alter_object_schema_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_object_schema_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_owner_stmt__field_descriptors[4] = -{ { - "object_type", - 1, + "notnull", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOwnerStmt, object_type), - &pg_query__object_type__descriptor, + offsetof(PgQuery__PLpgSQLVar, notnull), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", - 2, + "default_val", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOwnerStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLVar, default_val), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "object", - 3, + "datatype", + 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOwnerStmt, object), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLVar, datatype), + &pg_query__plpg_sql_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "newowner", - 4, + "cursor_explicit_expr", + 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOwnerStmt, newowner), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__PLpgSQLVar, cursor_explicit_expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_owner_stmt__field_indices_by_name[] = { - 3, /* field[3] = newowner */ - 2, /* field[2] = object */ - 0, /* field[0] = object_type */ - 1, /* field[1] = relation */ -}; -static const ProtobufCIntRange pg_query__alter_owner_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__alter_owner_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterOwnerStmt", - "AlterOwnerStmt", - "PgQuery__AlterOwnerStmt", - "pg_query", - sizeof(PgQuery__AlterOwnerStmt), - 4, - pg_query__alter_owner_stmt__field_descriptors, - pg_query__alter_owner_stmt__field_indices_by_name, - 1, pg_query__alter_owner_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_owner_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_operator_stmt__field_descriptors[2] = -{ { - "opername", - 1, + "cursor_explicit_argrow", + 10, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterOperatorStmt, opername), - &pg_query__object_with_args__descriptor, + offsetof(PgQuery__PLpgSQLVar, cursor_explicit_argrow), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "options", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterOperatorStmt, n_options), - offsetof(PgQuery__AlterOperatorStmt, options), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_operator_stmt__field_indices_by_name[] = { - 0, /* field[0] = opername */ - 1, /* field[1] = options */ -}; -static const ProtobufCIntRange pg_query__alter_operator_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__alter_operator_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterOperatorStmt", - "AlterOperatorStmt", - "PgQuery__AlterOperatorStmt", - "pg_query", - sizeof(PgQuery__AlterOperatorStmt), - 2, - pg_query__alter_operator_stmt__field_descriptors, - pg_query__alter_operator_stmt__field_indices_by_name, - 1, pg_query__alter_operator_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_operator_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_type_stmt__field_descriptors[2] = -{ { - "type_name", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTypeStmt, n_type_name), - offsetof(PgQuery__AlterTypeStmt, type_name), - &pg_query__node__descriptor, + "cursor_options", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLVar, cursor_options), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTypeStmt, n_options), - offsetof(PgQuery__AlterTypeStmt, options), - &pg_query__node__descriptor, + "promise", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLVar, promise), + &pg_query__plpg_sql_promise_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_type_stmt__field_indices_by_name[] = { - 1, /* field[1] = options */ - 0, /* field[0] = type_name */ +static const unsigned pg_query__plpg_sql_var__field_indices_by_name[] = { + 9, /* field[9] = cursor_explicit_argrow */ + 8, /* field[8] = cursor_explicit_expr */ + 10, /* field[10] = cursor_options */ + 7, /* field[7] = datatype */ + 6, /* field[6] = default_val */ + 1, /* field[1] = dno */ + 0, /* field[0] = dtype */ + 4, /* field[4] = isconst */ + 3, /* field[3] = lineno */ + 5, /* field[5] = notnull */ + 11, /* field[11] = promise */ + 2, /* field[2] = refname */ }; -static const ProtobufCIntRange pg_query__alter_type_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_var__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 12 } }; -const ProtobufCMessageDescriptor pg_query__alter_type_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_var__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTypeStmt", - "AlterTypeStmt", - "PgQuery__AlterTypeStmt", + "pg_query.PLpgSQL_var", + "PLpgSQLVar", + "PgQuery__PLpgSQLVar", "pg_query", - sizeof(PgQuery__AlterTypeStmt), - 2, - pg_query__alter_type_stmt__field_descriptors, - pg_query__alter_type_stmt__field_indices_by_name, - 1, pg_query__alter_type_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_type_stmt__init, + sizeof(PgQuery__PLpgSQLVar), + 12, + pg_query__plpg_sql_var__field_descriptors, + pg_query__plpg_sql_var__field_indices_by_name, + 1, pg_query__plpg_sql_var__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_var__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__rule_stmt__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_row__field_descriptors[8] = { { - "relation", + "dtype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__RuleStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLRow, dtype), + &pg_query__plpg_sql_datum_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rulename", + "dno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RuleStmt, rulename), + offsetof(PgQuery__PLpgSQLRow, dno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", + "refname", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__RuleStmt, where_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLRow, refname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "event", + "lineno", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RuleStmt, event), - &pg_query__cmd_type__descriptor, + offsetof(PgQuery__PLpgSQLRow, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "instead", + "isconst", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__RuleStmt, instead), + offsetof(PgQuery__PLpgSQLRow, isconst), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "actions", + "notnull", 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__RuleStmt, n_actions), - offsetof(PgQuery__RuleStmt, actions), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRow, notnull), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "replace", + "default_val", 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RuleStmt, replace), + offsetof(PgQuery__PLpgSQLRow, default_val), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "nfields", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRow, nfields), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__rule_stmt__field_indices_by_name[] = { - 5, /* field[5] = actions */ - 3, /* field[3] = event */ - 4, /* field[4] = instead */ - 0, /* field[0] = relation */ - 6, /* field[6] = replace */ - 1, /* field[1] = rulename */ - 2, /* field[2] = where_clause */ +static const unsigned pg_query__plpg_sql_row__field_indices_by_name[] = { + 6, /* field[6] = default_val */ + 1, /* field[1] = dno */ + 0, /* field[0] = dtype */ + 4, /* field[4] = isconst */ + 3, /* field[3] = lineno */ + 7, /* field[7] = nfields */ + 5, /* field[5] = notnull */ + 2, /* field[2] = refname */ }; -static const ProtobufCIntRange pg_query__rule_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_row__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__rule_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_row__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RuleStmt", - "RuleStmt", - "PgQuery__RuleStmt", + "pg_query.PLpgSQL_row", + "PLpgSQLRow", + "PgQuery__PLpgSQLRow", "pg_query", - sizeof(PgQuery__RuleStmt), - 7, - pg_query__rule_stmt__field_descriptors, - pg_query__rule_stmt__field_indices_by_name, - 1, pg_query__rule_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__rule_stmt__init, + sizeof(PgQuery__PLpgSQLRow), + 8, + pg_query__plpg_sql_row__field_descriptors, + pg_query__plpg_sql_row__field_indices_by_name, + 1, pg_query__plpg_sql_row__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_row__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__notify_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_rec__field_descriptors[9] = { { - "conditionname", + "dtype", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__NotifyStmt, conditionname), + offsetof(PgQuery__PLpgSQLRec, dtype), + &pg_query__plpg_sql_datum_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "payload", + "dno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__NotifyStmt, payload), + offsetof(PgQuery__PLpgSQLRec, dno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__notify_stmt__field_indices_by_name[] = { - 0, /* field[0] = conditionname */ - 1, /* field[1] = payload */ -}; -static const ProtobufCIntRange pg_query__notify_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__notify_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.NotifyStmt", - "NotifyStmt", - "PgQuery__NotifyStmt", - "pg_query", - sizeof(PgQuery__NotifyStmt), - 2, - pg_query__notify_stmt__field_descriptors, - pg_query__notify_stmt__field_indices_by_name, - 1, pg_query__notify_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__notify_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__listen_stmt__field_descriptors[1] = -{ { - "conditionname", - 1, + "refname", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__ListenStmt, conditionname), + offsetof(PgQuery__PLpgSQLRec, refname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__listen_stmt__field_indices_by_name[] = { - 0, /* field[0] = conditionname */ -}; -static const ProtobufCIntRange pg_query__listen_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__listen_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ListenStmt", - "ListenStmt", - "PgQuery__ListenStmt", - "pg_query", - sizeof(PgQuery__ListenStmt), - 1, - pg_query__listen_stmt__field_descriptors, - pg_query__listen_stmt__field_indices_by_name, - 1, pg_query__listen_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__listen_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__unlisten_stmt__field_descriptors[1] = -{ { - "conditionname", - 1, + "lineno", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRec, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "isconst", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRec, isconst), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "notnull", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRec, notnull), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "default_val", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRec, default_val), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "datatype", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__UnlistenStmt, conditionname), + offsetof(PgQuery__PLpgSQLRec, datatype), + &pg_query__plpg_sql_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "firstfield", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLRec, firstfield), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__unlisten_stmt__field_indices_by_name[] = { - 0, /* field[0] = conditionname */ +static const unsigned pg_query__plpg_sql_rec__field_indices_by_name[] = { + 7, /* field[7] = datatype */ + 6, /* field[6] = default_val */ + 1, /* field[1] = dno */ + 0, /* field[0] = dtype */ + 8, /* field[8] = firstfield */ + 4, /* field[4] = isconst */ + 3, /* field[3] = lineno */ + 5, /* field[5] = notnull */ + 2, /* field[2] = refname */ }; -static const ProtobufCIntRange pg_query__unlisten_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_rec__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 9 } }; -const ProtobufCMessageDescriptor pg_query__unlisten_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_rec__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.UnlistenStmt", - "UnlistenStmt", - "PgQuery__UnlistenStmt", + "pg_query.PLpgSQL_rec", + "PLpgSQLRec", + "PgQuery__PLpgSQLRec", "pg_query", - sizeof(PgQuery__UnlistenStmt), - 1, - pg_query__unlisten_stmt__field_descriptors, - pg_query__unlisten_stmt__field_indices_by_name, - 1, pg_query__unlisten_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__unlisten_stmt__init, + sizeof(PgQuery__PLpgSQLRec), + 9, + pg_query__plpg_sql_rec__field_descriptors, + pg_query__plpg_sql_rec__field_indices_by_name, + 1, pg_query__plpg_sql_rec__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_rec__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__transaction_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_recfield__field_descriptors[5] = { { - "kind", + "dtype", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__TransactionStmt, kind), - &pg_query__transaction_stmt_kind__descriptor, + offsetof(PgQuery__PLpgSQLRecfield, dtype), + &pg_query__plpg_sql_datum_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "dno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__TransactionStmt, n_options), - offsetof(PgQuery__TransactionStmt, options), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "savepoint_name", - 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TransactionStmt, savepoint_name), + offsetof(PgQuery__PLpgSQLRecfield, dno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "gid", - 4, + "fieldname", + 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__TransactionStmt, gid), + offsetof(PgQuery__PLpgSQLRecfield, fieldname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "chain", - 5, + "recparentno", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TransactionStmt, chain), + offsetof(PgQuery__PLpgSQLRecfield, recparentno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", - 6, + "nextfield", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__TransactionStmt, location), + offsetof(PgQuery__PLpgSQLRecfield, nextfield), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__transaction_stmt__field_indices_by_name[] = { - 4, /* field[4] = chain */ - 3, /* field[3] = gid */ - 0, /* field[0] = kind */ - 5, /* field[5] = location */ - 1, /* field[1] = options */ - 2, /* field[2] = savepoint_name */ +static const unsigned pg_query__plpg_sql_recfield__field_indices_by_name[] = { + 1, /* field[1] = dno */ + 0, /* field[0] = dtype */ + 2, /* field[2] = fieldname */ + 4, /* field[4] = nextfield */ + 3, /* field[3] = recparentno */ }; -static const ProtobufCIntRange pg_query__transaction_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_recfield__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__transaction_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_recfield__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.TransactionStmt", - "TransactionStmt", - "PgQuery__TransactionStmt", + "pg_query.PLpgSQL_recfield", + "PLpgSQLRecfield", + "PgQuery__PLpgSQLRecfield", "pg_query", - sizeof(PgQuery__TransactionStmt), - 6, - pg_query__transaction_stmt__field_descriptors, - pg_query__transaction_stmt__field_indices_by_name, - 1, pg_query__transaction_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__transaction_stmt__init, + sizeof(PgQuery__PLpgSQLRecfield), + 5, + pg_query__plpg_sql_recfield__field_descriptors, + pg_query__plpg_sql_recfield__field_indices_by_name, + 1, pg_query__plpg_sql_recfield__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_recfield__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__composite_type_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_condition__field_descriptors[2] = { { - "typevar", + "sqlerrstate", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CompositeTypeStmt, typevar), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLCondition, sqlerrstate), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "coldeflist", + "condname", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CompositeTypeStmt, n_coldeflist), - offsetof(PgQuery__CompositeTypeStmt, coldeflist), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLCondition, condname), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__composite_type_stmt__field_indices_by_name[] = { - 1, /* field[1] = coldeflist */ - 0, /* field[0] = typevar */ +static const unsigned pg_query__plpg_sql_condition__field_indices_by_name[] = { + 1, /* field[1] = condname */ + 0, /* field[0] = sqlerrstate */ }; -static const ProtobufCIntRange pg_query__composite_type_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_condition__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__composite_type_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_condition__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CompositeTypeStmt", - "CompositeTypeStmt", - "PgQuery__CompositeTypeStmt", + "pg_query.PLpgSQL_condition", + "PLpgSQLCondition", + "PgQuery__PLpgSQLCondition", "pg_query", - sizeof(PgQuery__CompositeTypeStmt), + sizeof(PgQuery__PLpgSQLCondition), 2, - pg_query__composite_type_stmt__field_descriptors, - pg_query__composite_type_stmt__field_indices_by_name, - 1, pg_query__composite_type_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__composite_type_stmt__init, + pg_query__plpg_sql_condition__field_descriptors, + pg_query__plpg_sql_condition__field_indices_by_name, + 1, pg_query__plpg_sql_condition__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_condition__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_enum_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_exception_block__field_descriptors[3] = { { - "type_name", + "sqlstate_varno", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateEnumStmt, n_type_name), - offsetof(PgQuery__CreateEnumStmt, type_name), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLExceptionBlock, sqlstate_varno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "vals", + "sqlerrm_varno", 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLExceptionBlock, sqlerrm_varno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "exc_list", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateEnumStmt, n_vals), - offsetof(PgQuery__CreateEnumStmt, vals), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLExceptionBlock, n_exc_list), + offsetof(PgQuery__PLpgSQLExceptionBlock, exc_list), + &pg_query__plpg_sql_exception__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_enum_stmt__field_indices_by_name[] = { - 0, /* field[0] = type_name */ - 1, /* field[1] = vals */ +static const unsigned pg_query__plpg_sql_exception_block__field_indices_by_name[] = { + 2, /* field[2] = exc_list */ + 1, /* field[1] = sqlerrm_varno */ + 0, /* field[0] = sqlstate_varno */ }; -static const ProtobufCIntRange pg_query__create_enum_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_exception_block__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__create_enum_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_exception_block__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateEnumStmt", - "CreateEnumStmt", - "PgQuery__CreateEnumStmt", + "pg_query.PLpgSQL_exception_block", + "PLpgSQLExceptionBlock", + "PgQuery__PLpgSQLExceptionBlock", "pg_query", - sizeof(PgQuery__CreateEnumStmt), - 2, - pg_query__create_enum_stmt__field_descriptors, - pg_query__create_enum_stmt__field_indices_by_name, - 1, pg_query__create_enum_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_enum_stmt__init, + sizeof(PgQuery__PLpgSQLExceptionBlock), + 3, + pg_query__plpg_sql_exception_block__field_descriptors, + pg_query__plpg_sql_exception_block__field_indices_by_name, + 1, pg_query__plpg_sql_exception_block__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_exception_block__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_range_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_exception__field_descriptors[3] = { { - "type_name", + "lineno", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateRangeStmt, n_type_name), - offsetof(PgQuery__CreateRangeStmt, type_name), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLException, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "params", + "conditions", 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLException, conditions), + &pg_query__plpg_sql_condition__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "action", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateRangeStmt, n_params), - offsetof(PgQuery__CreateRangeStmt, params), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLException, n_action), + offsetof(PgQuery__PLpgSQLException, action), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_range_stmt__field_indices_by_name[] = { - 1, /* field[1] = params */ - 0, /* field[0] = type_name */ +static const unsigned pg_query__plpg_sql_exception__field_indices_by_name[] = { + 2, /* field[2] = action */ + 1, /* field[1] = conditions */ + 0, /* field[0] = lineno */ }; -static const ProtobufCIntRange pg_query__create_range_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_exception__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__create_range_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_exception__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateRangeStmt", - "CreateRangeStmt", - "PgQuery__CreateRangeStmt", + "pg_query.PLpgSQL_exception", + "PLpgSQLException", + "PgQuery__PLpgSQLException", "pg_query", - sizeof(PgQuery__CreateRangeStmt), - 2, - pg_query__create_range_stmt__field_descriptors, - pg_query__create_range_stmt__field_indices_by_name, - 1, pg_query__create_range_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_range_stmt__init, + sizeof(PgQuery__PLpgSQLException), + 3, + pg_query__plpg_sql_exception__field_descriptors, + pg_query__plpg_sql_exception__field_indices_by_name, + 1, pg_query__plpg_sql_exception__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_exception__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_enum_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_block__field_descriptors[6] = { { - "type_name", + "cmd_type", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterEnumStmt, n_type_name), - offsetof(PgQuery__AlterEnumStmt, type_name), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtBlock, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "old_val", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEnumStmt, old_val), + offsetof(PgQuery__PLpgSQLStmtBlock, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "new_val", + "label", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEnumStmt, new_val), + offsetof(PgQuery__PLpgSQLStmtBlock, label), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "new_val_neighbor", + "body", 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEnumStmt, new_val_neighbor), + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtBlock, n_body), + offsetof(PgQuery__PLpgSQLStmtBlock, body), + &pg_query__plpg_sql_stmt__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "new_val_is_after", + "n_initvars", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEnumStmt, new_val_is_after), + offsetof(PgQuery__PLpgSQLStmtBlock, n_initvars), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "skip_if_new_val_exists", + "exceptions", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterEnumStmt, skip_if_new_val_exists), - NULL, + offsetof(PgQuery__PLpgSQLStmtBlock, exceptions), + &pg_query__plpg_sql_exception_block__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_enum_stmt__field_indices_by_name[] = { - 2, /* field[2] = new_val */ - 4, /* field[4] = new_val_is_after */ - 3, /* field[3] = new_val_neighbor */ - 1, /* field[1] = old_val */ - 5, /* field[5] = skip_if_new_val_exists */ - 0, /* field[0] = type_name */ +static const unsigned pg_query__plpg_sql_stmt_block__field_indices_by_name[] = { + 3, /* field[3] = body */ + 0, /* field[0] = cmd_type */ + 5, /* field[5] = exceptions */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ + 4, /* field[4] = n_initvars */ }; -static const ProtobufCIntRange pg_query__alter_enum_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_block__number_ranges[1 + 1] = { { 1, 0 }, { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__alter_enum_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_block__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterEnumStmt", - "AlterEnumStmt", - "PgQuery__AlterEnumStmt", + "pg_query.PLpgSQL_stmt_block", + "PLpgSQLStmtBlock", + "PgQuery__PLpgSQLStmtBlock", "pg_query", - sizeof(PgQuery__AlterEnumStmt), + sizeof(PgQuery__PLpgSQLStmtBlock), 6, - pg_query__alter_enum_stmt__field_descriptors, - pg_query__alter_enum_stmt__field_indices_by_name, - 1, pg_query__alter_enum_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_enum_stmt__init, + pg_query__plpg_sql_stmt_block__field_descriptors, + pg_query__plpg_sql_stmt_block__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_block__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_block__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__view_stmt__field_descriptors[6] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_assign__field_descriptors[4] = { { - "view", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ViewStmt, view), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLStmtAssign, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "aliases", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ViewStmt, n_aliases), - offsetof(PgQuery__ViewStmt, aliases), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "query", - 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ViewStmt, query), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtAssign, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "replace", - 4, + "varno", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ViewStmt, replace), + offsetof(PgQuery__PLpgSQLStmtAssign, varno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ViewStmt, n_options), - offsetof(PgQuery__ViewStmt, options), - &pg_query__node__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "with_check_option", - 6, + "expr", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ViewStmt, with_check_option), - &pg_query__view_check_option__descriptor, + offsetof(PgQuery__PLpgSQLStmtAssign, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__view_stmt__field_indices_by_name[] = { - 1, /* field[1] = aliases */ - 4, /* field[4] = options */ - 2, /* field[2] = query */ - 3, /* field[3] = replace */ - 0, /* field[0] = view */ - 5, /* field[5] = with_check_option */ +static const unsigned pg_query__plpg_sql_stmt_assign__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 3, /* field[3] = expr */ + 1, /* field[1] = lineno */ + 2, /* field[2] = varno */ }; -static const ProtobufCIntRange pg_query__view_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_assign__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 6 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__view_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_assign__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ViewStmt", - "ViewStmt", - "PgQuery__ViewStmt", + "pg_query.PLpgSQL_stmt_assign", + "PLpgSQLStmtAssign", + "PgQuery__PLpgSQLStmtAssign", "pg_query", - sizeof(PgQuery__ViewStmt), - 6, - pg_query__view_stmt__field_descriptors, - pg_query__view_stmt__field_indices_by_name, - 1, pg_query__view_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__view_stmt__init, + sizeof(PgQuery__PLpgSQLStmtAssign), + 4, + pg_query__plpg_sql_stmt_assign__field_descriptors, + pg_query__plpg_sql_stmt_assign__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_assign__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_assign__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__load_stmt__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_perform__field_descriptors[3] = { { - "filename", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__LoadStmt, filename), + offsetof(PgQuery__PLpgSQLStmtPerform, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__load_stmt__field_indices_by_name[] = { - 0, /* field[0] = filename */ -}; -static const ProtobufCIntRange pg_query__load_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__load_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.LoadStmt", - "LoadStmt", - "PgQuery__LoadStmt", - "pg_query", - sizeof(PgQuery__LoadStmt), - 1, - pg_query__load_stmt__field_descriptors, - pg_query__load_stmt__field_indices_by_name, - 1, pg_query__load_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__load_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__createdb_stmt__field_descriptors[2] = -{ { - "dbname", - 1, + "lineno", + 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatedbStmt, dbname), + offsetof(PgQuery__PLpgSQLStmtPerform, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 2, - PROTOBUF_C_LABEL_REPEATED, + "expr", + 3, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatedbStmt, n_options), - offsetof(PgQuery__CreatedbStmt, options), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtPerform, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__createdb_stmt__field_indices_by_name[] = { - 0, /* field[0] = dbname */ - 1, /* field[1] = options */ +static const unsigned pg_query__plpg_sql_stmt_perform__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = expr */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__createdb_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_perform__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__createdb_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_perform__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreatedbStmt", - "CreatedbStmt", - "PgQuery__CreatedbStmt", + "pg_query.PLpgSQL_stmt_perform", + "PLpgSQLStmtPerform", + "PgQuery__PLpgSQLStmtPerform", "pg_query", - sizeof(PgQuery__CreatedbStmt), - 2, - pg_query__createdb_stmt__field_descriptors, - pg_query__createdb_stmt__field_indices_by_name, - 1, pg_query__createdb_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__createdb_stmt__init, + sizeof(PgQuery__PLpgSQLStmtPerform), + 3, + pg_query__plpg_sql_stmt_perform__field_descriptors, + pg_query__plpg_sql_stmt_perform__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_perform__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_perform__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_database_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_call__field_descriptors[5] = { { - "dbname", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDatabaseStmt, dbname), + offsetof(PgQuery__PLpgSQLStmtCall, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterDatabaseStmt, n_options), - offsetof(PgQuery__AlterDatabaseStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtCall, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_database_stmt__field_indices_by_name[] = { - 0, /* field[0] = dbname */ - 1, /* field[1] = options */ -}; -static const ProtobufCIntRange pg_query__alter_database_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__alter_database_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterDatabaseStmt", - "AlterDatabaseStmt", - "PgQuery__AlterDatabaseStmt", - "pg_query", - sizeof(PgQuery__AlterDatabaseStmt), - 2, - pg_query__alter_database_stmt__field_descriptors, - pg_query__alter_database_stmt__field_indices_by_name, - 1, pg_query__alter_database_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_database_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_database_refresh_coll_stmt__field_descriptors[1] = -{ { - "dbname", - 1, + "expr", + 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDatabaseRefreshCollStmt, dbname), + offsetof(PgQuery__PLpgSQLStmtCall, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__alter_database_refresh_coll_stmt__field_indices_by_name[] = { - 0, /* field[0] = dbname */ -}; -static const ProtobufCIntRange pg_query__alter_database_refresh_coll_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor pg_query__alter_database_refresh_coll_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterDatabaseRefreshCollStmt", - "AlterDatabaseRefreshCollStmt", - "PgQuery__AlterDatabaseRefreshCollStmt", - "pg_query", - sizeof(PgQuery__AlterDatabaseRefreshCollStmt), - 1, - pg_query__alter_database_refresh_coll_stmt__field_descriptors, - pg_query__alter_database_refresh_coll_stmt__field_indices_by_name, - 1, pg_query__alter_database_refresh_coll_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_database_refresh_coll_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_database_set_stmt__field_descriptors[2] = -{ { - "dbname", - 1, + "is_call", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDatabaseSetStmt, dbname), + offsetof(PgQuery__PLpgSQLStmtCall, is_call), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "setstmt", - 2, + "target", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterDatabaseSetStmt, setstmt), - &pg_query__variable_set_stmt__descriptor, + offsetof(PgQuery__PLpgSQLStmtCall, target), + &pg_query__plpg_sql_datum__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_database_set_stmt__field_indices_by_name[] = { - 0, /* field[0] = dbname */ - 1, /* field[1] = setstmt */ +static const unsigned pg_query__plpg_sql_stmt_call__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = expr */ + 3, /* field[3] = is_call */ + 1, /* field[1] = lineno */ + 4, /* field[4] = target */ }; -static const ProtobufCIntRange pg_query__alter_database_set_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_call__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__alter_database_set_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_call__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterDatabaseSetStmt", - "AlterDatabaseSetStmt", - "PgQuery__AlterDatabaseSetStmt", + "pg_query.PLpgSQL_stmt_call", + "PLpgSQLStmtCall", + "PgQuery__PLpgSQLStmtCall", "pg_query", - sizeof(PgQuery__AlterDatabaseSetStmt), - 2, - pg_query__alter_database_set_stmt__field_descriptors, - pg_query__alter_database_set_stmt__field_indices_by_name, - 1, pg_query__alter_database_set_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_database_set_stmt__init, + sizeof(PgQuery__PLpgSQLStmtCall), + 5, + pg_query__plpg_sql_stmt_call__field_descriptors, + pg_query__plpg_sql_stmt_call__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_call__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_call__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__dropdb_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_commit__field_descriptors[3] = { { - "dbname", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__DropdbStmt, dbname), + offsetof(PgQuery__PLpgSQLStmtCommit, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DropdbStmt, missing_ok), + offsetof(PgQuery__PLpgSQLStmtCommit, lineno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "chain", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DropdbStmt, n_options), - offsetof(PgQuery__DropdbStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtCommit, chain), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__dropdb_stmt__field_indices_by_name[] = { - 0, /* field[0] = dbname */ - 1, /* field[1] = missing_ok */ - 2, /* field[2] = options */ +static const unsigned pg_query__plpg_sql_stmt_commit__field_indices_by_name[] = { + 2, /* field[2] = chain */ + 0, /* field[0] = cmd_type */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__dropdb_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_commit__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__dropdb_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_commit__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropdbStmt", - "DropdbStmt", - "PgQuery__DropdbStmt", + "pg_query.PLpgSQL_stmt_commit", + "PLpgSQLStmtCommit", + "PgQuery__PLpgSQLStmtCommit", "pg_query", - sizeof(PgQuery__DropdbStmt), + sizeof(PgQuery__PLpgSQLStmtCommit), 3, - pg_query__dropdb_stmt__field_descriptors, - pg_query__dropdb_stmt__field_indices_by_name, - 1, pg_query__dropdb_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__dropdb_stmt__init, + pg_query__plpg_sql_stmt_commit__field_descriptors, + pg_query__plpg_sql_stmt_commit__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_commit__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_commit__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_system_stmt__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_rollback__field_descriptors[3] = { { - "setstmt", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSystemStmt, setstmt), - &pg_query__variable_set_stmt__descriptor, + offsetof(PgQuery__PLpgSQLStmtRollback, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lineno", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtRollback, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "chain", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtRollback, chain), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_system_stmt__field_indices_by_name[] = { - 0, /* field[0] = setstmt */ +static const unsigned pg_query__plpg_sql_stmt_rollback__field_indices_by_name[] = { + 2, /* field[2] = chain */ + 0, /* field[0] = cmd_type */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__alter_system_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_rollback__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__alter_system_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_rollback__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterSystemStmt", - "AlterSystemStmt", - "PgQuery__AlterSystemStmt", + "pg_query.PLpgSQL_stmt_rollback", + "PLpgSQLStmtRollback", + "PgQuery__PLpgSQLStmtRollback", "pg_query", - sizeof(PgQuery__AlterSystemStmt), - 1, - pg_query__alter_system_stmt__field_descriptors, - pg_query__alter_system_stmt__field_indices_by_name, - 1, pg_query__alter_system_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_system_stmt__init, + sizeof(PgQuery__PLpgSQLStmtRollback), + 3, + pg_query__plpg_sql_stmt_rollback__field_descriptors, + pg_query__plpg_sql_stmt_rollback__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_rollback__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_rollback__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__cluster_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_diag_item__field_descriptors[2] = { { - "relation", + "kind", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__ClusterStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLDiagItem, kind), + &pg_query__plpg_sql_getdiag_kind__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "indexname", + "target", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ClusterStmt, indexname), + offsetof(PgQuery__PLpgSQLDiagItem, target), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "params", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ClusterStmt, n_params), - offsetof(PgQuery__ClusterStmt, params), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__cluster_stmt__field_indices_by_name[] = { - 1, /* field[1] = indexname */ - 2, /* field[2] = params */ - 0, /* field[0] = relation */ +static const unsigned pg_query__plpg_sql_diag_item__field_indices_by_name[] = { + 0, /* field[0] = kind */ + 1, /* field[1] = target */ }; -static const ProtobufCIntRange pg_query__cluster_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_diag_item__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 2 } }; -const ProtobufCMessageDescriptor pg_query__cluster_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_diag_item__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ClusterStmt", - "ClusterStmt", - "PgQuery__ClusterStmt", + "pg_query.PLpgSQL_diag_item", + "PLpgSQLDiagItem", + "PgQuery__PLpgSQLDiagItem", "pg_query", - sizeof(PgQuery__ClusterStmt), - 3, - pg_query__cluster_stmt__field_descriptors, - pg_query__cluster_stmt__field_indices_by_name, - 1, pg_query__cluster_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__cluster_stmt__init, + sizeof(PgQuery__PLpgSQLDiagItem), + 2, + pg_query__plpg_sql_diag_item__field_descriptors, + pg_query__plpg_sql_diag_item__field_indices_by_name, + 1, pg_query__plpg_sql_diag_item__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_diag_item__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__vacuum_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_getdiag__field_descriptors[4] = { { - "options", + "cmd_type", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__VacuumStmt, n_options), - offsetof(PgQuery__VacuumStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtGetdiag, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "rels", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__VacuumStmt, n_rels), - offsetof(PgQuery__VacuumStmt, rels), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtGetdiag, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_vacuumcmd", + "is_stacked", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__VacuumStmt, is_vacuumcmd), + offsetof(PgQuery__PLpgSQLStmtGetdiag, is_stacked), + NULL, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "diag_items", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtGetdiag, n_diag_items), + offsetof(PgQuery__PLpgSQLStmtGetdiag, diag_items), + &pg_query__plpg_sql_diag_item__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__vacuum_stmt__field_indices_by_name[] = { - 2, /* field[2] = is_vacuumcmd */ - 0, /* field[0] = options */ - 1, /* field[1] = rels */ +static const unsigned pg_query__plpg_sql_stmt_getdiag__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 3, /* field[3] = diag_items */ + 2, /* field[2] = is_stacked */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__vacuum_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_getdiag__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__vacuum_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_getdiag__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.VacuumStmt", - "VacuumStmt", - "PgQuery__VacuumStmt", + "pg_query.PLpgSQL_stmt_getdiag", + "PLpgSQLStmtGetdiag", + "PgQuery__PLpgSQLStmtGetdiag", "pg_query", - sizeof(PgQuery__VacuumStmt), - 3, - pg_query__vacuum_stmt__field_descriptors, - pg_query__vacuum_stmt__field_indices_by_name, - 1, pg_query__vacuum_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__vacuum_stmt__init, + sizeof(PgQuery__PLpgSQLStmtGetdiag), + 4, + pg_query__plpg_sql_stmt_getdiag__field_descriptors, + pg_query__plpg_sql_stmt_getdiag__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_getdiag__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_getdiag__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__vacuum_relation__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_if__field_descriptors[6] = { { - "relation", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__VacuumRelation, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLStmtIf, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "oid", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__VacuumRelation, oid), + offsetof(PgQuery__PLpgSQLStmtIf, lineno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "va_cols", + "cond", 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtIf, cond), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "then_body", + 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__VacuumRelation, n_va_cols), - offsetof(PgQuery__VacuumRelation, va_cols), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtIf, n_then_body), + offsetof(PgQuery__PLpgSQLStmtIf, then_body), + &pg_query__plpg_sql_stmt__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "elsif_list", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtIf, n_elsif_list), + offsetof(PgQuery__PLpgSQLStmtIf, elsif_list), + &pg_query__plpg_sql_if_elsif__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "else_body", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtIf, n_else_body), + offsetof(PgQuery__PLpgSQLStmtIf, else_body), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__vacuum_relation__field_indices_by_name[] = { - 1, /* field[1] = oid */ - 0, /* field[0] = relation */ - 2, /* field[2] = va_cols */ +static const unsigned pg_query__plpg_sql_stmt_if__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = cond */ + 5, /* field[5] = else_body */ + 4, /* field[4] = elsif_list */ + 1, /* field[1] = lineno */ + 3, /* field[3] = then_body */ }; -static const ProtobufCIntRange pg_query__vacuum_relation__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_if__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__vacuum_relation__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_if__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.VacuumRelation", - "VacuumRelation", - "PgQuery__VacuumRelation", + "pg_query.PLpgSQL_stmt_if", + "PLpgSQLStmtIf", + "PgQuery__PLpgSQLStmtIf", "pg_query", - sizeof(PgQuery__VacuumRelation), - 3, - pg_query__vacuum_relation__field_descriptors, - pg_query__vacuum_relation__field_indices_by_name, - 1, pg_query__vacuum_relation__number_ranges, - (ProtobufCMessageInit) pg_query__vacuum_relation__init, + sizeof(PgQuery__PLpgSQLStmtIf), + 6, + pg_query__plpg_sql_stmt_if__field_descriptors, + pg_query__plpg_sql_stmt_if__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_if__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_if__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__explain_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_if_elsif__field_descriptors[3] = { { - "query", + "lineno", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ExplainStmt, query), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLIfElsif, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "cond", 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLIfElsif, cond), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "stmts", + 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ExplainStmt, n_options), - offsetof(PgQuery__ExplainStmt, options), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLIfElsif, n_stmts), + offsetof(PgQuery__PLpgSQLIfElsif, stmts), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__explain_stmt__field_indices_by_name[] = { - 1, /* field[1] = options */ - 0, /* field[0] = query */ +static const unsigned pg_query__plpg_sql_if_elsif__field_indices_by_name[] = { + 1, /* field[1] = cond */ + 0, /* field[0] = lineno */ + 2, /* field[2] = stmts */ }; -static const ProtobufCIntRange pg_query__explain_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_if_elsif__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__explain_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_if_elsif__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ExplainStmt", - "ExplainStmt", - "PgQuery__ExplainStmt", + "pg_query.PLpgSQL_if_elsif", + "PLpgSQLIfElsif", + "PgQuery__PLpgSQLIfElsif", "pg_query", - sizeof(PgQuery__ExplainStmt), - 2, - pg_query__explain_stmt__field_descriptors, - pg_query__explain_stmt__field_indices_by_name, - 1, pg_query__explain_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__explain_stmt__init, + sizeof(PgQuery__PLpgSQLIfElsif), + 3, + pg_query__plpg_sql_if_elsif__field_descriptors, + pg_query__plpg_sql_if_elsif__field_indices_by_name, + 1, pg_query__plpg_sql_if_elsif__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_if_elsif__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_table_as_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_case__field_descriptors[7] = { { - "query", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableAsStmt, query), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtCase, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "into", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableAsStmt, into), - &pg_query__into_clause__descriptor, + offsetof(PgQuery__PLpgSQLStmtCase, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "objtype", + "t_expr", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableAsStmt, objtype), - &pg_query__object_type__descriptor, + offsetof(PgQuery__PLpgSQLStmtCase, t_expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "is_select_into", + "t_varno", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableAsStmt, is_select_into), + offsetof(PgQuery__PLpgSQLStmtCase, t_varno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "if_not_exists", + "case_when_list", 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtCase, n_case_when_list), + offsetof(PgQuery__PLpgSQLStmtCase, case_when_list), + &pg_query__plpg_sql_case_when__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "have_else", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTableAsStmt, if_not_exists), + offsetof(PgQuery__PLpgSQLStmtCase, have_else), + NULL, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "else_stmts", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtCase, n_else_stmts), + offsetof(PgQuery__PLpgSQLStmtCase, else_stmts), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_table_as_stmt__field_indices_by_name[] = { - 4, /* field[4] = if_not_exists */ - 1, /* field[1] = into */ - 3, /* field[3] = is_select_into */ - 2, /* field[2] = objtype */ - 0, /* field[0] = query */ +static const unsigned pg_query__plpg_sql_stmt_case__field_indices_by_name[] = { + 4, /* field[4] = case_when_list */ + 0, /* field[0] = cmd_type */ + 6, /* field[6] = else_stmts */ + 5, /* field[5] = have_else */ + 1, /* field[1] = lineno */ + 2, /* field[2] = t_expr */ + 3, /* field[3] = t_varno */ }; -static const ProtobufCIntRange pg_query__create_table_as_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_case__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__create_table_as_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_case__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateTableAsStmt", - "CreateTableAsStmt", - "PgQuery__CreateTableAsStmt", + "pg_query.PLpgSQL_stmt_case", + "PLpgSQLStmtCase", + "PgQuery__PLpgSQLStmtCase", "pg_query", - sizeof(PgQuery__CreateTableAsStmt), - 5, - pg_query__create_table_as_stmt__field_descriptors, - pg_query__create_table_as_stmt__field_indices_by_name, - 1, pg_query__create_table_as_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_table_as_stmt__init, + sizeof(PgQuery__PLpgSQLStmtCase), + 7, + pg_query__plpg_sql_stmt_case__field_descriptors, + pg_query__plpg_sql_stmt_case__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_case__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_case__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__refresh_mat_view_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_case_when__field_descriptors[3] = { { - "concurrent", + "lineno", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__RefreshMatViewStmt, concurrent), + offsetof(PgQuery__PLpgSQLCaseWhen, lineno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "skip_data", + "expr", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__RefreshMatViewStmt, skip_data), - NULL, + offsetof(PgQuery__PLpgSQLCaseWhen, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", + "stmts", 3, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(PgQuery__RefreshMatViewStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLCaseWhen, n_stmts), + offsetof(PgQuery__PLpgSQLCaseWhen, stmts), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__refresh_mat_view_stmt__field_indices_by_name[] = { - 0, /* field[0] = concurrent */ - 2, /* field[2] = relation */ - 1, /* field[1] = skip_data */ +static const unsigned pg_query__plpg_sql_case_when__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 0, /* field[0] = lineno */ + 2, /* field[2] = stmts */ }; -static const ProtobufCIntRange pg_query__refresh_mat_view_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_case_when__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__refresh_mat_view_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_case_when__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.RefreshMatViewStmt", - "RefreshMatViewStmt", - "PgQuery__RefreshMatViewStmt", + "pg_query.PLpgSQL_case_when", + "PLpgSQLCaseWhen", + "PgQuery__PLpgSQLCaseWhen", "pg_query", - sizeof(PgQuery__RefreshMatViewStmt), + sizeof(PgQuery__PLpgSQLCaseWhen), 3, - pg_query__refresh_mat_view_stmt__field_descriptors, - pg_query__refresh_mat_view_stmt__field_indices_by_name, - 1, pg_query__refresh_mat_view_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__refresh_mat_view_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -#define pg_query__check_point_stmt__field_descriptors NULL -#define pg_query__check_point_stmt__field_indices_by_name NULL -#define pg_query__check_point_stmt__number_ranges NULL -const ProtobufCMessageDescriptor pg_query__check_point_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CheckPointStmt", - "CheckPointStmt", - "PgQuery__CheckPointStmt", - "pg_query", - sizeof(PgQuery__CheckPointStmt), - 0, - pg_query__check_point_stmt__field_descriptors, - pg_query__check_point_stmt__field_indices_by_name, - 0, pg_query__check_point_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__check_point_stmt__init, + pg_query__plpg_sql_case_when__field_descriptors, + pg_query__plpg_sql_case_when__field_indices_by_name, + 1, pg_query__plpg_sql_case_when__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_case_when__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__discard_stmt__field_descriptors[1] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_loop__field_descriptors[4] = { { - "target", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__DiscardStmt, target), - &pg_query__discard_mode__descriptor, + offsetof(PgQuery__PLpgSQLStmtLoop, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lineno", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtLoop, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "label", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtLoop, label), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtLoop, n_body), + offsetof(PgQuery__PLpgSQLStmtLoop, body), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__discard_stmt__field_indices_by_name[] = { - 0, /* field[0] = target */ +static const unsigned pg_query__plpg_sql_stmt_loop__field_indices_by_name[] = { + 3, /* field[3] = body */ + 0, /* field[0] = cmd_type */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__discard_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_loop__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 1 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__discard_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_loop__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DiscardStmt", - "DiscardStmt", - "PgQuery__DiscardStmt", + "pg_query.PLpgSQL_stmt_loop", + "PLpgSQLStmtLoop", + "PgQuery__PLpgSQLStmtLoop", "pg_query", - sizeof(PgQuery__DiscardStmt), - 1, - pg_query__discard_stmt__field_descriptors, - pg_query__discard_stmt__field_indices_by_name, - 1, pg_query__discard_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__discard_stmt__init, + sizeof(PgQuery__PLpgSQLStmtLoop), + 4, + pg_query__plpg_sql_stmt_loop__field_descriptors, + pg_query__plpg_sql_stmt_loop__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_loop__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_loop__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__lock_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_while__field_descriptors[5] = { { - "relations", + "cmd_type", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__LockStmt, n_relations), - offsetof(PgQuery__LockStmt, relations), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtWhile, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "mode", + "lineno", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__LockStmt, mode), + offsetof(PgQuery__PLpgSQLStmtWhile, lineno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "nowait", + "label", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__LockStmt, nowait), + offsetof(PgQuery__PLpgSQLStmtWhile, label), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "cond", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtWhile, cond), + &pg_query__plpg_sql_expr__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtWhile, n_body), + offsetof(PgQuery__PLpgSQLStmtWhile, body), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__lock_stmt__field_indices_by_name[] = { - 1, /* field[1] = mode */ - 2, /* field[2] = nowait */ - 0, /* field[0] = relations */ +static const unsigned pg_query__plpg_sql_stmt_while__field_indices_by_name[] = { + 4, /* field[4] = body */ + 0, /* field[0] = cmd_type */ + 3, /* field[3] = cond */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__lock_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_while__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__lock_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_while__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.LockStmt", - "LockStmt", - "PgQuery__LockStmt", + "pg_query.PLpgSQL_stmt_while", + "PLpgSQLStmtWhile", + "PgQuery__PLpgSQLStmtWhile", "pg_query", - sizeof(PgQuery__LockStmt), - 3, - pg_query__lock_stmt__field_descriptors, - pg_query__lock_stmt__field_indices_by_name, - 1, pg_query__lock_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__lock_stmt__init, + sizeof(PgQuery__PLpgSQLStmtWhile), + 5, + pg_query__plpg_sql_stmt_while__field_descriptors, + pg_query__plpg_sql_stmt_while__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_while__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_while__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__constraints_set_stmt__field_descriptors[2] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_fori__field_descriptors[9] = { { - "constraints", + "cmd_type", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ConstraintsSetStmt, n_constraints), - offsetof(PgQuery__ConstraintsSetStmt, constraints), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFori, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lineno", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFori, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "label", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFori, label), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "var", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFori, var), + &pg_query__plpg_sql_var__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "deferred", - 2, + "lower", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ConstraintsSetStmt, deferred), - NULL, + offsetof(PgQuery__PLpgSQLStmtFori, lower), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__constraints_set_stmt__field_indices_by_name[] = { - 0, /* field[0] = constraints */ - 1, /* field[1] = deferred */ -}; -static const ProtobufCIntRange pg_query__constraints_set_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__constraints_set_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ConstraintsSetStmt", - "ConstraintsSetStmt", - "PgQuery__ConstraintsSetStmt", - "pg_query", - sizeof(PgQuery__ConstraintsSetStmt), - 2, - pg_query__constraints_set_stmt__field_descriptors, - pg_query__constraints_set_stmt__field_indices_by_name, - 1, pg_query__constraints_set_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__constraints_set_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__reindex_stmt__field_descriptors[4] = -{ { - "kind", - 1, + "upper", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ReindexStmt, kind), - &pg_query__reindex_object_type__descriptor, + offsetof(PgQuery__PLpgSQLStmtFori, upper), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "relation", - 2, + "step", + 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ReindexStmt, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLStmtFori, step), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", - 3, + "reverse", + 8, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ReindexStmt, name), + offsetof(PgQuery__PLpgSQLStmtFori, reverse), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "params", - 4, + "body", + 9, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ReindexStmt, n_params), - offsetof(PgQuery__ReindexStmt, params), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtFori, n_body), + offsetof(PgQuery__PLpgSQLStmtFori, body), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__reindex_stmt__field_indices_by_name[] = { - 0, /* field[0] = kind */ - 2, /* field[2] = name */ - 3, /* field[3] = params */ - 1, /* field[1] = relation */ +static const unsigned pg_query__plpg_sql_stmt_fori__field_indices_by_name[] = { + 8, /* field[8] = body */ + 0, /* field[0] = cmd_type */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ + 4, /* field[4] = lower */ + 7, /* field[7] = reverse */ + 6, /* field[6] = step */ + 5, /* field[5] = upper */ + 3, /* field[3] = var */ }; -static const ProtobufCIntRange pg_query__reindex_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_fori__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 9 } }; -const ProtobufCMessageDescriptor pg_query__reindex_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_fori__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ReindexStmt", - "ReindexStmt", - "PgQuery__ReindexStmt", + "pg_query.PLpgSQL_stmt_fori", + "PLpgSQLStmtFori", + "PgQuery__PLpgSQLStmtFori", "pg_query", - sizeof(PgQuery__ReindexStmt), - 4, - pg_query__reindex_stmt__field_descriptors, - pg_query__reindex_stmt__field_indices_by_name, - 1, pg_query__reindex_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__reindex_stmt__init, + sizeof(PgQuery__PLpgSQLStmtFori), + 9, + pg_query__plpg_sql_stmt_fori__field_descriptors, + pg_query__plpg_sql_stmt_fori__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_fori__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_fori__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_conversion_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_fors__field_descriptors[6] = { { - "conversion_name", + "cmd_type", 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateConversionStmt, n_conversion_name), - offsetof(PgQuery__CreateConversionStmt, conversion_name), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFors, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "for_encoding_name", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateConversionStmt, for_encoding_name), + offsetof(PgQuery__PLpgSQLStmtFors, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "to_encoding_name", + "label", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateConversionStmt, to_encoding_name), + offsetof(PgQuery__PLpgSQLStmtFors, label), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func_name", + "var", 4, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateConversionStmt, n_func_name), - offsetof(PgQuery__CreateConversionStmt, func_name), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFors, var), + &pg_query__plpg_sql_datum__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "def", + "body", 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtFors, n_body), + offsetof(PgQuery__PLpgSQLStmtFors, body), + &pg_query__plpg_sql_stmt__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "query", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateConversionStmt, def), - NULL, + offsetof(PgQuery__PLpgSQLStmtFors, query), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_conversion_stmt__field_indices_by_name[] = { - 0, /* field[0] = conversion_name */ - 4, /* field[4] = def */ - 1, /* field[1] = for_encoding_name */ - 3, /* field[3] = func_name */ - 2, /* field[2] = to_encoding_name */ +static const unsigned pg_query__plpg_sql_stmt_fors__field_indices_by_name[] = { + 4, /* field[4] = body */ + 0, /* field[0] = cmd_type */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ + 5, /* field[5] = query */ + 3, /* field[3] = var */ }; -static const ProtobufCIntRange pg_query__create_conversion_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_fors__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 6 } }; -const ProtobufCMessageDescriptor pg_query__create_conversion_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_fors__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateConversionStmt", - "CreateConversionStmt", - "PgQuery__CreateConversionStmt", + "pg_query.PLpgSQL_stmt_fors", + "PLpgSQLStmtFors", + "PgQuery__PLpgSQLStmtFors", "pg_query", - sizeof(PgQuery__CreateConversionStmt), - 5, - pg_query__create_conversion_stmt__field_descriptors, - pg_query__create_conversion_stmt__field_indices_by_name, - 1, pg_query__create_conversion_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_conversion_stmt__init, + sizeof(PgQuery__PLpgSQLStmtFors), + 6, + pg_query__plpg_sql_stmt_fors__field_descriptors, + pg_query__plpg_sql_stmt_fors__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_fors__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_fors__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_cast_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_forc__field_descriptors[7] = { { - "sourcetype", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateCastStmt, sourcetype), - &pg_query__type_name__descriptor, + offsetof(PgQuery__PLpgSQLStmtForc, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "targettype", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateCastStmt, targettype), - &pg_query__type_name__descriptor, + offsetof(PgQuery__PLpgSQLStmtForc, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "func", + "label", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateCastStmt, func), - &pg_query__object_with_args__descriptor, + offsetof(PgQuery__PLpgSQLStmtForc, label), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "context", + "var", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateCastStmt, context), - &pg_query__coercion_context__descriptor, + offsetof(PgQuery__PLpgSQLStmtForc, var), + &pg_query__plpg_sql_datum__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "inout", + "body", 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtForc, n_body), + offsetof(PgQuery__PLpgSQLStmtForc, body), + &pg_query__plpg_sql_stmt__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "curvar", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateCastStmt, inout), + offsetof(PgQuery__PLpgSQLStmtForc, curvar), + NULL, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "argquery", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtForc, argquery), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_cast_stmt__field_indices_by_name[] = { - 3, /* field[3] = context */ - 2, /* field[2] = func */ - 4, /* field[4] = inout */ - 0, /* field[0] = sourcetype */ - 1, /* field[1] = targettype */ +static const unsigned pg_query__plpg_sql_stmt_forc__field_indices_by_name[] = { + 6, /* field[6] = argquery */ + 4, /* field[4] = body */ + 0, /* field[0] = cmd_type */ + 5, /* field[5] = curvar */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ + 3, /* field[3] = var */ }; -static const ProtobufCIntRange pg_query__create_cast_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_forc__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__create_cast_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_forc__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateCastStmt", - "CreateCastStmt", - "PgQuery__CreateCastStmt", + "pg_query.PLpgSQL_stmt_forc", + "PLpgSQLStmtForc", + "PgQuery__PLpgSQLStmtForc", "pg_query", - sizeof(PgQuery__CreateCastStmt), - 5, - pg_query__create_cast_stmt__field_descriptors, - pg_query__create_cast_stmt__field_indices_by_name, - 1, pg_query__create_cast_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_cast_stmt__init, + sizeof(PgQuery__PLpgSQLStmtForc), + 7, + pg_query__plpg_sql_stmt_forc__field_descriptors, + pg_query__plpg_sql_stmt_forc__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_forc__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_forc__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_transform_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_dynfors__field_descriptors[7] = { { - "replace", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTransformStmt, replace), - NULL, + offsetof(PgQuery__PLpgSQLStmtDynfors, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "type_name", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTransformStmt, type_name), - &pg_query__type_name__descriptor, + offsetof(PgQuery__PLpgSQLStmtDynfors, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "lang", + "label", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTransformStmt, lang), + offsetof(PgQuery__PLpgSQLStmtDynfors, label), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "fromsql", + "var", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTransformStmt, fromsql), - &pg_query__object_with_args__descriptor, + offsetof(PgQuery__PLpgSQLStmtDynfors, var), + &pg_query__plpg_sql_datum__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tosql", + "body", 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtDynfors, n_body), + offsetof(PgQuery__PLpgSQLStmtDynfors, body), + &pg_query__plpg_sql_stmt__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "query", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateTransformStmt, tosql), - &pg_query__object_with_args__descriptor, + offsetof(PgQuery__PLpgSQLStmtDynfors, query), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "params", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtDynfors, n_params), + offsetof(PgQuery__PLpgSQLStmtDynfors, params), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_transform_stmt__field_indices_by_name[] = { - 3, /* field[3] = fromsql */ - 2, /* field[2] = lang */ - 0, /* field[0] = replace */ - 4, /* field[4] = tosql */ - 1, /* field[1] = type_name */ +static const unsigned pg_query__plpg_sql_stmt_dynfors__field_indices_by_name[] = { + 4, /* field[4] = body */ + 0, /* field[0] = cmd_type */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ + 6, /* field[6] = params */ + 5, /* field[5] = query */ + 3, /* field[3] = var */ }; -static const ProtobufCIntRange pg_query__create_transform_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_dynfors__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__create_transform_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_dynfors__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateTransformStmt", - "CreateTransformStmt", - "PgQuery__CreateTransformStmt", + "pg_query.PLpgSQL_stmt_dynfors", + "PLpgSQLStmtDynfors", + "PgQuery__PLpgSQLStmtDynfors", "pg_query", - sizeof(PgQuery__CreateTransformStmt), - 5, - pg_query__create_transform_stmt__field_descriptors, - pg_query__create_transform_stmt__field_indices_by_name, - 1, pg_query__create_transform_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_transform_stmt__init, + sizeof(PgQuery__PLpgSQLStmtDynfors), + 7, + pg_query__plpg_sql_stmt_dynfors__field_descriptors, + pg_query__plpg_sql_stmt_dynfors__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_dynfors__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_dynfors__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__prepare_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_foreach_a__field_descriptors[7] = { { - "name", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__PrepareStmt, name), + offsetof(PgQuery__PLpgSQLStmtForeachA, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "argtypes", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PrepareStmt, n_argtypes), - offsetof(PgQuery__PrepareStmt, argtypes), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtForeachA, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "query", + "label", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__PrepareStmt, query), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtForeachA, label), NULL, + &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__prepare_stmt__field_indices_by_name[] = { - 1, /* field[1] = argtypes */ - 0, /* field[0] = name */ - 2, /* field[2] = query */ -}; -static const ProtobufCIntRange pg_query__prepare_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__prepare_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PrepareStmt", - "PrepareStmt", - "PgQuery__PrepareStmt", - "pg_query", - sizeof(PgQuery__PrepareStmt), - 3, - pg_query__prepare_stmt__field_descriptors, - pg_query__prepare_stmt__field_indices_by_name, - 1, pg_query__prepare_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__prepare_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__execute_stmt__field_descriptors[2] = -{ { - "name", - 1, + "varno", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__ExecuteStmt, name), + offsetof(PgQuery__PLpgSQLStmtForeachA, varno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "params", - 2, + "slice", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtForeachA, slice), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "expr", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtForeachA, expr), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body", + 7, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ExecuteStmt, n_params), - offsetof(PgQuery__ExecuteStmt, params), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtForeachA, n_body), + offsetof(PgQuery__PLpgSQLStmtForeachA, body), + &pg_query__plpg_sql_stmt__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__execute_stmt__field_indices_by_name[] = { - 0, /* field[0] = name */ - 1, /* field[1] = params */ +static const unsigned pg_query__plpg_sql_stmt_foreach_a__field_indices_by_name[] = { + 6, /* field[6] = body */ + 0, /* field[0] = cmd_type */ + 5, /* field[5] = expr */ + 2, /* field[2] = label */ + 1, /* field[1] = lineno */ + 4, /* field[4] = slice */ + 3, /* field[3] = varno */ }; -static const ProtobufCIntRange pg_query__execute_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_foreach_a__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__execute_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_foreach_a__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ExecuteStmt", - "ExecuteStmt", - "PgQuery__ExecuteStmt", + "pg_query.PLpgSQL_stmt_foreach_a", + "PLpgSQLStmtForeachA", + "PgQuery__PLpgSQLStmtForeachA", "pg_query", - sizeof(PgQuery__ExecuteStmt), - 2, - pg_query__execute_stmt__field_descriptors, - pg_query__execute_stmt__field_indices_by_name, - 1, pg_query__execute_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__execute_stmt__init, + sizeof(PgQuery__PLpgSQLStmtForeachA), + 7, + pg_query__plpg_sql_stmt_foreach_a__field_descriptors, + pg_query__plpg_sql_stmt_foreach_a__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_foreach_a__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_foreach_a__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__deallocate_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_open__field_descriptors[8] = { { - "name", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__DeallocateStmt, name), + offsetof(PgQuery__PLpgSQLStmtOpen, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "isall", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DeallocateStmt, isall), + offsetof(PgQuery__PLpgSQLStmtOpen, lineno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "curvar", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DeallocateStmt, location), - NULL, + offsetof(PgQuery__PLpgSQLStmtOpen, curvar), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned pg_query__deallocate_stmt__field_indices_by_name[] = { - 1, /* field[1] = isall */ - 2, /* field[2] = location */ - 0, /* field[0] = name */ -}; -static const ProtobufCIntRange pg_query__deallocate_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__deallocate_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DeallocateStmt", - "DeallocateStmt", - "PgQuery__DeallocateStmt", - "pg_query", - sizeof(PgQuery__DeallocateStmt), - 3, - pg_query__deallocate_stmt__field_descriptors, - pg_query__deallocate_stmt__field_indices_by_name, - 1, pg_query__deallocate_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__deallocate_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__drop_owned_stmt__field_descriptors[2] = -{ - { - "roles", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__DropOwnedStmt, n_roles), - offsetof(PgQuery__DropOwnedStmt, roles), - &pg_query__node__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "behavior", - 2, + "cursor_options", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__DropOwnedStmt, behavior), - &pg_query__drop_behavior__descriptor, + offsetof(PgQuery__PLpgSQLStmtOpen, cursor_options), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__drop_owned_stmt__field_indices_by_name[] = { - 1, /* field[1] = behavior */ - 0, /* field[0] = roles */ -}; -static const ProtobufCIntRange pg_query__drop_owned_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__drop_owned_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropOwnedStmt", - "DropOwnedStmt", - "PgQuery__DropOwnedStmt", - "pg_query", - sizeof(PgQuery__DropOwnedStmt), - 2, - pg_query__drop_owned_stmt__field_descriptors, - pg_query__drop_owned_stmt__field_indices_by_name, - 1, pg_query__drop_owned_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__drop_owned_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__reassign_owned_stmt__field_descriptors[2] = -{ { - "roles", - 1, - PROTOBUF_C_LABEL_REPEATED, + "argquery", + 5, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__ReassignOwnedStmt, n_roles), - offsetof(PgQuery__ReassignOwnedStmt, roles), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtOpen, argquery), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "newrole", - 2, + "query", + 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__ReassignOwnedStmt, newrole), - &pg_query__role_spec__descriptor, + offsetof(PgQuery__PLpgSQLStmtOpen, query), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__reassign_owned_stmt__field_indices_by_name[] = { - 1, /* field[1] = newrole */ - 0, /* field[0] = roles */ -}; -static const ProtobufCIntRange pg_query__reassign_owned_stmt__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor pg_query__reassign_owned_stmt__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ReassignOwnedStmt", - "ReassignOwnedStmt", - "PgQuery__ReassignOwnedStmt", - "pg_query", - sizeof(PgQuery__ReassignOwnedStmt), - 2, - pg_query__reassign_owned_stmt__field_descriptors, - pg_query__reassign_owned_stmt__field_indices_by_name, - 1, pg_query__reassign_owned_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__reassign_owned_stmt__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__alter_tsdictionary_stmt__field_descriptors[2] = -{ { - "dictname", - 1, - PROTOBUF_C_LABEL_REPEATED, + "dynquery", + 7, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTSDictionaryStmt, n_dictname), - offsetof(PgQuery__AlterTSDictionaryStmt, dictname), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtOpen, dynquery), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", - 2, + "params", + 8, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTSDictionaryStmt, n_options), - offsetof(PgQuery__AlterTSDictionaryStmt, options), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtOpen, n_params), + offsetof(PgQuery__PLpgSQLStmtOpen, params), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_tsdictionary_stmt__field_indices_by_name[] = { - 0, /* field[0] = dictname */ - 1, /* field[1] = options */ +static const unsigned pg_query__plpg_sql_stmt_open__field_indices_by_name[] = { + 4, /* field[4] = argquery */ + 0, /* field[0] = cmd_type */ + 3, /* field[3] = cursor_options */ + 2, /* field[2] = curvar */ + 6, /* field[6] = dynquery */ + 1, /* field[1] = lineno */ + 7, /* field[7] = params */ + 5, /* field[5] = query */ }; -static const ProtobufCIntRange pg_query__alter_tsdictionary_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_open__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__alter_tsdictionary_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_open__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTSDictionaryStmt", - "AlterTSDictionaryStmt", - "PgQuery__AlterTSDictionaryStmt", + "pg_query.PLpgSQL_stmt_open", + "PLpgSQLStmtOpen", + "PgQuery__PLpgSQLStmtOpen", "pg_query", - sizeof(PgQuery__AlterTSDictionaryStmt), - 2, - pg_query__alter_tsdictionary_stmt__field_descriptors, - pg_query__alter_tsdictionary_stmt__field_indices_by_name, - 1, pg_query__alter_tsdictionary_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_tsdictionary_stmt__init, + sizeof(PgQuery__PLpgSQLStmtOpen), + 8, + pg_query__plpg_sql_stmt_open__field_descriptors, + pg_query__plpg_sql_stmt_open__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_open__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_open__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_tsconfiguration_stmt__field_descriptors[7] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_fetch__field_descriptors[9] = { { - "kind", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTSConfigurationStmt, kind), - &pg_query__alter_tsconfig_type__descriptor, + offsetof(PgQuery__PLpgSQLStmtFetch, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cfgname", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTSConfigurationStmt, n_cfgname), - offsetof(PgQuery__AlterTSConfigurationStmt, cfgname), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFetch, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "tokentype", + "target", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTSConfigurationStmt, n_tokentype), - offsetof(PgQuery__AlterTSConfigurationStmt, tokentype), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFetch, target), + &pg_query__plpg_sql_datum__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "dicts", + "curvar", 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterTSConfigurationStmt, n_dicts), - offsetof(PgQuery__AlterTSConfigurationStmt, dicts), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFetch, curvar), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "override", + "direction", 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTSConfigurationStmt, override), + offsetof(PgQuery__PLpgSQLStmtFetch, direction), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "replace", + "how_many", 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTSConfigurationStmt, replace), + offsetof(PgQuery__PLpgSQLStmtFetch, how_many), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "expr", 7, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFetch, expr), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "is_move", + 8, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterTSConfigurationStmt, missing_ok), + offsetof(PgQuery__PLpgSQLStmtFetch, is_move), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "returns_multiple_rows", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtFetch, returns_multiple_rows), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_tsconfiguration_stmt__field_indices_by_name[] = { - 1, /* field[1] = cfgname */ - 3, /* field[3] = dicts */ - 0, /* field[0] = kind */ - 6, /* field[6] = missing_ok */ - 4, /* field[4] = override */ - 5, /* field[5] = replace */ - 2, /* field[2] = tokentype */ +static const unsigned pg_query__plpg_sql_stmt_fetch__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 3, /* field[3] = curvar */ + 4, /* field[4] = direction */ + 6, /* field[6] = expr */ + 5, /* field[5] = how_many */ + 7, /* field[7] = is_move */ + 1, /* field[1] = lineno */ + 8, /* field[8] = returns_multiple_rows */ + 2, /* field[2] = target */ }; -static const ProtobufCIntRange pg_query__alter_tsconfiguration_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_fetch__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 9 } }; -const ProtobufCMessageDescriptor pg_query__alter_tsconfiguration_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_fetch__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterTSConfigurationStmt", - "AlterTSConfigurationStmt", - "PgQuery__AlterTSConfigurationStmt", + "pg_query.PLpgSQL_stmt_fetch", + "PLpgSQLStmtFetch", + "PgQuery__PLpgSQLStmtFetch", "pg_query", - sizeof(PgQuery__AlterTSConfigurationStmt), - 7, - pg_query__alter_tsconfiguration_stmt__field_descriptors, - pg_query__alter_tsconfiguration_stmt__field_indices_by_name, - 1, pg_query__alter_tsconfiguration_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_tsconfiguration_stmt__init, + sizeof(PgQuery__PLpgSQLStmtFetch), + 9, + pg_query__plpg_sql_stmt_fetch__field_descriptors, + pg_query__plpg_sql_stmt_fetch__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_fetch__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_fetch__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__publication_table__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_close__field_descriptors[3] = { { - "relation", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__PublicationTable, relation), - &pg_query__range_var__descriptor, + offsetof(PgQuery__PLpgSQLStmtClose, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "where_clause", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__PublicationTable, where_clause), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtClose, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "columns", + "curvar", 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__PublicationTable, n_columns), - offsetof(PgQuery__PublicationTable, columns), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtClose, curvar), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__publication_table__field_indices_by_name[] = { - 2, /* field[2] = columns */ - 0, /* field[0] = relation */ - 1, /* field[1] = where_clause */ +static const unsigned pg_query__plpg_sql_stmt_close__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = curvar */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__publication_table__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_close__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor pg_query__publication_table__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_close__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PublicationTable", - "PublicationTable", - "PgQuery__PublicationTable", + "pg_query.PLpgSQL_stmt_close", + "PLpgSQLStmtClose", + "PgQuery__PLpgSQLStmtClose", "pg_query", - sizeof(PgQuery__PublicationTable), + sizeof(PgQuery__PLpgSQLStmtClose), 3, - pg_query__publication_table__field_descriptors, - pg_query__publication_table__field_indices_by_name, - 1, pg_query__publication_table__number_ranges, - (ProtobufCMessageInit) pg_query__publication_table__init, + pg_query__plpg_sql_stmt_close__field_descriptors, + pg_query__plpg_sql_stmt_close__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_close__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_close__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__publication_obj_spec__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_exit__field_descriptors[5] = { { - "pubobjtype", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__PublicationObjSpec, pubobjtype), - &pg_query__publication_obj_spec_type__descriptor, + offsetof(PgQuery__PLpgSQLStmtExit, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "name", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__PublicationObjSpec, name), + offsetof(PgQuery__PLpgSQLStmtExit, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pubtable", + "is_exit", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__PublicationObjSpec, pubtable), - &pg_query__publication_table__descriptor, + offsetof(PgQuery__PLpgSQLStmtExit, is_exit), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "location", + "label", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__PublicationObjSpec, location), + offsetof(PgQuery__PLpgSQLStmtExit, label), NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "cond", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtExit, cond), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__publication_obj_spec__field_indices_by_name[] = { - 3, /* field[3] = location */ - 1, /* field[1] = name */ - 0, /* field[0] = pubobjtype */ - 2, /* field[2] = pubtable */ +static const unsigned pg_query__plpg_sql_stmt_exit__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 4, /* field[4] = cond */ + 2, /* field[2] = is_exit */ + 3, /* field[3] = label */ + 1, /* field[1] = lineno */ }; -static const ProtobufCIntRange pg_query__publication_obj_spec__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_exit__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__publication_obj_spec__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_exit__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.PublicationObjSpec", - "PublicationObjSpec", - "PgQuery__PublicationObjSpec", + "pg_query.PLpgSQL_stmt_exit", + "PLpgSQLStmtExit", + "PgQuery__PLpgSQLStmtExit", "pg_query", - sizeof(PgQuery__PublicationObjSpec), - 4, - pg_query__publication_obj_spec__field_descriptors, - pg_query__publication_obj_spec__field_indices_by_name, - 1, pg_query__publication_obj_spec__number_ranges, - (ProtobufCMessageInit) pg_query__publication_obj_spec__init, + sizeof(PgQuery__PLpgSQLStmtExit), + 5, + pg_query__plpg_sql_stmt_exit__field_descriptors, + pg_query__plpg_sql_stmt_exit__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_exit__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_exit__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_publication_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_return__field_descriptors[4] = { { - "pubname", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePublicationStmt, pubname), + offsetof(PgQuery__PLpgSQLStmtReturn, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatePublicationStmt, n_options), - offsetof(PgQuery__CreatePublicationStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtReturn, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pubobjects", + "expr", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreatePublicationStmt, n_pubobjects), - offsetof(PgQuery__CreatePublicationStmt, pubobjects), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtReturn, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "for_all_tables", + "retvarno", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreatePublicationStmt, for_all_tables), + offsetof(PgQuery__PLpgSQLStmtReturn, retvarno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_publication_stmt__field_indices_by_name[] = { - 3, /* field[3] = for_all_tables */ - 1, /* field[1] = options */ - 0, /* field[0] = pubname */ - 2, /* field[2] = pubobjects */ +static const unsigned pg_query__plpg_sql_stmt_return__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = expr */ + 1, /* field[1] = lineno */ + 3, /* field[3] = retvarno */ }; -static const ProtobufCIntRange pg_query__create_publication_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_return__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__create_publication_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_return__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreatePublicationStmt", - "CreatePublicationStmt", - "PgQuery__CreatePublicationStmt", + "pg_query.PLpgSQL_stmt_return", + "PLpgSQLStmtReturn", + "PgQuery__PLpgSQLStmtReturn", "pg_query", - sizeof(PgQuery__CreatePublicationStmt), + sizeof(PgQuery__PLpgSQLStmtReturn), 4, - pg_query__create_publication_stmt__field_descriptors, - pg_query__create_publication_stmt__field_indices_by_name, - 1, pg_query__create_publication_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_publication_stmt__init, + pg_query__plpg_sql_stmt_return__field_descriptors, + pg_query__plpg_sql_stmt_return__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_return__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_return__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_publication_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_return_next__field_descriptors[4] = { { - "pubname", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPublicationStmt, pubname), + offsetof(PgQuery__PLpgSQLStmtReturnNext, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "lineno", 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterPublicationStmt, n_options), - offsetof(PgQuery__AlterPublicationStmt, options), - &pg_query__node__descriptor, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtReturnNext, lineno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "pubobjects", + "expr", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterPublicationStmt, n_pubobjects), - offsetof(PgQuery__AlterPublicationStmt, pubobjects), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtReturnNext, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "for_all_tables", + "retvarno", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPublicationStmt, for_all_tables), + offsetof(PgQuery__PLpgSQLStmtReturnNext, retvarno), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, - { - "action", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(PgQuery__AlterPublicationStmt, action), - &pg_query__alter_publication_action__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, }; -static const unsigned pg_query__alter_publication_stmt__field_indices_by_name[] = { - 4, /* field[4] = action */ - 3, /* field[3] = for_all_tables */ - 1, /* field[1] = options */ - 0, /* field[0] = pubname */ - 2, /* field[2] = pubobjects */ +static const unsigned pg_query__plpg_sql_stmt_return_next__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = expr */ + 1, /* field[1] = lineno */ + 3, /* field[3] = retvarno */ }; -static const ProtobufCIntRange pg_query__alter_publication_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_return_next__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__alter_publication_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_return_next__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterPublicationStmt", - "AlterPublicationStmt", - "PgQuery__AlterPublicationStmt", + "pg_query.PLpgSQL_stmt_return_next", + "PLpgSQLStmtReturnNext", + "PgQuery__PLpgSQLStmtReturnNext", "pg_query", - sizeof(PgQuery__AlterPublicationStmt), - 5, - pg_query__alter_publication_stmt__field_descriptors, - pg_query__alter_publication_stmt__field_indices_by_name, - 1, pg_query__alter_publication_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_publication_stmt__init, + sizeof(PgQuery__PLpgSQLStmtReturnNext), + 4, + pg_query__plpg_sql_stmt_return_next__field_descriptors, + pg_query__plpg_sql_stmt_return_next__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_return_next__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_return_next__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__create_subscription_stmt__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_return_query__field_descriptors[5] = { { - "subname", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSubscriptionStmt, subname), + offsetof(PgQuery__PLpgSQLStmtReturnQuery, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "conninfo", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__CreateSubscriptionStmt, conninfo), + offsetof(PgQuery__PLpgSQLStmtReturnQuery, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "publication", + "query", 3, - PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateSubscriptionStmt, n_publication), - offsetof(PgQuery__CreateSubscriptionStmt, publication), - &pg_query__node__descriptor, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtReturnQuery, query), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "options", + "dynquery", 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtReturnQuery, dynquery), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "params", + 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__CreateSubscriptionStmt, n_options), - offsetof(PgQuery__CreateSubscriptionStmt, options), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtReturnQuery, n_params), + offsetof(PgQuery__PLpgSQLStmtReturnQuery, params), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__create_subscription_stmt__field_indices_by_name[] = { - 1, /* field[1] = conninfo */ - 3, /* field[3] = options */ - 2, /* field[2] = publication */ - 0, /* field[0] = subname */ +static const unsigned pg_query__plpg_sql_stmt_return_query__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 3, /* field[3] = dynquery */ + 1, /* field[1] = lineno */ + 4, /* field[4] = params */ + 2, /* field[2] = query */ }; -static const ProtobufCIntRange pg_query__create_subscription_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_return_query__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 4 } + { 0, 5 } }; -const ProtobufCMessageDescriptor pg_query__create_subscription_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_return_query__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.CreateSubscriptionStmt", - "CreateSubscriptionStmt", - "PgQuery__CreateSubscriptionStmt", + "pg_query.PLpgSQL_stmt_return_query", + "PLpgSQLStmtReturnQuery", + "PgQuery__PLpgSQLStmtReturnQuery", "pg_query", - sizeof(PgQuery__CreateSubscriptionStmt), - 4, - pg_query__create_subscription_stmt__field_descriptors, - pg_query__create_subscription_stmt__field_indices_by_name, - 1, pg_query__create_subscription_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__create_subscription_stmt__init, + sizeof(PgQuery__PLpgSQLStmtReturnQuery), + 5, + pg_query__plpg_sql_stmt_return_query__field_descriptors, + pg_query__plpg_sql_stmt_return_query__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_return_query__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_return_query__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__alter_subscription_stmt__field_descriptors[5] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_raise__field_descriptors[7] = { { - "kind", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSubscriptionStmt, kind), - &pg_query__alter_subscription_type__descriptor, + offsetof(PgQuery__PLpgSQLStmtRaise, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "subname", + "lineno", 2, PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtRaise, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "elog_level", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtRaise, elog_level), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "condname", + 4, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSubscriptionStmt, subname), + offsetof(PgQuery__PLpgSQLStmtRaise, condname), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "conninfo", - 3, + "message", + 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__AlterSubscriptionStmt, conninfo), + offsetof(PgQuery__PLpgSQLStmtRaise, message), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "publication", - 4, + "params", + 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterSubscriptionStmt, n_publication), - offsetof(PgQuery__AlterSubscriptionStmt, publication), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtRaise, n_params), + offsetof(PgQuery__PLpgSQLStmtRaise, params), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "options", - 5, + 7, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__AlterSubscriptionStmt, n_options), - offsetof(PgQuery__AlterSubscriptionStmt, options), - &pg_query__node__descriptor, + offsetof(PgQuery__PLpgSQLStmtRaise, n_options), + offsetof(PgQuery__PLpgSQLStmtRaise, options), + &pg_query__plpg_sql_raise_option__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__alter_subscription_stmt__field_indices_by_name[] = { - 2, /* field[2] = conninfo */ - 0, /* field[0] = kind */ - 4, /* field[4] = options */ - 3, /* field[3] = publication */ - 1, /* field[1] = subname */ +static const unsigned pg_query__plpg_sql_stmt_raise__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 3, /* field[3] = condname */ + 2, /* field[2] = elog_level */ + 1, /* field[1] = lineno */ + 4, /* field[4] = message */ + 6, /* field[6] = options */ + 5, /* field[5] = params */ }; -static const ProtobufCIntRange pg_query__alter_subscription_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_raise__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__alter_subscription_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_raise__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.AlterSubscriptionStmt", - "AlterSubscriptionStmt", - "PgQuery__AlterSubscriptionStmt", + "pg_query.PLpgSQL_stmt_raise", + "PLpgSQLStmtRaise", + "PgQuery__PLpgSQLStmtRaise", "pg_query", - sizeof(PgQuery__AlterSubscriptionStmt), - 5, - pg_query__alter_subscription_stmt__field_descriptors, - pg_query__alter_subscription_stmt__field_indices_by_name, - 1, pg_query__alter_subscription_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__alter_subscription_stmt__init, + sizeof(PgQuery__PLpgSQLStmtRaise), + 7, + pg_query__plpg_sql_stmt_raise__field_descriptors, + pg_query__plpg_sql_stmt_raise__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_raise__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_raise__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__drop_subscription_stmt__field_descriptors[3] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_raise_option__field_descriptors[2] = { { - "subname", + "opt_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__DropSubscriptionStmt, subname), + offsetof(PgQuery__PLpgSQLRaiseOption, opt_type), + &pg_query__plpg_sql_raise_option_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "missing_ok", + "expr", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DropSubscriptionStmt, missing_ok), + offsetof(PgQuery__PLpgSQLRaiseOption, expr), + &pg_query__plpg_sql_expr__descriptor, NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned pg_query__plpg_sql_raise_option__field_indices_by_name[] = { + 1, /* field[1] = expr */ + 0, /* field[0] = opt_type */ +}; +static const ProtobufCIntRange pg_query__plpg_sql_raise_option__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor pg_query__plpg_sql_raise_option__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_raise_option", + "PLpgSQLRaiseOption", + "PgQuery__PLpgSQLRaiseOption", + "pg_query", + sizeof(PgQuery__PLpgSQLRaiseOption), + 2, + pg_query__plpg_sql_raise_option__field_descriptors, + pg_query__plpg_sql_raise_option__field_indices_by_name, + 1, pg_query__plpg_sql_raise_option__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_raise_option__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_assert__field_descriptors[4] = +{ + { + "cmd_type", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtAssert, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "behavior", + "lineno", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtAssert, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "cond", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__DropSubscriptionStmt, behavior), - &pg_query__drop_behavior__descriptor, + offsetof(PgQuery__PLpgSQLStmtAssert, cond), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "message", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtAssert, message), + &pg_query__plpg_sql_expr__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__drop_subscription_stmt__field_indices_by_name[] = { - 2, /* field[2] = behavior */ - 1, /* field[1] = missing_ok */ - 0, /* field[0] = subname */ +static const unsigned pg_query__plpg_sql_stmt_assert__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 2, /* field[2] = cond */ + 1, /* field[1] = lineno */ + 3, /* field[3] = message */ }; -static const ProtobufCIntRange pg_query__drop_subscription_stmt__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_assert__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 3 } + { 0, 4 } }; -const ProtobufCMessageDescriptor pg_query__drop_subscription_stmt__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_assert__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.DropSubscriptionStmt", - "DropSubscriptionStmt", - "PgQuery__DropSubscriptionStmt", + "pg_query.PLpgSQL_stmt_assert", + "PLpgSQLStmtAssert", + "PgQuery__PLpgSQLStmtAssert", "pg_query", - sizeof(PgQuery__DropSubscriptionStmt), - 3, - pg_query__drop_subscription_stmt__field_descriptors, - pg_query__drop_subscription_stmt__field_indices_by_name, - 1, pg_query__drop_subscription_stmt__number_ranges, - (ProtobufCMessageInit) pg_query__drop_subscription_stmt__init, + sizeof(PgQuery__PLpgSQLStmtAssert), + 4, + pg_query__plpg_sql_stmt_assert__field_descriptors, + pg_query__plpg_sql_stmt_assert__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_assert__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_assert__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__scan_token__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_execsql__field_descriptors[8] = { { - "start", - 1, + "cmd_type", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtExecsql, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lineno", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtExecsql, lineno), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sqlstmt", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtExecsql, sqlstmt), + &pg_query__plpg_sql_expr__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mod_stmt", + 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ScanToken, start), + offsetof(PgQuery__PLpgSQLStmtExecsql, mod_stmt), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "end", - 2, + "mod_stmt_set", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ScanToken, end), + offsetof(PgQuery__PLpgSQLStmtExecsql, mod_stmt_set), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "token", - 4, + "into", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ScanToken, token), - &pg_query__token__descriptor, + offsetof(PgQuery__PLpgSQLStmtExecsql, into), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "keyword_kind", - 5, + "strict", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__ScanToken, keyword_kind), - &pg_query__keyword_kind__descriptor, + offsetof(PgQuery__PLpgSQLStmtExecsql, strict), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "target", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLStmtExecsql, target), + &pg_query__plpg_sql_datum__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__scan_token__field_indices_by_name[] = { - 1, /* field[1] = end */ - 3, /* field[3] = keyword_kind */ - 0, /* field[0] = start */ - 2, /* field[2] = token */ +static const unsigned pg_query__plpg_sql_stmt_execsql__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 5, /* field[5] = into */ + 1, /* field[1] = lineno */ + 3, /* field[3] = mod_stmt */ + 4, /* field[4] = mod_stmt_set */ + 2, /* field[2] = sqlstmt */ + 6, /* field[6] = strict */ + 7, /* field[7] = target */ }; -static const ProtobufCIntRange pg_query__scan_token__number_ranges[2 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_execsql__number_ranges[1 + 1] = { { 1, 0 }, - { 4, 2 }, - { 0, 4 } + { 0, 8 } }; -const ProtobufCMessageDescriptor pg_query__scan_token__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_execsql__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.ScanToken", - "ScanToken", - "PgQuery__ScanToken", + "pg_query.PLpgSQL_stmt_execsql", + "PLpgSQLStmtExecsql", + "PgQuery__PLpgSQLStmtExecsql", "pg_query", - sizeof(PgQuery__ScanToken), - 4, - pg_query__scan_token__field_descriptors, - pg_query__scan_token__field_indices_by_name, - 2, pg_query__scan_token__number_ranges, - (ProtobufCMessageInit) pg_query__scan_token__init, + sizeof(PgQuery__PLpgSQLStmtExecsql), + 8, + pg_query__plpg_sql_stmt_execsql__field_descriptors, + pg_query__plpg_sql_stmt_execsql__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_execsql__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_execsql__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__summary_result__table__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_stmt_dynexecute__field_descriptors[7] = { { - "name", + "cmd_type", 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Table, name), + offsetof(PgQuery__PLpgSQLStmtDynexecute, cmd_type), + &pg_query__plpg_sql_stmt_type__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "schema_name", + "lineno", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Table, schema_name), + offsetof(PgQuery__PLpgSQLStmtDynexecute, lineno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_name", + "query", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Table, table_name), + offsetof(PgQuery__PLpgSQLStmtDynexecute, query), + &pg_query__plpg_sql_expr__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "context", + "into", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Table, context), - &pg_query__summary_result__context__descriptor, + offsetof(PgQuery__PLpgSQLStmtDynexecute, into), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__summary_result__table__field_indices_by_name[] = { - 3, /* field[3] = context */ - 0, /* field[0] = name */ - 1, /* field[1] = schema_name */ - 2, /* field[2] = table_name */ -}; -static const ProtobufCIntRange pg_query__summary_result__table__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__summary_result__table__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SummaryResult.Table", - "Table", - "PgQuery__SummaryResult__Table", - "pg_query", - sizeof(PgQuery__SummaryResult__Table), - 4, - pg_query__summary_result__table__field_descriptors, - pg_query__summary_result__table__field_indices_by_name, - 1, pg_query__summary_result__table__number_ranges, - (ProtobufCMessageInit) pg_query__summary_result__table__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__summary_result__aliases_entry__field_descriptors[2] = -{ { - "key", - 1, + "strict", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__AliasesEntry, key), + offsetof(PgQuery__PLpgSQLStmtDynexecute, strict), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "value", - 2, + "target", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__AliasesEntry, value), + offsetof(PgQuery__PLpgSQLStmtDynexecute, target), + &pg_query__plpg_sql_datum__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "params", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(PgQuery__PLpgSQLStmtDynexecute, n_params), + offsetof(PgQuery__PLpgSQLStmtDynexecute, params), + &pg_query__plpg_sql_expr__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__summary_result__aliases_entry__field_indices_by_name[] = { - 0, /* field[0] = key */ - 1, /* field[1] = value */ +static const unsigned pg_query__plpg_sql_stmt_dynexecute__field_indices_by_name[] = { + 0, /* field[0] = cmd_type */ + 3, /* field[3] = into */ + 1, /* field[1] = lineno */ + 6, /* field[6] = params */ + 2, /* field[2] = query */ + 4, /* field[4] = strict */ + 5, /* field[5] = target */ }; -static const ProtobufCIntRange pg_query__summary_result__aliases_entry__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_stmt_dynexecute__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 7 } }; -const ProtobufCMessageDescriptor pg_query__summary_result__aliases_entry__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_dynexecute__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SummaryResult.AliasesEntry", - "AliasesEntry", - "PgQuery__SummaryResult__AliasesEntry", + "pg_query.PLpgSQL_stmt_dynexecute", + "PLpgSQLStmtDynexecute", + "PgQuery__PLpgSQLStmtDynexecute", "pg_query", - sizeof(PgQuery__SummaryResult__AliasesEntry), - 2, - pg_query__summary_result__aliases_entry__field_descriptors, - pg_query__summary_result__aliases_entry__field_indices_by_name, - 1, pg_query__summary_result__aliases_entry__number_ranges, - (ProtobufCMessageInit) pg_query__summary_result__aliases_entry__init, + sizeof(PgQuery__PLpgSQLStmtDynexecute), + 7, + pg_query__plpg_sql_stmt_dynexecute__field_descriptors, + pg_query__plpg_sql_stmt_dynexecute__field_indices_by_name, + 1, pg_query__plpg_sql_stmt_dynexecute__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_stmt_dynexecute__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor pg_query__summary_result__function__field_descriptors[4] = +static const ProtobufCFieldDescriptor pg_query__plpg_sql_function__field_descriptors[12] = { { - "name", + "fn_signature", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Function, name), + offsetof(PgQuery__PLpgSQLFunction, fn_signature), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "function_name", + "fn_is_trigger", 2, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Function, function_name), + offsetof(PgQuery__PLpgSQLFunction, fn_is_trigger), + &pg_query__plpg_sql_trigtype__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "schema_name", + "out_param_varno", 3, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Function, schema_name), + offsetof(PgQuery__PLpgSQLFunction, out_param_varno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "context", + "found_varno", 4, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__Function, context), - &pg_query__summary_result__context__descriptor, + offsetof(PgQuery__PLpgSQLFunction, found_varno), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__summary_result__function__field_indices_by_name[] = { - 3, /* field[3] = context */ - 1, /* field[1] = function_name */ - 0, /* field[0] = name */ - 2, /* field[2] = schema_name */ -}; -static const ProtobufCIntRange pg_query__summary_result__function__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor pg_query__summary_result__function__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SummaryResult.Function", - "Function", - "PgQuery__SummaryResult__Function", - "pg_query", - sizeof(PgQuery__SummaryResult__Function), - 4, - pg_query__summary_result__function__field_descriptors, - pg_query__summary_result__function__field_indices_by_name, - 1, pg_query__summary_result__function__number_ranges, - (ProtobufCMessageInit) pg_query__summary_result__function__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor pg_query__summary_result__filter_column__field_descriptors[3] = -{ { - "schema_name", - 1, + "new_varno", + 5, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__FilterColumn, schema_name), + offsetof(PgQuery__PLpgSQLFunction, new_varno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "table_name", - 2, + "old_varno", + 6, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__FilterColumn, table_name), + offsetof(PgQuery__PLpgSQLFunction, old_varno), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "column", - 3, + "resolve_option", + 7, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult__FilterColumn, column), + offsetof(PgQuery__PLpgSQLFunction, resolve_option), + &pg_query__plpg_sql_resolve_option__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, -}; -static const unsigned pg_query__summary_result__filter_column__field_indices_by_name[] = { - 2, /* field[2] = column */ - 0, /* field[0] = schema_name */ - 1, /* field[1] = table_name */ -}; -static const ProtobufCIntRange pg_query__summary_result__filter_column__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor pg_query__summary_result__filter_column__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SummaryResult.FilterColumn", - "FilterColumn", - "PgQuery__SummaryResult__FilterColumn", - "pg_query", - sizeof(PgQuery__SummaryResult__FilterColumn), - 3, - pg_query__summary_result__filter_column__field_descriptors, - pg_query__summary_result__filter_column__field_indices_by_name, - 1, pg_query__summary_result__filter_column__number_ranges, - (ProtobufCMessageInit) pg_query__summary_result__filter_column__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCEnumValue pg_query__summary_result__context__enum_values_by_number[5] = -{ - { "None", "PG_QUERY__SUMMARY_RESULT__CONTEXT__None", 0 }, - { "Select", "PG_QUERY__SUMMARY_RESULT__CONTEXT__Select", 1 }, - { "DML", "PG_QUERY__SUMMARY_RESULT__CONTEXT__DML", 2 }, - { "DDL", "PG_QUERY__SUMMARY_RESULT__CONTEXT__DDL", 3 }, - { "Call", "PG_QUERY__SUMMARY_RESULT__CONTEXT__Call", 4 }, -}; -static const ProtobufCIntRange pg_query__summary_result__context__value_ranges[] = { -{0, 0},{0, 5} -}; -static const ProtobufCEnumValueIndex pg_query__summary_result__context__enum_values_by_name[5] = -{ - { "Call", 4 }, - { "DDL", 3 }, - { "DML", 2 }, - { "None", 0 }, - { "Select", 1 }, -}; -const ProtobufCEnumDescriptor pg_query__summary_result__context__descriptor = -{ - PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, - "pg_query.SummaryResult.Context", - "Context", - "PgQuery__SummaryResult__Context", - "pg_query", - 5, - pg_query__summary_result__context__enum_values_by_number, - 5, - pg_query__summary_result__context__enum_values_by_name, - 1, - pg_query__summary_result__context__value_ranges, - NULL,NULL,NULL,NULL /* reserved[1234] */ -}; -static const ProtobufCFieldDescriptor pg_query__summary_result__field_descriptors[7] = -{ { - "tables", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SummaryResult, n_tables), - offsetof(PgQuery__SummaryResult, tables), - &pg_query__summary_result__table__descriptor, + "print_strict_params", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLFunction, print_strict_params), NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "aliases", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SummaryResult, n_aliases), - offsetof(PgQuery__SummaryResult, aliases), - &pg_query__summary_result__aliases_entry__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "cte_names", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_STRING, - offsetof(PgQuery__SummaryResult, n_cte_names), - offsetof(PgQuery__SummaryResult, cte_names), + "extra_warnings", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLFunction, extra_warnings), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "functions", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SummaryResult, n_functions), - offsetof(PgQuery__SummaryResult, functions), - &pg_query__summary_result__function__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "filter_columns", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(PgQuery__SummaryResult, n_filter_columns), - offsetof(PgQuery__SummaryResult, filter_columns), - &pg_query__summary_result__filter_column__descriptor, + "extra_errors", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLFunction, extra_errors), + NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "statement_types", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_STRING, - offsetof(PgQuery__SummaryResult, n_statement_types), - offsetof(PgQuery__SummaryResult, statement_types), + "ndatums", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(PgQuery__PLpgSQLFunction, ndatums), + NULL, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "truncated_query", - 7, + "action", + 12, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, + PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(PgQuery__SummaryResult, truncated_query), + offsetof(PgQuery__PLpgSQLFunction, action), + &pg_query__plpg_sql_stmt_block__descriptor, NULL, - &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned pg_query__summary_result__field_indices_by_name[] = { - 1, /* field[1] = aliases */ - 2, /* field[2] = cte_names */ - 4, /* field[4] = filter_columns */ - 3, /* field[3] = functions */ - 5, /* field[5] = statement_types */ - 0, /* field[0] = tables */ - 6, /* field[6] = truncated_query */ +static const unsigned pg_query__plpg_sql_function__field_indices_by_name[] = { + 11, /* field[11] = action */ + 9, /* field[9] = extra_errors */ + 8, /* field[8] = extra_warnings */ + 1, /* field[1] = fn_is_trigger */ + 0, /* field[0] = fn_signature */ + 3, /* field[3] = found_varno */ + 10, /* field[10] = ndatums */ + 4, /* field[4] = new_varno */ + 5, /* field[5] = old_varno */ + 2, /* field[2] = out_param_varno */ + 7, /* field[7] = print_strict_params */ + 6, /* field[6] = resolve_option */ }; -static const ProtobufCIntRange pg_query__summary_result__number_ranges[1 + 1] = +static const ProtobufCIntRange pg_query__plpg_sql_function__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 12 } }; -const ProtobufCMessageDescriptor pg_query__summary_result__descriptor = +const ProtobufCMessageDescriptor pg_query__plpg_sql_function__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "pg_query.SummaryResult", - "SummaryResult", - "PgQuery__SummaryResult", + "pg_query.PLpgSQL_function", + "PLpgSQLFunction", + "PgQuery__PLpgSQLFunction", "pg_query", - sizeof(PgQuery__SummaryResult), - 7, - pg_query__summary_result__field_descriptors, - pg_query__summary_result__field_indices_by_name, - 1, pg_query__summary_result__number_ranges, - (ProtobufCMessageInit) pg_query__summary_result__init, + sizeof(PgQuery__PLpgSQLFunction), + 12, + pg_query__plpg_sql_function__field_descriptors, + pg_query__plpg_sql_function__field_indices_by_name, + 1, pg_query__plpg_sql_function__number_ranges, + (ProtobufCMessageInit) pg_query__plpg_sql_function__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue pg_query__query_source__enum_values_by_number[6] = @@ -44997,3 +51341,425 @@ const ProtobufCEnumDescriptor pg_query__token__descriptor = pg_query__token__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; +static const ProtobufCEnumValue pg_query__plpg_sql_nsitem_type__enum_values_by_number[4] = +{ + { "P__LPG_SQL_NSITEM_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_NSITEM_TYPE__P__LPG_SQL_NSITEM_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_NSTYPE_LABEL", "PG_QUERY__PLPG_SQL_NSITEM_TYPE__PLPGSQL_NSTYPE_LABEL", 1 }, + { "PLPGSQL_NSTYPE_VAR", "PG_QUERY__PLPG_SQL_NSITEM_TYPE__PLPGSQL_NSTYPE_VAR", 2 }, + { "PLPGSQL_NSTYPE_REC", "PG_QUERY__PLPG_SQL_NSITEM_TYPE__PLPGSQL_NSTYPE_REC", 3 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_nsitem_type__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_nsitem_type__enum_values_by_name[4] = +{ + { "PLPGSQL_NSTYPE_LABEL", 1 }, + { "PLPGSQL_NSTYPE_REC", 3 }, + { "PLPGSQL_NSTYPE_VAR", 2 }, + { "P__LPG_SQL_NSITEM_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_nsitem_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_nsitem_type", + "PLpgSQL_nsitem_type", + "PgQuery__PLpgSQLNsitemType", + "pg_query", + 4, + pg_query__plpg_sql_nsitem_type__enum_values_by_number, + 4, + pg_query__plpg_sql_nsitem_type__enum_values_by_name, + 1, + pg_query__plpg_sql_nsitem_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_label_type__enum_values_by_number[4] = +{ + { "P__LPG_SQL_LABEL_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_LABEL_TYPE__P__LPG_SQL_LABEL_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_LABEL_BLOCK", "PG_QUERY__PLPG_SQL_LABEL_TYPE__PLPGSQL_LABEL_BLOCK", 1 }, + { "PLPGSQL_LABEL_LOOP", "PG_QUERY__PLPG_SQL_LABEL_TYPE__PLPGSQL_LABEL_LOOP", 2 }, + { "PLPGSQL_LABEL_OTHER", "PG_QUERY__PLPG_SQL_LABEL_TYPE__PLPGSQL_LABEL_OTHER", 3 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_label_type__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_label_type__enum_values_by_name[4] = +{ + { "PLPGSQL_LABEL_BLOCK", 1 }, + { "PLPGSQL_LABEL_LOOP", 2 }, + { "PLPGSQL_LABEL_OTHER", 3 }, + { "P__LPG_SQL_LABEL_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_label_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_label_type", + "PLpgSQL_label_type", + "PgQuery__PLpgSQLLabelType", + "pg_query", + 4, + pg_query__plpg_sql_label_type__enum_values_by_number, + 4, + pg_query__plpg_sql_label_type__enum_values_by_name, + 1, + pg_query__plpg_sql_label_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_datum_type__enum_values_by_number[6] = +{ + { "P__LPG_SQL_DATUM_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_DATUM_TYPE__P__LPG_SQL_DATUM_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_DTYPE_VAR", "PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_VAR", 1 }, + { "PLPGSQL_DTYPE_ROW", "PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_ROW", 2 }, + { "PLPGSQL_DTYPE_REC", "PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_REC", 3 }, + { "PLPGSQL_DTYPE_RECFIELD", "PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_RECFIELD", 4 }, + { "PLPGSQL_DTYPE_PROMISE", "PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_PROMISE", 5 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_datum_type__value_ranges[] = { +{0, 0},{0, 6} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_datum_type__enum_values_by_name[6] = +{ + { "PLPGSQL_DTYPE_PROMISE", 5 }, + { "PLPGSQL_DTYPE_REC", 3 }, + { "PLPGSQL_DTYPE_RECFIELD", 4 }, + { "PLPGSQL_DTYPE_ROW", 2 }, + { "PLPGSQL_DTYPE_VAR", 1 }, + { "P__LPG_SQL_DATUM_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_datum_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_datum_type", + "PLpgSQL_datum_type", + "PgQuery__PLpgSQLDatumType", + "pg_query", + 6, + pg_query__plpg_sql_datum_type__enum_values_by_number, + 6, + pg_query__plpg_sql_datum_type__enum_values_by_name, + 1, + pg_query__plpg_sql_datum_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_promise_type__enum_values_by_number[13] = +{ + { "P__LPG_SQL_PROMISE_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__P__LPG_SQL_PROMISE_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_PROMISE_NONE", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_NONE", 1 }, + { "PLPGSQL_PROMISE_TG_NAME", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_NAME", 2 }, + { "PLPGSQL_PROMISE_TG_WHEN", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_WHEN", 3 }, + { "PLPGSQL_PROMISE_TG_LEVEL", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_LEVEL", 4 }, + { "PLPGSQL_PROMISE_TG_OP", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_OP", 5 }, + { "PLPGSQL_PROMISE_TG_RELID", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_RELID", 6 }, + { "PLPGSQL_PROMISE_TG_TABLE_NAME", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_TABLE_NAME", 7 }, + { "PLPGSQL_PROMISE_TG_TABLE_SCHEMA", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_TABLE_SCHEMA", 8 }, + { "PLPGSQL_PROMISE_TG_NARGS", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_NARGS", 9 }, + { "PLPGSQL_PROMISE_TG_ARGV", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_ARGV", 10 }, + { "PLPGSQL_PROMISE_TG_EVENT", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_EVENT", 11 }, + { "PLPGSQL_PROMISE_TG_TAG", "PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_TAG", 12 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_promise_type__value_ranges[] = { +{0, 0},{0, 13} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_promise_type__enum_values_by_name[13] = +{ + { "PLPGSQL_PROMISE_NONE", 1 }, + { "PLPGSQL_PROMISE_TG_ARGV", 10 }, + { "PLPGSQL_PROMISE_TG_EVENT", 11 }, + { "PLPGSQL_PROMISE_TG_LEVEL", 4 }, + { "PLPGSQL_PROMISE_TG_NAME", 2 }, + { "PLPGSQL_PROMISE_TG_NARGS", 9 }, + { "PLPGSQL_PROMISE_TG_OP", 5 }, + { "PLPGSQL_PROMISE_TG_RELID", 6 }, + { "PLPGSQL_PROMISE_TG_TABLE_NAME", 7 }, + { "PLPGSQL_PROMISE_TG_TABLE_SCHEMA", 8 }, + { "PLPGSQL_PROMISE_TG_TAG", 12 }, + { "PLPGSQL_PROMISE_TG_WHEN", 3 }, + { "P__LPG_SQL_PROMISE_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_promise_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_promise_type", + "PLpgSQL_promise_type", + "PgQuery__PLpgSQLPromiseType", + "pg_query", + 13, + pg_query__plpg_sql_promise_type__enum_values_by_number, + 13, + pg_query__plpg_sql_promise_type__enum_values_by_name, + 1, + pg_query__plpg_sql_promise_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_type_type__enum_values_by_number[4] = +{ + { "P__LPG_SQL_TYPE_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_TYPE_TYPE__P__LPG_SQL_TYPE_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_TTYPE_SCALAR", "PG_QUERY__PLPG_SQL_TYPE_TYPE__PLPGSQL_TTYPE_SCALAR", 1 }, + { "PLPGSQL_TTYPE_REC", "PG_QUERY__PLPG_SQL_TYPE_TYPE__PLPGSQL_TTYPE_REC", 2 }, + { "PLPGSQL_TTYPE_PSEUDO", "PG_QUERY__PLPG_SQL_TYPE_TYPE__PLPGSQL_TTYPE_PSEUDO", 3 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_type_type__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_type_type__enum_values_by_name[4] = +{ + { "PLPGSQL_TTYPE_PSEUDO", 3 }, + { "PLPGSQL_TTYPE_REC", 2 }, + { "PLPGSQL_TTYPE_SCALAR", 1 }, + { "P__LPG_SQL_TYPE_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_type_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_type_type", + "PLpgSQL_type_type", + "PgQuery__PLpgSQLTypeType", + "pg_query", + 4, + pg_query__plpg_sql_type_type__enum_values_by_number, + 4, + pg_query__plpg_sql_type_type__enum_values_by_name, + 1, + pg_query__plpg_sql_type_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_stmt_type__enum_values_by_number[28] = +{ + { "P__LPG_SQL_STMT_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_STMT_BLOCK", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_BLOCK", 1 }, + { "PLPGSQL_STMT_ASSIGN", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_ASSIGN", 2 }, + { "PLPGSQL_STMT_IF", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_IF", 3 }, + { "PLPGSQL_STMT_CASE", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_CASE", 4 }, + { "PLPGSQL_STMT_LOOP", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_LOOP", 5 }, + { "PLPGSQL_STMT_WHILE", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_WHILE", 6 }, + { "PLPGSQL_STMT_FORI", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FORI", 7 }, + { "PLPGSQL_STMT_FORS", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FORS", 8 }, + { "PLPGSQL_STMT_FORC", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FORC", 9 }, + { "PLPGSQL_STMT_FOREACH_A", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FOREACH_A", 10 }, + { "PLPGSQL_STMT_EXIT", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_EXIT", 11 }, + { "PLPGSQL_STMT_RETURN", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RETURN", 12 }, + { "PLPGSQL_STMT_RETURN_NEXT", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RETURN_NEXT", 13 }, + { "PLPGSQL_STMT_RETURN_QUERY", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RETURN_QUERY", 14 }, + { "PLPGSQL_STMT_RAISE", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RAISE", 15 }, + { "PLPGSQL_STMT_ASSERT", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_ASSERT", 16 }, + { "PLPGSQL_STMT_EXECSQL", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_EXECSQL", 17 }, + { "PLPGSQL_STMT_DYNEXECUTE", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_DYNEXECUTE", 18 }, + { "PLPGSQL_STMT_DYNFORS", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_DYNFORS", 19 }, + { "PLPGSQL_STMT_GETDIAG", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_GETDIAG", 20 }, + { "PLPGSQL_STMT_OPEN", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_OPEN", 21 }, + { "PLPGSQL_STMT_FETCH", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FETCH", 22 }, + { "PLPGSQL_STMT_CLOSE", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_CLOSE", 23 }, + { "PLPGSQL_STMT_PERFORM", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_PERFORM", 24 }, + { "PLPGSQL_STMT_CALL", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_CALL", 25 }, + { "PLPGSQL_STMT_COMMIT", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_COMMIT", 26 }, + { "PLPGSQL_STMT_ROLLBACK", "PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_ROLLBACK", 27 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_stmt_type__value_ranges[] = { +{0, 0},{0, 28} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_stmt_type__enum_values_by_name[28] = +{ + { "PLPGSQL_STMT_ASSERT", 16 }, + { "PLPGSQL_STMT_ASSIGN", 2 }, + { "PLPGSQL_STMT_BLOCK", 1 }, + { "PLPGSQL_STMT_CALL", 25 }, + { "PLPGSQL_STMT_CASE", 4 }, + { "PLPGSQL_STMT_CLOSE", 23 }, + { "PLPGSQL_STMT_COMMIT", 26 }, + { "PLPGSQL_STMT_DYNEXECUTE", 18 }, + { "PLPGSQL_STMT_DYNFORS", 19 }, + { "PLPGSQL_STMT_EXECSQL", 17 }, + { "PLPGSQL_STMT_EXIT", 11 }, + { "PLPGSQL_STMT_FETCH", 22 }, + { "PLPGSQL_STMT_FORC", 9 }, + { "PLPGSQL_STMT_FOREACH_A", 10 }, + { "PLPGSQL_STMT_FORI", 7 }, + { "PLPGSQL_STMT_FORS", 8 }, + { "PLPGSQL_STMT_GETDIAG", 20 }, + { "PLPGSQL_STMT_IF", 3 }, + { "PLPGSQL_STMT_LOOP", 5 }, + { "PLPGSQL_STMT_OPEN", 21 }, + { "PLPGSQL_STMT_PERFORM", 24 }, + { "PLPGSQL_STMT_RAISE", 15 }, + { "PLPGSQL_STMT_RETURN", 12 }, + { "PLPGSQL_STMT_RETURN_NEXT", 13 }, + { "PLPGSQL_STMT_RETURN_QUERY", 14 }, + { "PLPGSQL_STMT_ROLLBACK", 27 }, + { "PLPGSQL_STMT_WHILE", 6 }, + { "P__LPG_SQL_STMT_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_stmt_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_stmt_type", + "PLpgSQL_stmt_type", + "PgQuery__PLpgSQLStmtType", + "pg_query", + 28, + pg_query__plpg_sql_stmt_type__enum_values_by_number, + 28, + pg_query__plpg_sql_stmt_type__enum_values_by_name, + 1, + pg_query__plpg_sql_stmt_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_getdiag_kind__enum_values_by_number[14] = +{ + { "P__LPG_SQL_GETDIAG_KIND_UNDEFINED", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__P__LPG_SQL_GETDIAG_KIND_UNDEFINED", 0 }, + { "PLPGSQL_GETDIAG_ROW_COUNT", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ROW_COUNT", 1 }, + { "PLPGSQL_GETDIAG_ROUTINE_OID", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ROUTINE_OID", 2 }, + { "PLPGSQL_GETDIAG_CONTEXT", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_CONTEXT", 3 }, + { "PLPGSQL_GETDIAG_ERROR_CONTEXT", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ERROR_CONTEXT", 4 }, + { "PLPGSQL_GETDIAG_ERROR_DETAIL", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ERROR_DETAIL", 5 }, + { "PLPGSQL_GETDIAG_ERROR_HINT", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ERROR_HINT", 6 }, + { "PLPGSQL_GETDIAG_RETURNED_SQLSTATE", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_RETURNED_SQLSTATE", 7 }, + { "PLPGSQL_GETDIAG_COLUMN_NAME", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_COLUMN_NAME", 8 }, + { "PLPGSQL_GETDIAG_CONSTRAINT_NAME", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_CONSTRAINT_NAME", 9 }, + { "PLPGSQL_GETDIAG_DATATYPE_NAME", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_DATATYPE_NAME", 10 }, + { "PLPGSQL_GETDIAG_MESSAGE_TEXT", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_MESSAGE_TEXT", 11 }, + { "PLPGSQL_GETDIAG_TABLE_NAME", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_TABLE_NAME", 12 }, + { "PLPGSQL_GETDIAG_SCHEMA_NAME", "PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_SCHEMA_NAME", 13 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_getdiag_kind__value_ranges[] = { +{0, 0},{0, 14} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_getdiag_kind__enum_values_by_name[14] = +{ + { "PLPGSQL_GETDIAG_COLUMN_NAME", 8 }, + { "PLPGSQL_GETDIAG_CONSTRAINT_NAME", 9 }, + { "PLPGSQL_GETDIAG_CONTEXT", 3 }, + { "PLPGSQL_GETDIAG_DATATYPE_NAME", 10 }, + { "PLPGSQL_GETDIAG_ERROR_CONTEXT", 4 }, + { "PLPGSQL_GETDIAG_ERROR_DETAIL", 5 }, + { "PLPGSQL_GETDIAG_ERROR_HINT", 6 }, + { "PLPGSQL_GETDIAG_MESSAGE_TEXT", 11 }, + { "PLPGSQL_GETDIAG_RETURNED_SQLSTATE", 7 }, + { "PLPGSQL_GETDIAG_ROUTINE_OID", 2 }, + { "PLPGSQL_GETDIAG_ROW_COUNT", 1 }, + { "PLPGSQL_GETDIAG_SCHEMA_NAME", 13 }, + { "PLPGSQL_GETDIAG_TABLE_NAME", 12 }, + { "P__LPG_SQL_GETDIAG_KIND_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_getdiag_kind__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_getdiag_kind", + "PLpgSQL_getdiag_kind", + "PgQuery__PLpgSQLGetdiagKind", + "pg_query", + 14, + pg_query__plpg_sql_getdiag_kind__enum_values_by_number, + 14, + pg_query__plpg_sql_getdiag_kind__enum_values_by_name, + 1, + pg_query__plpg_sql_getdiag_kind__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_raise_option_type__enum_values_by_number[10] = +{ + { "P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED", 0 }, + { "PLPGSQL_RAISEOPTION_ERRCODE", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_ERRCODE", 1 }, + { "PLPGSQL_RAISEOPTION_MESSAGE", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_MESSAGE", 2 }, + { "PLPGSQL_RAISEOPTION_DETAIL", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_DETAIL", 3 }, + { "PLPGSQL_RAISEOPTION_HINT", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_HINT", 4 }, + { "PLPGSQL_RAISEOPTION_COLUMN", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_COLUMN", 5 }, + { "PLPGSQL_RAISEOPTION_CONSTRAINT", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_CONSTRAINT", 6 }, + { "PLPGSQL_RAISEOPTION_DATATYPE", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_DATATYPE", 7 }, + { "PLPGSQL_RAISEOPTION_TABLE", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_TABLE", 8 }, + { "PLPGSQL_RAISEOPTION_SCHEMA", "PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_SCHEMA", 9 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_raise_option_type__value_ranges[] = { +{0, 0},{0, 10} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_raise_option_type__enum_values_by_name[10] = +{ + { "PLPGSQL_RAISEOPTION_COLUMN", 5 }, + { "PLPGSQL_RAISEOPTION_CONSTRAINT", 6 }, + { "PLPGSQL_RAISEOPTION_DATATYPE", 7 }, + { "PLPGSQL_RAISEOPTION_DETAIL", 3 }, + { "PLPGSQL_RAISEOPTION_ERRCODE", 1 }, + { "PLPGSQL_RAISEOPTION_HINT", 4 }, + { "PLPGSQL_RAISEOPTION_MESSAGE", 2 }, + { "PLPGSQL_RAISEOPTION_SCHEMA", 9 }, + { "PLPGSQL_RAISEOPTION_TABLE", 8 }, + { "P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_raise_option_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_raise_option_type", + "PLpgSQL_raise_option_type", + "PgQuery__PLpgSQLRaiseOptionType", + "pg_query", + 10, + pg_query__plpg_sql_raise_option_type__enum_values_by_number, + 10, + pg_query__plpg_sql_raise_option_type__enum_values_by_name, + 1, + pg_query__plpg_sql_raise_option_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_resolve_option__enum_values_by_number[4] = +{ + { "P__LPG_SQL_RESOLVE_OPTION_UNDEFINED", "PG_QUERY__PLPG_SQL_RESOLVE_OPTION__P__LPG_SQL_RESOLVE_OPTION_UNDEFINED", 0 }, + { "PLPGSQL_RESOLVE_ERROR", "PG_QUERY__PLPG_SQL_RESOLVE_OPTION__PLPGSQL_RESOLVE_ERROR", 1 }, + { "PLPGSQL_RESOLVE_VARIABLE", "PG_QUERY__PLPG_SQL_RESOLVE_OPTION__PLPGSQL_RESOLVE_VARIABLE", 2 }, + { "PLPGSQL_RESOLVE_COLUMN", "PG_QUERY__PLPG_SQL_RESOLVE_OPTION__PLPGSQL_RESOLVE_COLUMN", 3 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_resolve_option__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_resolve_option__enum_values_by_name[4] = +{ + { "PLPGSQL_RESOLVE_COLUMN", 3 }, + { "PLPGSQL_RESOLVE_ERROR", 1 }, + { "PLPGSQL_RESOLVE_VARIABLE", 2 }, + { "P__LPG_SQL_RESOLVE_OPTION_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_resolve_option__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_resolve_option", + "PLpgSQL_resolve_option", + "PgQuery__PLpgSQLResolveOption", + "pg_query", + 4, + pg_query__plpg_sql_resolve_option__enum_values_by_number, + 4, + pg_query__plpg_sql_resolve_option__enum_values_by_name, + 1, + pg_query__plpg_sql_resolve_option__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue pg_query__plpg_sql_trigtype__enum_values_by_number[4] = +{ + { "P__LPG_SQL_TRIGTYPE_UNDEFINED", "PG_QUERY__PLPG_SQL_TRIGTYPE__P__LPG_SQL_TRIGTYPE_UNDEFINED", 0 }, + { "PLPGSQL_DML_TRIGGER", "PG_QUERY__PLPG_SQL_TRIGTYPE__PLPGSQL_DML_TRIGGER", 1 }, + { "PLPGSQL_EVENT_TRIGGER", "PG_QUERY__PLPG_SQL_TRIGTYPE__PLPGSQL_EVENT_TRIGGER", 2 }, + { "PLPGSQL_NOT_TRIGGER", "PG_QUERY__PLPG_SQL_TRIGTYPE__PLPGSQL_NOT_TRIGGER", 3 }, +}; +static const ProtobufCIntRange pg_query__plpg_sql_trigtype__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex pg_query__plpg_sql_trigtype__enum_values_by_name[4] = +{ + { "PLPGSQL_DML_TRIGGER", 1 }, + { "PLPGSQL_EVENT_TRIGGER", 2 }, + { "PLPGSQL_NOT_TRIGGER", 3 }, + { "P__LPG_SQL_TRIGTYPE_UNDEFINED", 0 }, +}; +const ProtobufCEnumDescriptor pg_query__plpg_sql_trigtype__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "pg_query.PLpgSQL_trigtype", + "PLpgSQL_trigtype", + "PgQuery__PLpgSQLTrigtype", + "pg_query", + 4, + pg_query__plpg_sql_trigtype__enum_values_by_number, + 4, + pg_query__plpg_sql_trigtype__enum_values_by_name, + 1, + pg_query__plpg_sql_trigtype__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/protobuf/pg_query.pb-c.h b/protobuf/pg_query.pb-c.h index 388e597c2..ee19c4d71 100644 --- a/protobuf/pg_query.pb-c.h +++ b/protobuf/pg_query.pb-c.h @@ -10,7 +10,7 @@ PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer version of protobuf-c which is incompatible with your libprotobuf-c headers. Please update your headers. -#elif 1005001 < PROTOBUF_C_MIN_COMPILER_VERSION +#elif 1005002 < PROTOBUF_C_MIN_COMPILER_VERSION # error This file was generated by an older version of protobuf-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protobuf-c. #endif @@ -292,6 +292,50 @@ typedef struct PgQuery__SummaryResult__Table PgQuery__SummaryResult__Table; typedef struct PgQuery__SummaryResult__AliasesEntry PgQuery__SummaryResult__AliasesEntry; typedef struct PgQuery__SummaryResult__Function PgQuery__SummaryResult__Function; typedef struct PgQuery__SummaryResult__FilterColumn PgQuery__SummaryResult__FilterColumn; +typedef struct PgQuery__PLpgSQLParseResult PgQuery__PLpgSQLParseResult; +typedef struct PgQuery__PLpgSQLStmt PgQuery__PLpgSQLStmt; +typedef struct PgQuery__PLpgSQLDatum PgQuery__PLpgSQLDatum; +typedef struct PgQuery__PLpgSQLType PgQuery__PLpgSQLType; +typedef struct PgQuery__PLpgSQLExpr PgQuery__PLpgSQLExpr; +typedef struct PgQuery__PLpgSQLVar PgQuery__PLpgSQLVar; +typedef struct PgQuery__PLpgSQLRow PgQuery__PLpgSQLRow; +typedef struct PgQuery__PLpgSQLRec PgQuery__PLpgSQLRec; +typedef struct PgQuery__PLpgSQLRecfield PgQuery__PLpgSQLRecfield; +typedef struct PgQuery__PLpgSQLCondition PgQuery__PLpgSQLCondition; +typedef struct PgQuery__PLpgSQLExceptionBlock PgQuery__PLpgSQLExceptionBlock; +typedef struct PgQuery__PLpgSQLException PgQuery__PLpgSQLException; +typedef struct PgQuery__PLpgSQLStmtBlock PgQuery__PLpgSQLStmtBlock; +typedef struct PgQuery__PLpgSQLStmtAssign PgQuery__PLpgSQLStmtAssign; +typedef struct PgQuery__PLpgSQLStmtPerform PgQuery__PLpgSQLStmtPerform; +typedef struct PgQuery__PLpgSQLStmtCall PgQuery__PLpgSQLStmtCall; +typedef struct PgQuery__PLpgSQLStmtCommit PgQuery__PLpgSQLStmtCommit; +typedef struct PgQuery__PLpgSQLStmtRollback PgQuery__PLpgSQLStmtRollback; +typedef struct PgQuery__PLpgSQLDiagItem PgQuery__PLpgSQLDiagItem; +typedef struct PgQuery__PLpgSQLStmtGetdiag PgQuery__PLpgSQLStmtGetdiag; +typedef struct PgQuery__PLpgSQLStmtIf PgQuery__PLpgSQLStmtIf; +typedef struct PgQuery__PLpgSQLIfElsif PgQuery__PLpgSQLIfElsif; +typedef struct PgQuery__PLpgSQLStmtCase PgQuery__PLpgSQLStmtCase; +typedef struct PgQuery__PLpgSQLCaseWhen PgQuery__PLpgSQLCaseWhen; +typedef struct PgQuery__PLpgSQLStmtLoop PgQuery__PLpgSQLStmtLoop; +typedef struct PgQuery__PLpgSQLStmtWhile PgQuery__PLpgSQLStmtWhile; +typedef struct PgQuery__PLpgSQLStmtFori PgQuery__PLpgSQLStmtFori; +typedef struct PgQuery__PLpgSQLStmtFors PgQuery__PLpgSQLStmtFors; +typedef struct PgQuery__PLpgSQLStmtForc PgQuery__PLpgSQLStmtForc; +typedef struct PgQuery__PLpgSQLStmtDynfors PgQuery__PLpgSQLStmtDynfors; +typedef struct PgQuery__PLpgSQLStmtForeachA PgQuery__PLpgSQLStmtForeachA; +typedef struct PgQuery__PLpgSQLStmtOpen PgQuery__PLpgSQLStmtOpen; +typedef struct PgQuery__PLpgSQLStmtFetch PgQuery__PLpgSQLStmtFetch; +typedef struct PgQuery__PLpgSQLStmtClose PgQuery__PLpgSQLStmtClose; +typedef struct PgQuery__PLpgSQLStmtExit PgQuery__PLpgSQLStmtExit; +typedef struct PgQuery__PLpgSQLStmtReturn PgQuery__PLpgSQLStmtReturn; +typedef struct PgQuery__PLpgSQLStmtReturnNext PgQuery__PLpgSQLStmtReturnNext; +typedef struct PgQuery__PLpgSQLStmtReturnQuery PgQuery__PLpgSQLStmtReturnQuery; +typedef struct PgQuery__PLpgSQLStmtRaise PgQuery__PLpgSQLStmtRaise; +typedef struct PgQuery__PLpgSQLRaiseOption PgQuery__PLpgSQLRaiseOption; +typedef struct PgQuery__PLpgSQLStmtAssert PgQuery__PLpgSQLStmtAssert; +typedef struct PgQuery__PLpgSQLStmtExecsql PgQuery__PLpgSQLStmtExecsql; +typedef struct PgQuery__PLpgSQLStmtDynexecute PgQuery__PLpgSQLStmtDynexecute; +typedef struct PgQuery__PLpgSQLFunction PgQuery__PLpgSQLFunction; /* --- enums --- */ @@ -1651,6 +1695,127 @@ typedef enum _PgQuery__Token { PG_QUERY__TOKEN__UMINUS = 778 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__TOKEN) } PgQuery__Token; +typedef enum _PgQuery__PLpgSQLNsitemType { + PG_QUERY__PLPG_SQL_NSITEM_TYPE__P__LPG_SQL_NSITEM_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_NSITEM_TYPE__PLPGSQL_NSTYPE_LABEL = 1, + PG_QUERY__PLPG_SQL_NSITEM_TYPE__PLPGSQL_NSTYPE_VAR = 2, + PG_QUERY__PLPG_SQL_NSITEM_TYPE__PLPGSQL_NSTYPE_REC = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_NSITEM_TYPE) +} PgQuery__PLpgSQLNsitemType; +typedef enum _PgQuery__PLpgSQLLabelType { + PG_QUERY__PLPG_SQL_LABEL_TYPE__P__LPG_SQL_LABEL_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_LABEL_TYPE__PLPGSQL_LABEL_BLOCK = 1, + PG_QUERY__PLPG_SQL_LABEL_TYPE__PLPGSQL_LABEL_LOOP = 2, + PG_QUERY__PLPG_SQL_LABEL_TYPE__PLPGSQL_LABEL_OTHER = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_LABEL_TYPE) +} PgQuery__PLpgSQLLabelType; +typedef enum _PgQuery__PLpgSQLDatumType { + PG_QUERY__PLPG_SQL_DATUM_TYPE__P__LPG_SQL_DATUM_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_VAR = 1, + PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_ROW = 2, + PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_REC = 3, + PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_RECFIELD = 4, + PG_QUERY__PLPG_SQL_DATUM_TYPE__PLPGSQL_DTYPE_PROMISE = 5 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_DATUM_TYPE) +} PgQuery__PLpgSQLDatumType; +typedef enum _PgQuery__PLpgSQLPromiseType { + PG_QUERY__PLPG_SQL_PROMISE_TYPE__P__LPG_SQL_PROMISE_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_NONE = 1, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_NAME = 2, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_WHEN = 3, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_LEVEL = 4, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_OP = 5, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_RELID = 6, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_TABLE_NAME = 7, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_TABLE_SCHEMA = 8, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_NARGS = 9, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_ARGV = 10, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_EVENT = 11, + PG_QUERY__PLPG_SQL_PROMISE_TYPE__PLPGSQL_PROMISE_TG_TAG = 12 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_PROMISE_TYPE) +} PgQuery__PLpgSQLPromiseType; +typedef enum _PgQuery__PLpgSQLTypeType { + PG_QUERY__PLPG_SQL_TYPE_TYPE__P__LPG_SQL_TYPE_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_TYPE_TYPE__PLPGSQL_TTYPE_SCALAR = 1, + PG_QUERY__PLPG_SQL_TYPE_TYPE__PLPGSQL_TTYPE_REC = 2, + PG_QUERY__PLPG_SQL_TYPE_TYPE__PLPGSQL_TTYPE_PSEUDO = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_TYPE_TYPE) +} PgQuery__PLpgSQLTypeType; +typedef enum _PgQuery__PLpgSQLStmtType { + PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_BLOCK = 1, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_ASSIGN = 2, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_IF = 3, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_CASE = 4, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_LOOP = 5, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_WHILE = 6, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FORI = 7, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FORS = 8, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FORC = 9, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FOREACH_A = 10, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_EXIT = 11, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RETURN = 12, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RETURN_NEXT = 13, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RETURN_QUERY = 14, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_RAISE = 15, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_ASSERT = 16, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_EXECSQL = 17, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_DYNEXECUTE = 18, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_DYNFORS = 19, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_GETDIAG = 20, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_OPEN = 21, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_FETCH = 22, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_CLOSE = 23, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_PERFORM = 24, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_CALL = 25, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_COMMIT = 26, + PG_QUERY__PLPG_SQL_STMT_TYPE__PLPGSQL_STMT_ROLLBACK = 27 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_STMT_TYPE) +} PgQuery__PLpgSQLStmtType; +typedef enum _PgQuery__PLpgSQLGetdiagKind { + PG_QUERY__PLPG_SQL_GETDIAG_KIND__P__LPG_SQL_GETDIAG_KIND_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ROW_COUNT = 1, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ROUTINE_OID = 2, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_CONTEXT = 3, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ERROR_CONTEXT = 4, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ERROR_DETAIL = 5, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_ERROR_HINT = 6, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_RETURNED_SQLSTATE = 7, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_COLUMN_NAME = 8, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_CONSTRAINT_NAME = 9, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_DATATYPE_NAME = 10, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_MESSAGE_TEXT = 11, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_TABLE_NAME = 12, + PG_QUERY__PLPG_SQL_GETDIAG_KIND__PLPGSQL_GETDIAG_SCHEMA_NAME = 13 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_GETDIAG_KIND) +} PgQuery__PLpgSQLGetdiagKind; +typedef enum _PgQuery__PLpgSQLRaiseOptionType { + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_ERRCODE = 1, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_MESSAGE = 2, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_DETAIL = 3, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_HINT = 4, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_COLUMN = 5, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_CONSTRAINT = 6, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_DATATYPE = 7, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_TABLE = 8, + PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__PLPGSQL_RAISEOPTION_SCHEMA = 9 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE) +} PgQuery__PLpgSQLRaiseOptionType; +typedef enum _PgQuery__PLpgSQLResolveOption { + PG_QUERY__PLPG_SQL_RESOLVE_OPTION__P__LPG_SQL_RESOLVE_OPTION_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_RESOLVE_OPTION__PLPGSQL_RESOLVE_ERROR = 1, + PG_QUERY__PLPG_SQL_RESOLVE_OPTION__PLPGSQL_RESOLVE_VARIABLE = 2, + PG_QUERY__PLPG_SQL_RESOLVE_OPTION__PLPGSQL_RESOLVE_COLUMN = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_RESOLVE_OPTION) +} PgQuery__PLpgSQLResolveOption; +typedef enum _PgQuery__PLpgSQLTrigtype { + PG_QUERY__PLPG_SQL_TRIGTYPE__P__LPG_SQL_TRIGTYPE_UNDEFINED = 0, + PG_QUERY__PLPG_SQL_TRIGTYPE__PLPGSQL_DML_TRIGGER = 1, + PG_QUERY__PLPG_SQL_TRIGTYPE__PLPGSQL_EVENT_TRIGGER = 2, + PG_QUERY__PLPG_SQL_TRIGTYPE__PLPGSQL_NOT_TRIGGER = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_TRIGTYPE) +} PgQuery__PLpgSQLTrigtype; /* --- messages --- */ @@ -1663,7 +1828,7 @@ struct PgQuery__ParseResult }; #define PG_QUERY__PARSE_RESULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__parse_result__descriptor) \ - , 0, 0,NULL } +, 0, 0,NULL } struct PgQuery__ScanResult @@ -1675,7 +1840,7 @@ struct PgQuery__ScanResult }; #define PG_QUERY__SCAN_RESULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__scan_result__descriptor) \ - , 0, 0,NULL } +, 0, 0,NULL } typedef enum { @@ -2228,7 +2393,7 @@ struct PgQuery__Node }; #define PG_QUERY__NODE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__node__descriptor) \ - , PG_QUERY__NODE__NODE__NOT_SET, {0} } +, PG_QUERY__NODE__NODE__NOT_SET, {0} } struct PgQuery__Integer @@ -2241,7 +2406,7 @@ struct PgQuery__Integer }; #define PG_QUERY__INTEGER__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__integer__descriptor) \ - , 0 } +, 0 } struct PgQuery__Float @@ -2254,7 +2419,7 @@ struct PgQuery__Float }; #define PG_QUERY__FLOAT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__float__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__Boolean @@ -2264,7 +2429,7 @@ struct PgQuery__Boolean }; #define PG_QUERY__BOOLEAN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__boolean__descriptor) \ - , 0 } +, 0 } struct PgQuery__String @@ -2277,7 +2442,7 @@ struct PgQuery__String }; #define PG_QUERY__STRING__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__string__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__BitString @@ -2290,7 +2455,7 @@ struct PgQuery__BitString }; #define PG_QUERY__BIT_STRING__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__bit_string__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__List @@ -2301,7 +2466,7 @@ struct PgQuery__List }; #define PG_QUERY__LIST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__list__descriptor) \ - , 0,NULL } +, 0,NULL } struct PgQuery__OidList @@ -2312,7 +2477,7 @@ struct PgQuery__OidList }; #define PG_QUERY__OID_LIST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__oid_list__descriptor) \ - , 0,NULL } +, 0,NULL } struct PgQuery__IntList @@ -2323,7 +2488,7 @@ struct PgQuery__IntList }; #define PG_QUERY__INT_LIST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__int_list__descriptor) \ - , 0,NULL } +, 0,NULL } typedef enum { @@ -2352,7 +2517,7 @@ struct PgQuery__AConst }; #define PG_QUERY__A__CONST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__const__descriptor) \ - , 0, 0, PG_QUERY__A__CONST__VAL__NOT_SET, {0} } +, 0, 0, PG_QUERY__A__CONST__VAL__NOT_SET, {0} } struct PgQuery__Alias @@ -2364,7 +2529,7 @@ struct PgQuery__Alias }; #define PG_QUERY__ALIAS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alias__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__RangeVar @@ -2380,7 +2545,7 @@ struct PgQuery__RangeVar }; #define PG_QUERY__RANGE_VAR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_var__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, (char *)protobuf_c_empty_string, NULL, 0 } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, (char *)protobuf_c_empty_string, NULL, 0 } struct PgQuery__TableFunc @@ -2417,7 +2582,7 @@ struct PgQuery__TableFunc }; #define PG_QUERY__TABLE_FUNC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__table_func__descriptor) \ - , PG_QUERY__TABLE_FUNC_TYPE__TABLE_FUNC_TYPE_UNDEFINED, 0,NULL, 0,NULL, NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, NULL, 0, 0 } +, PG_QUERY__TABLE_FUNC_TYPE__TABLE_FUNC_TYPE_UNDEFINED, 0,NULL, 0,NULL, NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, NULL, 0, 0 } struct PgQuery__IntoClause @@ -2436,7 +2601,7 @@ struct PgQuery__IntoClause }; #define PG_QUERY__INTO_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__into_clause__descriptor) \ - , NULL, 0,NULL, (char *)protobuf_c_empty_string, 0,NULL, PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED, (char *)protobuf_c_empty_string, NULL, 0 } +, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0,NULL, PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED, (char *)protobuf_c_empty_string, NULL, 0 } struct PgQuery__Var @@ -2455,7 +2620,7 @@ struct PgQuery__Var }; #define PG_QUERY__VAR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__var__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0, 0 } +, NULL, 0, 0, 0, 0, 0, 0,NULL, 0, 0 } struct PgQuery__Param @@ -2471,7 +2636,7 @@ struct PgQuery__Param }; #define PG_QUERY__PARAM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__param__descriptor) \ - , NULL, PG_QUERY__PARAM_KIND__PARAM_KIND_UNDEFINED, 0, 0, 0, 0, 0 } +, NULL, PG_QUERY__PARAM_KIND__PARAM_KIND_UNDEFINED, 0, 0, 0, 0, 0 } struct PgQuery__Aggref @@ -2504,7 +2669,7 @@ struct PgQuery__Aggref }; #define PG_QUERY__AGGREF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__aggref__descriptor) \ - , NULL, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, NULL, 0, 0, (char *)protobuf_c_empty_string, 0, PG_QUERY__AGG_SPLIT__AGG_SPLIT_UNDEFINED, 0, 0, 0 } +, NULL, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, NULL, 0, 0, (char *)protobuf_c_empty_string, 0, PG_QUERY__AGG_SPLIT__AGG_SPLIT_UNDEFINED, 0, 0, 0 } struct PgQuery__GroupingFunc @@ -2520,7 +2685,7 @@ struct PgQuery__GroupingFunc }; #define PG_QUERY__GROUPING_FUNC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__grouping_func__descriptor) \ - , NULL, 0,NULL, 0,NULL, 0, 0 } +, NULL, 0,NULL, 0,NULL, 0, 0 } struct PgQuery__WindowFunc @@ -2543,7 +2708,7 @@ struct PgQuery__WindowFunc }; #define PG_QUERY__WINDOW_FUNC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_func__descriptor) \ - , NULL, 0, 0, 0, 0, 0,NULL, NULL, 0,NULL, 0, 0, 0, 0 } +, NULL, 0, 0, 0, 0, 0,NULL, NULL, 0,NULL, 0, 0, 0, 0 } struct PgQuery__WindowFuncRunCondition @@ -2557,7 +2722,7 @@ struct PgQuery__WindowFuncRunCondition }; #define PG_QUERY__WINDOW_FUNC_RUN_CONDITION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_func_run_condition__descriptor) \ - , NULL, 0, 0, 0, NULL } +, NULL, 0, 0, 0, NULL } struct PgQuery__MergeSupportFunc @@ -2570,7 +2735,7 @@ struct PgQuery__MergeSupportFunc }; #define PG_QUERY__MERGE_SUPPORT_FUNC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_support_func__descriptor) \ - , NULL, 0, 0, 0 } +, NULL, 0, 0, 0 } struct PgQuery__SubscriptingRef @@ -2591,7 +2756,7 @@ struct PgQuery__SubscriptingRef }; #define PG_QUERY__SUBSCRIPTING_REF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__subscripting_ref__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, NULL, NULL } +, NULL, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, NULL, NULL } struct PgQuery__FuncExpr @@ -2611,7 +2776,7 @@ struct PgQuery__FuncExpr }; #define PG_QUERY__FUNC_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__func_expr__descriptor) \ - , NULL, 0, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0, 0, 0,NULL, 0 } +, NULL, 0, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0, 0, 0,NULL, 0 } struct PgQuery__NamedArgExpr @@ -2625,7 +2790,7 @@ struct PgQuery__NamedArgExpr }; #define PG_QUERY__NAMED_ARG_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__named_arg_expr__descriptor) \ - , NULL, NULL, (char *)protobuf_c_empty_string, 0, 0 } +, NULL, NULL, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__OpExpr @@ -2643,7 +2808,7 @@ struct PgQuery__OpExpr }; #define PG_QUERY__OP_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__op_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0 } +, NULL, 0, 0, 0, 0, 0, 0,NULL, 0 } struct PgQuery__DistinctExpr @@ -2661,7 +2826,7 @@ struct PgQuery__DistinctExpr }; #define PG_QUERY__DISTINCT_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__distinct_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0 } +, NULL, 0, 0, 0, 0, 0, 0,NULL, 0 } struct PgQuery__NullIfExpr @@ -2679,7 +2844,7 @@ struct PgQuery__NullIfExpr }; #define PG_QUERY__NULL_IF_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__null_if_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0 } +, NULL, 0, 0, 0, 0, 0, 0,NULL, 0 } struct PgQuery__ScalarArrayOpExpr @@ -2695,7 +2860,7 @@ struct PgQuery__ScalarArrayOpExpr }; #define PG_QUERY__SCALAR_ARRAY_OP_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__scalar_array_op_expr__descriptor) \ - , NULL, 0, 0, 0, 0,NULL, 0 } +, NULL, 0, 0, 0, 0,NULL, 0 } struct PgQuery__BoolExpr @@ -2709,7 +2874,7 @@ struct PgQuery__BoolExpr }; #define PG_QUERY__BOOL_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__bool_expr__descriptor) \ - , NULL, PG_QUERY__BOOL_EXPR_TYPE__BOOL_EXPR_TYPE_UNDEFINED, 0,NULL, 0 } +, NULL, PG_QUERY__BOOL_EXPR_TYPE__BOOL_EXPR_TYPE_UNDEFINED, 0,NULL, 0 } struct PgQuery__SubLink @@ -2726,7 +2891,7 @@ struct PgQuery__SubLink }; #define PG_QUERY__SUB_LINK__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__sub_link__descriptor) \ - , NULL, PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED, 0, NULL, 0,NULL, NULL, 0 } +, NULL, PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED, 0, NULL, 0,NULL, NULL, 0 } struct PgQuery__SubPlan @@ -2756,7 +2921,7 @@ struct PgQuery__SubPlan }; #define PG_QUERY__SUB_PLAN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__sub_plan__descriptor) \ - , NULL, PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED, NULL, 0,NULL, 0, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0, 0 } +, NULL, PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED, NULL, 0,NULL, 0, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0, 0 } struct PgQuery__AlternativeSubPlan @@ -2768,7 +2933,7 @@ struct PgQuery__AlternativeSubPlan }; #define PG_QUERY__ALTERNATIVE_SUB_PLAN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alternative_sub_plan__descriptor) \ - , NULL, 0,NULL } +, NULL, 0,NULL } struct PgQuery__FieldSelect @@ -2783,7 +2948,7 @@ struct PgQuery__FieldSelect }; #define PG_QUERY__FIELD_SELECT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__field_select__descriptor) \ - , NULL, NULL, 0, 0, 0, 0 } +, NULL, NULL, 0, 0, 0, 0 } struct PgQuery__FieldStore @@ -2799,7 +2964,7 @@ struct PgQuery__FieldStore }; #define PG_QUERY__FIELD_STORE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__field_store__descriptor) \ - , NULL, NULL, 0,NULL, 0,NULL, 0 } +, NULL, NULL, 0,NULL, 0,NULL, 0 } struct PgQuery__RelabelType @@ -2815,7 +2980,7 @@ struct PgQuery__RelabelType }; #define PG_QUERY__RELABEL_TYPE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__relabel_type__descriptor) \ - , NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } +, NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } struct PgQuery__CoerceViaIO @@ -2830,7 +2995,7 @@ struct PgQuery__CoerceViaIO }; #define PG_QUERY__COERCE_VIA_IO__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__coerce_via_io__descriptor) \ - , NULL, NULL, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } +, NULL, NULL, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } struct PgQuery__ArrayCoerceExpr @@ -2847,7 +3012,7 @@ struct PgQuery__ArrayCoerceExpr }; #define PG_QUERY__ARRAY_COERCE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__array_coerce_expr__descriptor) \ - , NULL, NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } +, NULL, NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } struct PgQuery__ConvertRowtypeExpr @@ -2861,7 +3026,7 @@ struct PgQuery__ConvertRowtypeExpr }; #define PG_QUERY__CONVERT_ROWTYPE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__convert_rowtype_expr__descriptor) \ - , NULL, NULL, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } +, NULL, NULL, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } struct PgQuery__CollateExpr @@ -2874,7 +3039,7 @@ struct PgQuery__CollateExpr }; #define PG_QUERY__COLLATE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__collate_expr__descriptor) \ - , NULL, NULL, 0, 0 } +, NULL, NULL, 0, 0 } struct PgQuery__CaseExpr @@ -2891,7 +3056,7 @@ struct PgQuery__CaseExpr }; #define PG_QUERY__CASE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__case_expr__descriptor) \ - , NULL, 0, 0, NULL, 0,NULL, NULL, 0 } +, NULL, 0, 0, NULL, 0,NULL, NULL, 0 } struct PgQuery__CaseWhen @@ -2904,7 +3069,7 @@ struct PgQuery__CaseWhen }; #define PG_QUERY__CASE_WHEN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__case_when__descriptor) \ - , NULL, NULL, NULL, 0 } +, NULL, NULL, NULL, 0 } struct PgQuery__CaseTestExpr @@ -2917,7 +3082,7 @@ struct PgQuery__CaseTestExpr }; #define PG_QUERY__CASE_TEST_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__case_test_expr__descriptor) \ - , NULL, 0, 0, 0 } +, NULL, 0, 0, 0 } struct PgQuery__ArrayExpr @@ -2934,7 +3099,7 @@ struct PgQuery__ArrayExpr }; #define PG_QUERY__ARRAY_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__array_expr__descriptor) \ - , NULL, 0, 0, 0, 0,NULL, 0, 0 } +, NULL, 0, 0, 0, 0,NULL, 0, 0 } struct PgQuery__RowExpr @@ -2951,7 +3116,7 @@ struct PgQuery__RowExpr }; #define PG_QUERY__ROW_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__row_expr__descriptor) \ - , NULL, 0,NULL, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0,NULL, 0 } +, NULL, 0,NULL, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0,NULL, 0 } struct PgQuery__RowCompareExpr @@ -2972,7 +3137,7 @@ struct PgQuery__RowCompareExpr }; #define PG_QUERY__ROW_COMPARE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__row_compare_expr__descriptor) \ - , NULL, PG_QUERY__ROW_COMPARE_TYPE__ROW_COMPARE_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } +, NULL, PG_QUERY__ROW_COMPARE_TYPE__ROW_COMPARE_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } struct PgQuery__CoalesceExpr @@ -2987,7 +3152,7 @@ struct PgQuery__CoalesceExpr }; #define PG_QUERY__COALESCE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__coalesce_expr__descriptor) \ - , NULL, 0, 0, 0,NULL, 0 } +, NULL, 0, 0, 0,NULL, 0 } struct PgQuery__MinMaxExpr @@ -3004,7 +3169,7 @@ struct PgQuery__MinMaxExpr }; #define PG_QUERY__MIN_MAX_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__min_max_expr__descriptor) \ - , NULL, 0, 0, 0, PG_QUERY__MIN_MAX_OP__MIN_MAX_OP_UNDEFINED, 0,NULL, 0 } +, NULL, 0, 0, 0, PG_QUERY__MIN_MAX_OP__MIN_MAX_OP_UNDEFINED, 0,NULL, 0 } struct PgQuery__SQLValueFunction @@ -3018,7 +3183,7 @@ struct PgQuery__SQLValueFunction }; #define PG_QUERY__SQLVALUE_FUNCTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__sqlvalue_function__descriptor) \ - , NULL, PG_QUERY__SQLVALUE_FUNCTION_OP__SQLVALUE_FUNCTION_OP_UNDEFINED, 0, 0, 0 } +, NULL, PG_QUERY__SQLVALUE_FUNCTION_OP__SQLVALUE_FUNCTION_OP_UNDEFINED, 0, 0, 0 } struct PgQuery__XmlExpr @@ -3041,7 +3206,7 @@ struct PgQuery__XmlExpr }; #define PG_QUERY__XML_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__xml_expr__descriptor) \ - , NULL, PG_QUERY__XML_EXPR_OP__XML_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED, 0, 0, 0, 0 } +, NULL, PG_QUERY__XML_EXPR_OP__XML_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED, 0, 0, 0, 0 } struct PgQuery__JsonFormat @@ -3053,7 +3218,7 @@ struct PgQuery__JsonFormat }; #define PG_QUERY__JSON_FORMAT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_format__descriptor) \ - , PG_QUERY__JSON_FORMAT_TYPE__JSON_FORMAT_TYPE_UNDEFINED, PG_QUERY__JSON_ENCODING__JSON_ENCODING_UNDEFINED, 0 } +, PG_QUERY__JSON_FORMAT_TYPE__JSON_FORMAT_TYPE_UNDEFINED, PG_QUERY__JSON_ENCODING__JSON_ENCODING_UNDEFINED, 0 } struct PgQuery__JsonReturning @@ -3065,7 +3230,7 @@ struct PgQuery__JsonReturning }; #define PG_QUERY__JSON_RETURNING__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_returning__descriptor) \ - , NULL, 0, 0 } +, NULL, 0, 0 } struct PgQuery__JsonValueExpr @@ -3077,7 +3242,7 @@ struct PgQuery__JsonValueExpr }; #define PG_QUERY__JSON_VALUE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_value_expr__descriptor) \ - , NULL, NULL, NULL } +, NULL, NULL, NULL } struct PgQuery__JsonConstructorExpr @@ -3096,7 +3261,7 @@ struct PgQuery__JsonConstructorExpr }; #define PG_QUERY__JSON_CONSTRUCTOR_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_constructor_expr__descriptor) \ - , NULL, PG_QUERY__JSON_CONSTRUCTOR_TYPE__JSON_CONSTRUCTOR_TYPE_UNDEFINED, 0,NULL, NULL, NULL, NULL, 0, 0, 0 } +, NULL, PG_QUERY__JSON_CONSTRUCTOR_TYPE__JSON_CONSTRUCTOR_TYPE_UNDEFINED, 0,NULL, NULL, NULL, NULL, 0, 0, 0 } struct PgQuery__JsonIsPredicate @@ -3110,7 +3275,7 @@ struct PgQuery__JsonIsPredicate }; #define PG_QUERY__JSON_IS_PREDICATE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_is_predicate__descriptor) \ - , NULL, NULL, PG_QUERY__JSON_VALUE_TYPE__JSON_VALUE_TYPE_UNDEFINED, 0, 0 } +, NULL, NULL, PG_QUERY__JSON_VALUE_TYPE__JSON_VALUE_TYPE_UNDEFINED, 0, 0 } struct PgQuery__JsonBehavior @@ -3123,7 +3288,7 @@ struct PgQuery__JsonBehavior }; #define PG_QUERY__JSON_BEHAVIOR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_behavior__descriptor) \ - , PG_QUERY__JSON_BEHAVIOR_TYPE__JSON_BEHAVIOR_TYPE_UNDEFINED, NULL, 0, 0 } +, PG_QUERY__JSON_BEHAVIOR_TYPE__JSON_BEHAVIOR_TYPE_UNDEFINED, NULL, 0, 0 } struct PgQuery__JsonExpr @@ -3151,7 +3316,7 @@ struct PgQuery__JsonExpr }; #define PG_QUERY__JSON_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_expr__descriptor) \ - , NULL, PG_QUERY__JSON_EXPR_OP__JSON_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, NULL, NULL, NULL, NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0, PG_QUERY__JSON_WRAPPER__JSON_WRAPPER_UNDEFINED, 0, 0, 0 } +, NULL, PG_QUERY__JSON_EXPR_OP__JSON_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, NULL, NULL, NULL, NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0, PG_QUERY__JSON_WRAPPER__JSON_WRAPPER_UNDEFINED, 0, 0, 0 } struct PgQuery__JsonTablePath @@ -3161,7 +3326,7 @@ struct PgQuery__JsonTablePath }; #define PG_QUERY__JSON_TABLE_PATH__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_table_path__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__JsonTablePathScan @@ -3176,7 +3341,7 @@ struct PgQuery__JsonTablePathScan }; #define PG_QUERY__JSON_TABLE_PATH_SCAN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_table_path_scan__descriptor) \ - , NULL, NULL, 0, NULL, 0, 0 } +, NULL, NULL, 0, NULL, 0, 0 } struct PgQuery__JsonTableSiblingJoin @@ -3188,7 +3353,7 @@ struct PgQuery__JsonTableSiblingJoin }; #define PG_QUERY__JSON_TABLE_SIBLING_JOIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_table_sibling_join__descriptor) \ - , NULL, NULL, NULL } +, NULL, NULL, NULL } struct PgQuery__NullTest @@ -3202,7 +3367,7 @@ struct PgQuery__NullTest }; #define PG_QUERY__NULL_TEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__null_test__descriptor) \ - , NULL, NULL, PG_QUERY__NULL_TEST_TYPE__NULL_TEST_TYPE_UNDEFINED, 0, 0 } +, NULL, NULL, PG_QUERY__NULL_TEST_TYPE__NULL_TEST_TYPE_UNDEFINED, 0, 0 } struct PgQuery__BooleanTest @@ -3215,7 +3380,7 @@ struct PgQuery__BooleanTest }; #define PG_QUERY__BOOLEAN_TEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__boolean_test__descriptor) \ - , NULL, NULL, PG_QUERY__BOOL_TEST_TYPE__BOOL_TEST_TYPE_UNDEFINED, 0 } +, NULL, NULL, PG_QUERY__BOOL_TEST_TYPE__BOOL_TEST_TYPE_UNDEFINED, 0 } struct PgQuery__MergeAction @@ -3232,7 +3397,7 @@ struct PgQuery__MergeAction }; #define PG_QUERY__MERGE_ACTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_action__descriptor) \ - , PG_QUERY__MERGE_MATCH_KIND__MERGE_MATCH_KIND_UNDEFINED, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL } +, PG_QUERY__MERGE_MATCH_KIND__MERGE_MATCH_KIND_UNDEFINED, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL } struct PgQuery__CoerceToDomain @@ -3248,7 +3413,7 @@ struct PgQuery__CoerceToDomain }; #define PG_QUERY__COERCE_TO_DOMAIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__coerce_to_domain__descriptor) \ - , NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } +, NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } struct PgQuery__CoerceToDomainValue @@ -3262,7 +3427,7 @@ struct PgQuery__CoerceToDomainValue }; #define PG_QUERY__COERCE_TO_DOMAIN_VALUE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__coerce_to_domain_value__descriptor) \ - , NULL, 0, 0, 0, 0 } +, NULL, 0, 0, 0, 0 } struct PgQuery__SetToDefault @@ -3276,7 +3441,7 @@ struct PgQuery__SetToDefault }; #define PG_QUERY__SET_TO_DEFAULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__set_to_default__descriptor) \ - , NULL, 0, 0, 0, 0 } +, NULL, 0, 0, 0, 0 } struct PgQuery__CurrentOfExpr @@ -3289,7 +3454,7 @@ struct PgQuery__CurrentOfExpr }; #define PG_QUERY__CURRENT_OF_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__current_of_expr__descriptor) \ - , NULL, 0, (char *)protobuf_c_empty_string, 0 } +, NULL, 0, (char *)protobuf_c_empty_string, 0 } struct PgQuery__NextValueExpr @@ -3301,7 +3466,7 @@ struct PgQuery__NextValueExpr }; #define PG_QUERY__NEXT_VALUE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__next_value_expr__descriptor) \ - , NULL, 0, 0 } +, NULL, 0, 0 } struct PgQuery__InferenceElem @@ -3314,7 +3479,7 @@ struct PgQuery__InferenceElem }; #define PG_QUERY__INFERENCE_ELEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__inference_elem__descriptor) \ - , NULL, NULL, 0, 0 } +, NULL, NULL, 0, 0 } struct PgQuery__TargetEntry @@ -3331,7 +3496,7 @@ struct PgQuery__TargetEntry }; #define PG_QUERY__TARGET_ENTRY__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__target_entry__descriptor) \ - , NULL, NULL, 0, (char *)protobuf_c_empty_string, 0, 0, 0, 0 } +, NULL, NULL, 0, (char *)protobuf_c_empty_string, 0, 0, 0, 0 } struct PgQuery__RangeTblRef @@ -3341,7 +3506,7 @@ struct PgQuery__RangeTblRef }; #define PG_QUERY__RANGE_TBL_REF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_tbl_ref__descriptor) \ - , 0 } +, 0 } struct PgQuery__JoinExpr @@ -3360,7 +3525,7 @@ struct PgQuery__JoinExpr }; #define PG_QUERY__JOIN_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__join_expr__descriptor) \ - , PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED, 0, NULL, NULL, 0,NULL, NULL, NULL, NULL, 0 } +, PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED, 0, NULL, NULL, 0,NULL, NULL, NULL, NULL, 0 } struct PgQuery__FromExpr @@ -3372,7 +3537,7 @@ struct PgQuery__FromExpr }; #define PG_QUERY__FROM_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__from_expr__descriptor) \ - , 0,NULL, NULL } +, 0,NULL, NULL } struct PgQuery__OnConflictExpr @@ -3392,7 +3557,7 @@ struct PgQuery__OnConflictExpr }; #define PG_QUERY__ON_CONFLICT_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__on_conflict_expr__descriptor) \ - , PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED, 0,NULL, NULL, 0, 0,NULL, NULL, 0, 0,NULL } +, PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED, 0,NULL, NULL, 0, 0,NULL, NULL, 0, 0,NULL } struct PgQuery__Query @@ -3457,7 +3622,7 @@ struct PgQuery__Query }; #define PG_QUERY__QUERY__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__query__descriptor) \ - , PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__QUERY_SOURCE__QUERY_SOURCE_UNDEFINED, 0, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL, 0, 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED, 0,NULL, NULL, 0,NULL, 0,NULL, 0, 0 } +, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__QUERY_SOURCE__QUERY_SOURCE_UNDEFINED, 0, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL, 0, 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED, 0,NULL, NULL, 0,NULL, 0,NULL, 0, 0 } struct PgQuery__TypeName @@ -3477,7 +3642,7 @@ struct PgQuery__TypeName }; #define PG_QUERY__TYPE_NAME__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__type_name__descriptor) \ - , 0,NULL, 0, 0, 0, 0,NULL, 0, 0,NULL, 0 } +, 0,NULL, 0, 0, 0, 0,NULL, 0, 0,NULL, 0 } struct PgQuery__ColumnRef @@ -3489,7 +3654,7 @@ struct PgQuery__ColumnRef }; #define PG_QUERY__COLUMN_REF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__column_ref__descriptor) \ - , 0,NULL, 0 } +, 0,NULL, 0 } struct PgQuery__ParamRef @@ -3500,7 +3665,7 @@ struct PgQuery__ParamRef }; #define PG_QUERY__PARAM_REF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__param_ref__descriptor) \ - , 0, 0 } +, 0, 0 } struct PgQuery__AExpr @@ -3515,7 +3680,7 @@ struct PgQuery__AExpr }; #define PG_QUERY__A__EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__expr__descriptor) \ - , PG_QUERY__A__EXPR__KIND__A_EXPR_KIND_UNDEFINED, 0,NULL, NULL, NULL, 0 } +, PG_QUERY__A__EXPR__KIND__A_EXPR_KIND_UNDEFINED, 0,NULL, NULL, NULL, 0 } struct PgQuery__TypeCast @@ -3527,7 +3692,7 @@ struct PgQuery__TypeCast }; #define PG_QUERY__TYPE_CAST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__type_cast__descriptor) \ - , NULL, NULL, 0 } +, NULL, NULL, 0 } struct PgQuery__CollateClause @@ -3540,7 +3705,7 @@ struct PgQuery__CollateClause }; #define PG_QUERY__COLLATE_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__collate_clause__descriptor) \ - , NULL, 0,NULL, 0 } +, NULL, 0,NULL, 0 } struct PgQuery__RoleSpec @@ -3552,7 +3717,7 @@ struct PgQuery__RoleSpec }; #define PG_QUERY__ROLE_SPEC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__role_spec__descriptor) \ - , PG_QUERY__ROLE_SPEC_TYPE__ROLE_SPEC_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0 } +, PG_QUERY__ROLE_SPEC_TYPE__ROLE_SPEC_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0 } struct PgQuery__FuncCall @@ -3575,7 +3740,7 @@ struct PgQuery__FuncCall }; #define PG_QUERY__FUNC_CALL__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__func_call__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } +, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } struct PgQuery__AStar @@ -3584,7 +3749,7 @@ struct PgQuery__AStar }; #define PG_QUERY__A__STAR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__star__descriptor) \ - } + } struct PgQuery__AIndices @@ -3596,7 +3761,7 @@ struct PgQuery__AIndices }; #define PG_QUERY__A__INDICES__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__indices__descriptor) \ - , 0, NULL, NULL } +, 0, NULL, NULL } struct PgQuery__AIndirection @@ -3608,7 +3773,7 @@ struct PgQuery__AIndirection }; #define PG_QUERY__A__INDIRECTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__indirection__descriptor) \ - , NULL, 0,NULL } +, NULL, 0,NULL } struct PgQuery__AArrayExpr @@ -3620,7 +3785,7 @@ struct PgQuery__AArrayExpr }; #define PG_QUERY__A__ARRAY_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__array_expr__descriptor) \ - , 0,NULL, 0 } +, 0,NULL, 0 } struct PgQuery__ResTarget @@ -3634,7 +3799,7 @@ struct PgQuery__ResTarget }; #define PG_QUERY__RES_TARGET__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__res_target__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, NULL, 0 } +, (char *)protobuf_c_empty_string, 0,NULL, NULL, 0 } struct PgQuery__MultiAssignRef @@ -3646,7 +3811,7 @@ struct PgQuery__MultiAssignRef }; #define PG_QUERY__MULTI_ASSIGN_REF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__multi_assign_ref__descriptor) \ - , NULL, 0, 0 } +, NULL, 0, 0 } struct PgQuery__SortBy @@ -3661,7 +3826,7 @@ struct PgQuery__SortBy }; #define PG_QUERY__SORT_BY__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__sort_by__descriptor) \ - , NULL, PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED, PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED, 0,NULL, 0 } +, NULL, PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED, PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED, 0,NULL, 0 } struct PgQuery__WindowDef @@ -3680,7 +3845,7 @@ struct PgQuery__WindowDef }; #define PG_QUERY__WINDOW_DEF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_def__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, NULL, NULL, 0 } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, NULL, NULL, 0 } struct PgQuery__RangeSubselect @@ -3692,7 +3857,7 @@ struct PgQuery__RangeSubselect }; #define PG_QUERY__RANGE_SUBSELECT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_subselect__descriptor) \ - , 0, NULL, NULL } +, 0, NULL, NULL } struct PgQuery__RangeFunction @@ -3709,7 +3874,7 @@ struct PgQuery__RangeFunction }; #define PG_QUERY__RANGE_FUNCTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_function__descriptor) \ - , 0, 0, 0, 0,NULL, NULL, 0,NULL } +, 0, 0, 0, 0,NULL, NULL, 0,NULL } struct PgQuery__RangeTableFunc @@ -3727,7 +3892,7 @@ struct PgQuery__RangeTableFunc }; #define PG_QUERY__RANGE_TABLE_FUNC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_table_func__descriptor) \ - , 0, NULL, NULL, 0,NULL, 0,NULL, NULL, 0 } +, 0, NULL, NULL, 0,NULL, 0,NULL, NULL, 0 } struct PgQuery__RangeTableFuncCol @@ -3743,7 +3908,7 @@ struct PgQuery__RangeTableFuncCol }; #define PG_QUERY__RANGE_TABLE_FUNC_COL__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_table_func_col__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0, 0, NULL, NULL, 0 } +, (char *)protobuf_c_empty_string, NULL, 0, 0, NULL, NULL, 0 } struct PgQuery__RangeTableSample @@ -3759,7 +3924,7 @@ struct PgQuery__RangeTableSample }; #define PG_QUERY__RANGE_TABLE_SAMPLE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_table_sample__descriptor) \ - , NULL, 0,NULL, 0,NULL, NULL, 0 } +, NULL, 0,NULL, 0,NULL, NULL, 0 } struct PgQuery__ColumnDef @@ -3789,7 +3954,7 @@ struct PgQuery__ColumnDef }; #define PG_QUERY__COLUMN_DEF__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__column_def__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, NULL, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, NULL, 0, 0,NULL, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, NULL, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, NULL, 0, 0,NULL, 0,NULL, 0 } struct PgQuery__TableLikeClause @@ -3801,7 +3966,7 @@ struct PgQuery__TableLikeClause }; #define PG_QUERY__TABLE_LIKE_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__table_like_clause__descriptor) \ - , NULL, 0, 0 } +, NULL, 0, 0 } struct PgQuery__IndexElem @@ -3821,7 +3986,7 @@ struct PgQuery__IndexElem }; #define PG_QUERY__INDEX_ELEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__index_elem__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED, PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED } +, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED, PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED } struct PgQuery__DefElem @@ -3835,7 +4000,7 @@ struct PgQuery__DefElem }; #define PG_QUERY__DEF_ELEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__def_elem__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, PG_QUERY__DEF_ELEM_ACTION__DEF_ELEM_ACTION_UNDEFINED, 0 } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, PG_QUERY__DEF_ELEM_ACTION__DEF_ELEM_ACTION_UNDEFINED, 0 } struct PgQuery__LockingClause @@ -3848,7 +4013,7 @@ struct PgQuery__LockingClause }; #define PG_QUERY__LOCKING_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__locking_clause__descriptor) \ - , 0,NULL, PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED, PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED } +, 0,NULL, PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED, PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED } struct PgQuery__XmlSerialize @@ -3862,7 +4027,7 @@ struct PgQuery__XmlSerialize }; #define PG_QUERY__XML_SERIALIZE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__xml_serialize__descriptor) \ - , PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED, NULL, NULL, 0, 0 } +, PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED, NULL, NULL, 0, 0 } struct PgQuery__PartitionElem @@ -3878,7 +4043,7 @@ struct PgQuery__PartitionElem }; #define PG_QUERY__PARTITION_ELEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_elem__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0,NULL, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0,NULL, 0 } struct PgQuery__PartitionSpec @@ -3891,7 +4056,7 @@ struct PgQuery__PartitionSpec }; #define PG_QUERY__PARTITION_SPEC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_spec__descriptor) \ - , PG_QUERY__PARTITION_STRATEGY__PARTITION_STRATEGY_UNDEFINED, 0,NULL, 0 } +, PG_QUERY__PARTITION_STRATEGY__PARTITION_STRATEGY_UNDEFINED, 0,NULL, 0 } struct PgQuery__PartitionBoundSpec @@ -3911,7 +4076,7 @@ struct PgQuery__PartitionBoundSpec }; #define PG_QUERY__PARTITION_BOUND_SPEC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_bound_spec__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0 } struct PgQuery__PartitionRangeDatum @@ -3923,7 +4088,7 @@ struct PgQuery__PartitionRangeDatum }; #define PG_QUERY__PARTITION_RANGE_DATUM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_range_datum__descriptor) \ - , PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_KIND_UNDEFINED, NULL, 0 } +, PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_KIND_UNDEFINED, NULL, 0 } struct PgQuery__SinglePartitionSpec @@ -3932,7 +4097,7 @@ struct PgQuery__SinglePartitionSpec }; #define PG_QUERY__SINGLE_PARTITION_SPEC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__single_partition_spec__descriptor) \ - } + } struct PgQuery__PartitionCmd @@ -3944,7 +4109,7 @@ struct PgQuery__PartitionCmd }; #define PG_QUERY__PARTITION_CMD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_cmd__descriptor) \ - , NULL, NULL, 0 } +, NULL, NULL, 0 } struct PgQuery__RangeTblEntry @@ -3994,7 +4159,7 @@ struct PgQuery__RangeTblEntry }; #define PG_QUERY__RANGE_TBL_ENTRY__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_tbl_entry__descriptor) \ - , NULL, NULL, PG_QUERY__RTEKIND__RTEKIND_UNDEFINED, 0, 0, (char *)protobuf_c_empty_string, 0, 0, NULL, NULL, 0, PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED, 0, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0,NULL } +, NULL, NULL, PG_QUERY__RTEKIND__RTEKIND_UNDEFINED, 0, 0, (char *)protobuf_c_empty_string, 0, 0, NULL, NULL, 0, PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED, 0, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0,NULL } struct PgQuery__RTEPermissionInfo @@ -4013,7 +4178,7 @@ struct PgQuery__RTEPermissionInfo }; #define PG_QUERY__RTEPERMISSION_INFO__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__rtepermission_info__descriptor) \ - , 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL } +, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL } struct PgQuery__RangeTblFunction @@ -4034,7 +4199,7 @@ struct PgQuery__RangeTblFunction }; #define PG_QUERY__RANGE_TBL_FUNCTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_tbl_function__descriptor) \ - , NULL, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } +, NULL, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } struct PgQuery__TableSampleClause @@ -4047,7 +4212,7 @@ struct PgQuery__TableSampleClause }; #define PG_QUERY__TABLE_SAMPLE_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__table_sample_clause__descriptor) \ - , 0, 0,NULL, NULL } +, 0, 0,NULL, NULL } struct PgQuery__WithCheckOption @@ -4061,7 +4226,7 @@ struct PgQuery__WithCheckOption }; #define PG_QUERY__WITH_CHECK_OPTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__with_check_option__descriptor) \ - , PG_QUERY__WCOKIND__WCOKIND_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, 0 } +, PG_QUERY__WCOKIND__WCOKIND_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, 0 } struct PgQuery__SortGroupClause @@ -4075,7 +4240,7 @@ struct PgQuery__SortGroupClause }; #define PG_QUERY__SORT_GROUP_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__sort_group_clause__descriptor) \ - , 0, 0, 0, 0, 0 } +, 0, 0, 0, 0, 0 } struct PgQuery__GroupingSet @@ -4088,7 +4253,7 @@ struct PgQuery__GroupingSet }; #define PG_QUERY__GROUPING_SET__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__grouping_set__descriptor) \ - , PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_KIND_UNDEFINED, 0,NULL, 0 } +, PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_KIND_UNDEFINED, 0,NULL, 0 } struct PgQuery__WindowClause @@ -4113,7 +4278,7 @@ struct PgQuery__WindowClause }; #define PG_QUERY__WINDOW_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_clause__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0 } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0 } struct PgQuery__RowMarkClause @@ -4126,7 +4291,7 @@ struct PgQuery__RowMarkClause }; #define PG_QUERY__ROW_MARK_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__row_mark_clause__descriptor) \ - , 0, PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED, PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED, 0 } +, 0, PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED, PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED, 0 } struct PgQuery__WithClause @@ -4139,7 +4304,7 @@ struct PgQuery__WithClause }; #define PG_QUERY__WITH_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__with_clause__descriptor) \ - , 0,NULL, 0, 0 } +, 0,NULL, 0, 0 } struct PgQuery__InferClause @@ -4153,7 +4318,7 @@ struct PgQuery__InferClause }; #define PG_QUERY__INFER_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__infer_clause__descriptor) \ - , 0,NULL, NULL, (char *)protobuf_c_empty_string, 0 } +, 0,NULL, NULL, (char *)protobuf_c_empty_string, 0 } struct PgQuery__OnConflictClause @@ -4168,7 +4333,7 @@ struct PgQuery__OnConflictClause }; #define PG_QUERY__ON_CONFLICT_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__on_conflict_clause__descriptor) \ - , PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED, NULL, 0,NULL, NULL, 0 } +, PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED, NULL, 0,NULL, NULL, 0 } struct PgQuery__CTESearchClause @@ -4182,7 +4347,7 @@ struct PgQuery__CTESearchClause }; #define PG_QUERY__CTESEARCH_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__ctesearch_clause__descriptor) \ - , 0,NULL, 0, (char *)protobuf_c_empty_string, 0 } +, 0,NULL, 0, (char *)protobuf_c_empty_string, 0 } struct PgQuery__CTECycleClause @@ -4202,7 +4367,7 @@ struct PgQuery__CTECycleClause }; #define PG_QUERY__CTECYCLE_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__ctecycle_clause__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, NULL, NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0 } +, 0,NULL, (char *)protobuf_c_empty_string, NULL, NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0 } struct PgQuery__CommonTableExpr @@ -4229,7 +4394,7 @@ struct PgQuery__CommonTableExpr }; #define PG_QUERY__COMMON_TABLE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__common_table_expr__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, PG_QUERY__CTEMATERIALIZE__CTEMATERIALIZE_UNDEFINED, NULL, NULL, NULL, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL, PG_QUERY__CTEMATERIALIZE__CTEMATERIALIZE_UNDEFINED, NULL, NULL, NULL, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL } struct PgQuery__MergeWhenClause @@ -4246,7 +4411,7 @@ struct PgQuery__MergeWhenClause }; #define PG_QUERY__MERGE_WHEN_CLAUSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_when_clause__descriptor) \ - , PG_QUERY__MERGE_MATCH_KIND__MERGE_MATCH_KIND_UNDEFINED, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL } +, PG_QUERY__MERGE_MATCH_KIND__MERGE_MATCH_KIND_UNDEFINED, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL } struct PgQuery__TriggerTransition @@ -4258,7 +4423,7 @@ struct PgQuery__TriggerTransition }; #define PG_QUERY__TRIGGER_TRANSITION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__trigger_transition__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0 } +, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__JsonOutput @@ -4269,7 +4434,7 @@ struct PgQuery__JsonOutput }; #define PG_QUERY__JSON_OUTPUT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_output__descriptor) \ - , NULL, NULL } +, NULL, NULL } struct PgQuery__JsonArgument @@ -4280,7 +4445,7 @@ struct PgQuery__JsonArgument }; #define PG_QUERY__JSON_ARGUMENT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_argument__descriptor) \ - , NULL, (char *)protobuf_c_empty_string } +, NULL, (char *)protobuf_c_empty_string } struct PgQuery__JsonFuncExpr @@ -4301,7 +4466,7 @@ struct PgQuery__JsonFuncExpr }; #define PG_QUERY__JSON_FUNC_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_func_expr__descriptor) \ - , PG_QUERY__JSON_EXPR_OP__JSON_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, NULL, NULL, 0,NULL, NULL, NULL, NULL, PG_QUERY__JSON_WRAPPER__JSON_WRAPPER_UNDEFINED, PG_QUERY__JSON_QUOTES__JSON_QUOTES_UNDEFINED, 0 } +, PG_QUERY__JSON_EXPR_OP__JSON_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, NULL, NULL, 0,NULL, NULL, NULL, NULL, PG_QUERY__JSON_WRAPPER__JSON_WRAPPER_UNDEFINED, PG_QUERY__JSON_QUOTES__JSON_QUOTES_UNDEFINED, 0 } struct PgQuery__JsonTablePathSpec @@ -4314,7 +4479,7 @@ struct PgQuery__JsonTablePathSpec }; #define PG_QUERY__JSON_TABLE_PATH_SPEC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_table_path_spec__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0, 0 } +, NULL, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__JsonTable @@ -4333,7 +4498,7 @@ struct PgQuery__JsonTable }; #define PG_QUERY__JSON_TABLE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_table__descriptor) \ - , NULL, NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0 } +, NULL, NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0 } struct PgQuery__JsonTableColumn @@ -4354,7 +4519,7 @@ struct PgQuery__JsonTableColumn }; #define PG_QUERY__JSON_TABLE_COLUMN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_table_column__descriptor) \ - , PG_QUERY__JSON_TABLE_COLUMN_TYPE__JSON_TABLE_COLUMN_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, NULL, NULL, NULL, PG_QUERY__JSON_WRAPPER__JSON_WRAPPER_UNDEFINED, PG_QUERY__JSON_QUOTES__JSON_QUOTES_UNDEFINED, 0,NULL, NULL, NULL, 0 } +, PG_QUERY__JSON_TABLE_COLUMN_TYPE__JSON_TABLE_COLUMN_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, NULL, NULL, NULL, PG_QUERY__JSON_WRAPPER__JSON_WRAPPER_UNDEFINED, PG_QUERY__JSON_QUOTES__JSON_QUOTES_UNDEFINED, 0,NULL, NULL, NULL, 0 } struct PgQuery__JsonKeyValue @@ -4365,7 +4530,7 @@ struct PgQuery__JsonKeyValue }; #define PG_QUERY__JSON_KEY_VALUE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_key_value__descriptor) \ - , NULL, NULL } +, NULL, NULL } struct PgQuery__JsonParseExpr @@ -4378,7 +4543,7 @@ struct PgQuery__JsonParseExpr }; #define PG_QUERY__JSON_PARSE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_parse_expr__descriptor) \ - , NULL, NULL, 0, 0 } +, NULL, NULL, 0, 0 } struct PgQuery__JsonScalarExpr @@ -4390,7 +4555,7 @@ struct PgQuery__JsonScalarExpr }; #define PG_QUERY__JSON_SCALAR_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_scalar_expr__descriptor) \ - , NULL, NULL, 0 } +, NULL, NULL, 0 } struct PgQuery__JsonSerializeExpr @@ -4402,7 +4567,7 @@ struct PgQuery__JsonSerializeExpr }; #define PG_QUERY__JSON_SERIALIZE_EXPR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_serialize_expr__descriptor) \ - , NULL, NULL, 0 } +, NULL, NULL, 0 } struct PgQuery__JsonObjectConstructor @@ -4417,7 +4582,7 @@ struct PgQuery__JsonObjectConstructor }; #define PG_QUERY__JSON_OBJECT_CONSTRUCTOR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_object_constructor__descriptor) \ - , 0,NULL, NULL, 0, 0, 0 } +, 0,NULL, NULL, 0, 0, 0 } struct PgQuery__JsonArrayConstructor @@ -4431,7 +4596,7 @@ struct PgQuery__JsonArrayConstructor }; #define PG_QUERY__JSON_ARRAY_CONSTRUCTOR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_array_constructor__descriptor) \ - , 0,NULL, NULL, 0, 0 } +, 0,NULL, NULL, 0, 0 } struct PgQuery__JsonArrayQueryConstructor @@ -4445,7 +4610,7 @@ struct PgQuery__JsonArrayQueryConstructor }; #define PG_QUERY__JSON_ARRAY_QUERY_CONSTRUCTOR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_array_query_constructor__descriptor) \ - , NULL, NULL, NULL, 0, 0 } +, NULL, NULL, NULL, 0, 0 } struct PgQuery__JsonAggConstructor @@ -4460,7 +4625,7 @@ struct PgQuery__JsonAggConstructor }; #define PG_QUERY__JSON_AGG_CONSTRUCTOR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_agg_constructor__descriptor) \ - , NULL, NULL, 0,NULL, NULL, 0 } +, NULL, NULL, 0,NULL, NULL, 0 } struct PgQuery__JsonObjectAgg @@ -4473,7 +4638,7 @@ struct PgQuery__JsonObjectAgg }; #define PG_QUERY__JSON_OBJECT_AGG__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_object_agg__descriptor) \ - , NULL, NULL, 0, 0 } +, NULL, NULL, 0, 0 } struct PgQuery__JsonArrayAgg @@ -4485,7 +4650,7 @@ struct PgQuery__JsonArrayAgg }; #define PG_QUERY__JSON_ARRAY_AGG__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__json_array_agg__descriptor) \ - , NULL, NULL, 0 } +, NULL, NULL, 0 } struct PgQuery__RawStmt @@ -4497,7 +4662,7 @@ struct PgQuery__RawStmt }; #define PG_QUERY__RAW_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__raw_stmt__descriptor) \ - , NULL, 0, 0 } +, NULL, 0, 0 } struct PgQuery__InsertStmt @@ -4515,7 +4680,7 @@ struct PgQuery__InsertStmt }; #define PG_QUERY__INSERT_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__insert_stmt__descriptor) \ - , NULL, 0,NULL, NULL, NULL, 0,NULL, NULL, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED } +, NULL, 0,NULL, NULL, NULL, 0,NULL, NULL, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED } struct PgQuery__DeleteStmt @@ -4531,7 +4696,7 @@ struct PgQuery__DeleteStmt }; #define PG_QUERY__DELETE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__delete_stmt__descriptor) \ - , NULL, 0,NULL, NULL, 0,NULL, NULL } +, NULL, 0,NULL, NULL, 0,NULL, NULL } struct PgQuery__UpdateStmt @@ -4549,7 +4714,7 @@ struct PgQuery__UpdateStmt }; #define PG_QUERY__UPDATE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__update_stmt__descriptor) \ - , NULL, 0,NULL, NULL, 0,NULL, 0,NULL, NULL } +, NULL, 0,NULL, NULL, 0,NULL, 0,NULL, NULL } struct PgQuery__MergeStmt @@ -4566,7 +4731,7 @@ struct PgQuery__MergeStmt }; #define PG_QUERY__MERGE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_stmt__descriptor) \ - , NULL, NULL, NULL, 0,NULL, 0,NULL, NULL } +, NULL, NULL, NULL, 0,NULL, 0,NULL, NULL } struct PgQuery__SelectStmt @@ -4603,7 +4768,7 @@ struct PgQuery__SelectStmt }; #define PG_QUERY__SELECT_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__select_stmt__descriptor) \ - , 0,NULL, NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED, 0,NULL, NULL, PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED, 0, NULL, NULL } +, 0,NULL, NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED, 0,NULL, NULL, PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED, 0, NULL, NULL } struct PgQuery__SetOperationStmt @@ -4624,7 +4789,7 @@ struct PgQuery__SetOperationStmt }; #define PG_QUERY__SET_OPERATION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__set_operation_stmt__descriptor) \ - , PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED, 0, NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } +, PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED, 0, NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } struct PgQuery__ReturnStmt @@ -4634,7 +4799,7 @@ struct PgQuery__ReturnStmt }; #define PG_QUERY__RETURN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__return_stmt__descriptor) \ - , NULL } +, NULL } struct PgQuery__PLAssignStmt @@ -4649,7 +4814,7 @@ struct PgQuery__PLAssignStmt }; #define PG_QUERY__PLASSIGN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__plassign_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0, NULL, 0 } +, (char *)protobuf_c_empty_string, 0,NULL, 0, NULL, 0 } struct PgQuery__CreateSchemaStmt @@ -4663,7 +4828,7 @@ struct PgQuery__CreateSchemaStmt }; #define PG_QUERY__CREATE_SCHEMA_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_schema_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0 } struct PgQuery__AlterTableStmt @@ -4677,7 +4842,7 @@ struct PgQuery__AlterTableStmt }; #define PG_QUERY__ALTER_TABLE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_stmt__descriptor) \ - , NULL, 0,NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0 } +, NULL, 0,NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0 } struct PgQuery__ReplicaIdentityStmt @@ -4688,7 +4853,7 @@ struct PgQuery__ReplicaIdentityStmt }; #define PG_QUERY__REPLICA_IDENTITY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__replica_identity_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } struct PgQuery__AlterTableCmd @@ -4705,7 +4870,7 @@ struct PgQuery__AlterTableCmd }; #define PG_QUERY__ALTER_TABLE_CMD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_cmd__descriptor) \ - , PG_QUERY__ALTER_TABLE_TYPE__ALTER_TABLE_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0, NULL, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0, 0 } +, PG_QUERY__ALTER_TABLE_TYPE__ALTER_TABLE_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0, NULL, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0, 0 } struct PgQuery__AlterCollationStmt @@ -4716,7 +4881,7 @@ struct PgQuery__AlterCollationStmt }; #define PG_QUERY__ALTER_COLLATION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_collation_stmt__descriptor) \ - , 0,NULL } +, 0,NULL } struct PgQuery__AlterDomainStmt @@ -4732,7 +4897,7 @@ struct PgQuery__AlterDomainStmt }; #define PG_QUERY__ALTER_DOMAIN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_domain_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, (char *)protobuf_c_empty_string, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0 } +, (char *)protobuf_c_empty_string, 0,NULL, (char *)protobuf_c_empty_string, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0 } struct PgQuery__GrantStmt @@ -4753,7 +4918,7 @@ struct PgQuery__GrantStmt }; #define PG_QUERY__GRANT_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__grant_stmt__descriptor) \ - , 0, PG_QUERY__GRANT_TARGET_TYPE__GRANT_TARGET_TYPE_UNDEFINED, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } +, 0, PG_QUERY__GRANT_TARGET_TYPE__GRANT_TARGET_TYPE_UNDEFINED, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } struct PgQuery__ObjectWithArgs @@ -4769,7 +4934,7 @@ struct PgQuery__ObjectWithArgs }; #define PG_QUERY__OBJECT_WITH_ARGS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__object_with_args__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0 } +, 0,NULL, 0,NULL, 0,NULL, 0 } struct PgQuery__AccessPriv @@ -4781,7 +4946,7 @@ struct PgQuery__AccessPriv }; #define PG_QUERY__ACCESS_PRIV__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__access_priv__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__GrantRoleStmt @@ -4799,7 +4964,7 @@ struct PgQuery__GrantRoleStmt }; #define PG_QUERY__GRANT_ROLE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__grant_role_stmt__descriptor) \ - , 0,NULL, 0,NULL, 0, 0,NULL, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } +, 0,NULL, 0,NULL, 0, 0,NULL, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } struct PgQuery__AlterDefaultPrivilegesStmt @@ -4811,7 +4976,7 @@ struct PgQuery__AlterDefaultPrivilegesStmt }; #define PG_QUERY__ALTER_DEFAULT_PRIVILEGES_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_default_privileges_stmt__descriptor) \ - , 0,NULL, NULL } +, 0,NULL, NULL } struct PgQuery__CopyStmt @@ -4830,7 +4995,7 @@ struct PgQuery__CopyStmt }; #define PG_QUERY__COPY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__copy_stmt__descriptor) \ - , NULL, NULL, 0,NULL, 0, 0, (char *)protobuf_c_empty_string, 0,NULL, NULL } +, NULL, NULL, 0,NULL, 0, 0, (char *)protobuf_c_empty_string, 0,NULL, NULL } struct PgQuery__VariableSetStmt @@ -4844,7 +5009,7 @@ struct PgQuery__VariableSetStmt }; #define PG_QUERY__VARIABLE_SET_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__variable_set_stmt__descriptor) \ - , PG_QUERY__VARIABLE_SET_KIND__VARIABLE_SET_KIND_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL, 0 } +, PG_QUERY__VARIABLE_SET_KIND__VARIABLE_SET_KIND_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL, 0 } struct PgQuery__VariableShowStmt @@ -4854,7 +5019,7 @@ struct PgQuery__VariableShowStmt }; #define PG_QUERY__VARIABLE_SHOW_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__variable_show_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__CreateStmt @@ -4879,7 +5044,7 @@ struct PgQuery__CreateStmt }; #define PG_QUERY__CREATE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_stmt__descriptor) \ - , NULL, 0,NULL, 0,NULL, NULL, NULL, NULL, 0,NULL, 0,NULL, PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0 } +, NULL, 0,NULL, 0,NULL, NULL, NULL, NULL, 0,NULL, 0,NULL, PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0 } struct PgQuery__Constraint @@ -4927,7 +5092,7 @@ struct PgQuery__Constraint }; #define PG_QUERY__CONSTRAINT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__constraint__descriptor) \ - , PG_QUERY__CONSTR_TYPE__CONSTR_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, (char *)protobuf_c_empty_string, NULL, NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, 0 } +, PG_QUERY__CONSTR_TYPE__CONSTR_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, (char *)protobuf_c_empty_string, NULL, NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, 0 } struct PgQuery__CreateTableSpaceStmt @@ -4941,7 +5106,7 @@ struct PgQuery__CreateTableSpaceStmt }; #define PG_QUERY__CREATE_TABLE_SPACE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_table_space_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__DropTableSpaceStmt @@ -4952,7 +5117,7 @@ struct PgQuery__DropTableSpaceStmt }; #define PG_QUERY__DROP_TABLE_SPACE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_table_space_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0 } +, (char *)protobuf_c_empty_string, 0 } struct PgQuery__AlterTableSpaceOptionsStmt @@ -4965,7 +5130,7 @@ struct PgQuery__AlterTableSpaceOptionsStmt }; #define PG_QUERY__ALTER_TABLE_SPACE_OPTIONS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_space_options_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, 0,NULL, 0 } struct PgQuery__AlterTableMoveAllStmt @@ -4980,7 +5145,7 @@ struct PgQuery__AlterTableMoveAllStmt }; #define PG_QUERY__ALTER_TABLE_MOVE_ALL_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_move_all_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0,NULL, (char *)protobuf_c_empty_string, 0 } +, (char *)protobuf_c_empty_string, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0,NULL, (char *)protobuf_c_empty_string, 0 } struct PgQuery__CreateExtensionStmt @@ -4993,7 +5158,7 @@ struct PgQuery__CreateExtensionStmt }; #define PG_QUERY__CREATE_EXTENSION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_extension_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0,NULL } +, (char *)protobuf_c_empty_string, 0, 0,NULL } struct PgQuery__AlterExtensionStmt @@ -5005,7 +5170,7 @@ struct PgQuery__AlterExtensionStmt }; #define PG_QUERY__ALTER_EXTENSION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_extension_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__AlterExtensionContentsStmt @@ -5018,7 +5183,7 @@ struct PgQuery__AlterExtensionContentsStmt }; #define PG_QUERY__ALTER_EXTENSION_CONTENTS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_extension_contents_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL } +, (char *)protobuf_c_empty_string, 0, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL } struct PgQuery__CreateFdwStmt @@ -5032,7 +5197,7 @@ struct PgQuery__CreateFdwStmt }; #define PG_QUERY__CREATE_FDW_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_fdw_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } struct PgQuery__AlterFdwStmt @@ -5046,7 +5211,7 @@ struct PgQuery__AlterFdwStmt }; #define PG_QUERY__ALTER_FDW_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_fdw_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } struct PgQuery__CreateForeignServerStmt @@ -5062,7 +5227,7 @@ struct PgQuery__CreateForeignServerStmt }; #define PG_QUERY__CREATE_FOREIGN_SERVER_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_foreign_server_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0,NULL } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0,NULL } struct PgQuery__AlterForeignServerStmt @@ -5076,7 +5241,7 @@ struct PgQuery__AlterForeignServerStmt }; #define PG_QUERY__ALTER_FOREIGN_SERVER_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_foreign_server_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 } struct PgQuery__CreateForeignTableStmt @@ -5089,7 +5254,7 @@ struct PgQuery__CreateForeignTableStmt }; #define PG_QUERY__CREATE_FOREIGN_TABLE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_foreign_table_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0,NULL } +, NULL, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__CreateUserMappingStmt @@ -5103,7 +5268,7 @@ struct PgQuery__CreateUserMappingStmt }; #define PG_QUERY__CREATE_USER_MAPPING_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_user_mapping_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0, 0,NULL } +, NULL, (char *)protobuf_c_empty_string, 0, 0,NULL } struct PgQuery__AlterUserMappingStmt @@ -5116,7 +5281,7 @@ struct PgQuery__AlterUserMappingStmt }; #define PG_QUERY__ALTER_USER_MAPPING_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_user_mapping_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0,NULL } +, NULL, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__DropUserMappingStmt @@ -5128,7 +5293,7 @@ struct PgQuery__DropUserMappingStmt }; #define PG_QUERY__DROP_USER_MAPPING_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_user_mapping_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0 } +, NULL, (char *)protobuf_c_empty_string, 0 } struct PgQuery__ImportForeignSchemaStmt @@ -5145,7 +5310,7 @@ struct PgQuery__ImportForeignSchemaStmt }; #define PG_QUERY__IMPORT_FOREIGN_SCHEMA_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__import_foreign_schema_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED, 0,NULL, 0,NULL } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED, 0,NULL, 0,NULL } struct PgQuery__CreatePolicyStmt @@ -5162,7 +5327,7 @@ struct PgQuery__CreatePolicyStmt }; #define PG_QUERY__CREATE_POLICY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_policy_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0, 0,NULL, NULL, NULL } +, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0, 0,NULL, NULL, NULL } struct PgQuery__AlterPolicyStmt @@ -5177,7 +5342,7 @@ struct PgQuery__AlterPolicyStmt }; #define PG_QUERY__ALTER_POLICY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_policy_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0,NULL, NULL, NULL } +, (char *)protobuf_c_empty_string, NULL, 0,NULL, NULL, NULL } struct PgQuery__CreateAmStmt @@ -5190,7 +5355,7 @@ struct PgQuery__CreateAmStmt }; #define PG_QUERY__CREATE_AM_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_am_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string, 0,NULL, (char *)protobuf_c_empty_string } struct PgQuery__CreateTrigStmt @@ -5218,7 +5383,7 @@ struct PgQuery__CreateTrigStmt }; #define PG_QUERY__CREATE_TRIG_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_trig_stmt__descriptor) \ - , 0, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0,NULL, 0, 0, 0, 0,NULL, NULL, 0,NULL, 0, 0, NULL } +, 0, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0,NULL, 0, 0, 0, 0,NULL, NULL, 0,NULL, 0, 0, NULL } struct PgQuery__CreateEventTrigStmt @@ -5233,7 +5398,7 @@ struct PgQuery__CreateEventTrigStmt }; #define PG_QUERY__CREATE_EVENT_TRIG_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_event_trig_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } struct PgQuery__AlterEventTrigStmt @@ -5244,7 +5409,7 @@ struct PgQuery__AlterEventTrigStmt }; #define PG_QUERY__ALTER_EVENT_TRIG_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_event_trig_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } struct PgQuery__CreatePLangStmt @@ -5262,7 +5427,7 @@ struct PgQuery__CreatePLangStmt }; #define PG_QUERY__CREATE_PLANG_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_plang_stmt__descriptor) \ - , 0, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, 0 } +, 0, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, 0 } struct PgQuery__CreateRoleStmt @@ -5275,7 +5440,7 @@ struct PgQuery__CreateRoleStmt }; #define PG_QUERY__CREATE_ROLE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_role_stmt__descriptor) \ - , PG_QUERY__ROLE_STMT_TYPE__ROLE_STMT_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL } +, PG_QUERY__ROLE_STMT_TYPE__ROLE_STMT_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__AlterRoleStmt @@ -5288,7 +5453,7 @@ struct PgQuery__AlterRoleStmt }; #define PG_QUERY__ALTER_ROLE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_role_stmt__descriptor) \ - , NULL, 0,NULL, 0 } +, NULL, 0,NULL, 0 } struct PgQuery__AlterRoleSetStmt @@ -5300,7 +5465,7 @@ struct PgQuery__AlterRoleSetStmt }; #define PG_QUERY__ALTER_ROLE_SET_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_role_set_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, NULL } +, NULL, (char *)protobuf_c_empty_string, NULL } struct PgQuery__DropRoleStmt @@ -5312,7 +5477,7 @@ struct PgQuery__DropRoleStmt }; #define PG_QUERY__DROP_ROLE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_role_stmt__descriptor) \ - , 0,NULL, 0 } +, 0,NULL, 0 } struct PgQuery__CreateSeqStmt @@ -5327,7 +5492,7 @@ struct PgQuery__CreateSeqStmt }; #define PG_QUERY__CREATE_SEQ_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_seq_stmt__descriptor) \ - , NULL, 0,NULL, 0, 0, 0 } +, NULL, 0,NULL, 0, 0, 0 } struct PgQuery__AlterSeqStmt @@ -5341,7 +5506,7 @@ struct PgQuery__AlterSeqStmt }; #define PG_QUERY__ALTER_SEQ_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_seq_stmt__descriptor) \ - , NULL, 0,NULL, 0, 0 } +, NULL, 0,NULL, 0, 0 } struct PgQuery__DefineStmt @@ -5360,7 +5525,7 @@ struct PgQuery__DefineStmt }; #define PG_QUERY__DEFINE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__define_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0, 0,NULL, 0,NULL, 0,NULL, 0, 0 } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0, 0,NULL, 0,NULL, 0,NULL, 0, 0 } struct PgQuery__CreateDomainStmt @@ -5375,7 +5540,7 @@ struct PgQuery__CreateDomainStmt }; #define PG_QUERY__CREATE_DOMAIN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_domain_stmt__descriptor) \ - , 0,NULL, NULL, NULL, 0,NULL } +, 0,NULL, NULL, NULL, 0,NULL } struct PgQuery__CreateOpClassStmt @@ -5393,7 +5558,7 @@ struct PgQuery__CreateOpClassStmt }; #define PG_QUERY__CREATE_OP_CLASS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_op_class_stmt__descriptor) \ - , 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0 } +, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0 } struct PgQuery__CreateOpClassItem @@ -5410,7 +5575,7 @@ struct PgQuery__CreateOpClassItem }; #define PG_QUERY__CREATE_OP_CLASS_ITEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_op_class_item__descriptor) \ - , 0, NULL, 0, 0,NULL, 0,NULL, NULL } +, 0, NULL, 0, 0,NULL, 0,NULL, NULL } struct PgQuery__CreateOpFamilyStmt @@ -5422,7 +5587,7 @@ struct PgQuery__CreateOpFamilyStmt }; #define PG_QUERY__CREATE_OP_FAMILY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_op_family_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string } +, 0,NULL, (char *)protobuf_c_empty_string } struct PgQuery__AlterOpFamilyStmt @@ -5437,7 +5602,7 @@ struct PgQuery__AlterOpFamilyStmt }; #define PG_QUERY__ALTER_OP_FAMILY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_op_family_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, 0, 0,NULL } +, 0,NULL, (char *)protobuf_c_empty_string, 0, 0,NULL } struct PgQuery__DropStmt @@ -5452,7 +5617,7 @@ struct PgQuery__DropStmt }; #define PG_QUERY__DROP_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_stmt__descriptor) \ - , 0,NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0, 0 } +, 0,NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0, 0 } struct PgQuery__TruncateStmt @@ -5465,7 +5630,7 @@ struct PgQuery__TruncateStmt }; #define PG_QUERY__TRUNCATE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__truncate_stmt__descriptor) \ - , 0,NULL, 0, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } +, 0,NULL, 0, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } struct PgQuery__CommentStmt @@ -5477,7 +5642,7 @@ struct PgQuery__CommentStmt }; #define PG_QUERY__COMMENT_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__comment_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string } struct PgQuery__SecLabelStmt @@ -5490,7 +5655,7 @@ struct PgQuery__SecLabelStmt }; #define PG_QUERY__SEC_LABEL_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__sec_label_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } struct PgQuery__DeclareCursorStmt @@ -5502,7 +5667,7 @@ struct PgQuery__DeclareCursorStmt }; #define PG_QUERY__DECLARE_CURSOR_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__declare_cursor_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, NULL } +, (char *)protobuf_c_empty_string, 0, NULL } struct PgQuery__ClosePortalStmt @@ -5512,7 +5677,7 @@ struct PgQuery__ClosePortalStmt }; #define PG_QUERY__CLOSE_PORTAL_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__close_portal_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__FetchStmt @@ -5525,7 +5690,7 @@ struct PgQuery__FetchStmt }; #define PG_QUERY__FETCH_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__fetch_stmt__descriptor) \ - , PG_QUERY__FETCH_DIRECTION__FETCH_DIRECTION_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0 } +, PG_QUERY__FETCH_DIRECTION__FETCH_DIRECTION_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0 } struct PgQuery__IndexStmt @@ -5562,7 +5727,7 @@ struct PgQuery__IndexStmt }; #define PG_QUERY__INDEX_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__index_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } struct PgQuery__CreateStatsStmt @@ -5582,7 +5747,7 @@ struct PgQuery__CreateStatsStmt }; #define PG_QUERY__CREATE_STATS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_stats_stmt__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0 } +, 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__StatsElem @@ -5593,7 +5758,7 @@ struct PgQuery__StatsElem }; #define PG_QUERY__STATS_ELEM__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__stats_elem__descriptor) \ - , (char *)protobuf_c_empty_string, NULL } +, (char *)protobuf_c_empty_string, NULL } struct PgQuery__AlterStatsStmt @@ -5606,7 +5771,7 @@ struct PgQuery__AlterStatsStmt }; #define PG_QUERY__ALTER_STATS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_stats_stmt__descriptor) \ - , 0,NULL, NULL, 0 } +, 0,NULL, NULL, 0 } struct PgQuery__CreateFunctionStmt @@ -5625,7 +5790,7 @@ struct PgQuery__CreateFunctionStmt }; #define PG_QUERY__CREATE_FUNCTION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_function_stmt__descriptor) \ - , 0, 0, 0,NULL, 0,NULL, NULL, 0,NULL, NULL } +, 0, 0, 0,NULL, 0,NULL, NULL, 0,NULL, NULL } struct PgQuery__FunctionParameter @@ -5638,7 +5803,7 @@ struct PgQuery__FunctionParameter }; #define PG_QUERY__FUNCTION_PARAMETER__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__function_parameter__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, PG_QUERY__FUNCTION_PARAMETER_MODE__FUNCTION_PARAMETER_MODE_UNDEFINED, NULL } +, (char *)protobuf_c_empty_string, NULL, PG_QUERY__FUNCTION_PARAMETER_MODE__FUNCTION_PARAMETER_MODE_UNDEFINED, NULL } struct PgQuery__AlterFunctionStmt @@ -5651,7 +5816,7 @@ struct PgQuery__AlterFunctionStmt }; #define PG_QUERY__ALTER_FUNCTION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_function_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, 0,NULL } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, 0,NULL } struct PgQuery__DoStmt @@ -5662,7 +5827,7 @@ struct PgQuery__DoStmt }; #define PG_QUERY__DO_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__do_stmt__descriptor) \ - , 0,NULL } +, 0,NULL } struct PgQuery__InlineCodeBlock @@ -5675,7 +5840,7 @@ struct PgQuery__InlineCodeBlock }; #define PG_QUERY__INLINE_CODE_BLOCK__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__inline_code_block__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0, 0 } +, (char *)protobuf_c_empty_string, 0, 0, 0 } struct PgQuery__CallStmt @@ -5688,7 +5853,7 @@ struct PgQuery__CallStmt }; #define PG_QUERY__CALL_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__call_stmt__descriptor) \ - , NULL, NULL, 0,NULL } +, NULL, NULL, 0,NULL } struct PgQuery__CallContext @@ -5698,7 +5863,7 @@ struct PgQuery__CallContext }; #define PG_QUERY__CALL_CONTEXT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__call_context__descriptor) \ - , 0 } +, 0 } struct PgQuery__RenameStmt @@ -5715,7 +5880,7 @@ struct PgQuery__RenameStmt }; #define PG_QUERY__RENAME_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__rename_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0 } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0 } struct PgQuery__AlterObjectDependsStmt @@ -5729,7 +5894,7 @@ struct PgQuery__AlterObjectDependsStmt }; #define PG_QUERY__ALTER_OBJECT_DEPENDS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_object_depends_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, NULL, 0 } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, NULL, 0 } struct PgQuery__AlterObjectSchemaStmt @@ -5743,7 +5908,7 @@ struct PgQuery__AlterObjectSchemaStmt }; #define PG_QUERY__ALTER_OBJECT_SCHEMA_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_object_schema_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, (char *)protobuf_c_empty_string, 0 } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, (char *)protobuf_c_empty_string, 0 } struct PgQuery__AlterOwnerStmt @@ -5756,7 +5921,7 @@ struct PgQuery__AlterOwnerStmt }; #define PG_QUERY__ALTER_OWNER_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_owner_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, NULL } +, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, NULL } struct PgQuery__AlterOperatorStmt @@ -5768,7 +5933,7 @@ struct PgQuery__AlterOperatorStmt }; #define PG_QUERY__ALTER_OPERATOR_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_operator_stmt__descriptor) \ - , NULL, 0,NULL } +, NULL, 0,NULL } struct PgQuery__AlterTypeStmt @@ -5781,7 +5946,7 @@ struct PgQuery__AlterTypeStmt }; #define PG_QUERY__ALTER_TYPE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_type_stmt__descriptor) \ - , 0,NULL, 0,NULL } +, 0,NULL, 0,NULL } struct PgQuery__RuleStmt @@ -5798,7 +5963,7 @@ struct PgQuery__RuleStmt }; #define PG_QUERY__RULE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__rule_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, NULL, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, 0, 0,NULL, 0 } +, NULL, (char *)protobuf_c_empty_string, NULL, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, 0, 0,NULL, 0 } struct PgQuery__NotifyStmt @@ -5809,7 +5974,7 @@ struct PgQuery__NotifyStmt }; #define PG_QUERY__NOTIFY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__notify_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } struct PgQuery__ListenStmt @@ -5819,7 +5984,7 @@ struct PgQuery__ListenStmt }; #define PG_QUERY__LISTEN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__listen_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__UnlistenStmt @@ -5829,7 +5994,7 @@ struct PgQuery__UnlistenStmt }; #define PG_QUERY__UNLISTEN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__unlisten_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__TransactionStmt @@ -5845,7 +6010,7 @@ struct PgQuery__TransactionStmt }; #define PG_QUERY__TRANSACTION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__transaction_stmt__descriptor) \ - , PG_QUERY__TRANSACTION_STMT_KIND__TRANSACTION_STMT_KIND_UNDEFINED, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0 } +, PG_QUERY__TRANSACTION_STMT_KIND__TRANSACTION_STMT_KIND_UNDEFINED, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__CompositeTypeStmt @@ -5857,7 +6022,7 @@ struct PgQuery__CompositeTypeStmt }; #define PG_QUERY__COMPOSITE_TYPE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__composite_type_stmt__descriptor) \ - , NULL, 0,NULL } +, NULL, 0,NULL } struct PgQuery__CreateEnumStmt @@ -5870,7 +6035,7 @@ struct PgQuery__CreateEnumStmt }; #define PG_QUERY__CREATE_ENUM_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_enum_stmt__descriptor) \ - , 0,NULL, 0,NULL } +, 0,NULL, 0,NULL } struct PgQuery__CreateRangeStmt @@ -5883,7 +6048,7 @@ struct PgQuery__CreateRangeStmt }; #define PG_QUERY__CREATE_RANGE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_range_stmt__descriptor) \ - , 0,NULL, 0,NULL } +, 0,NULL, 0,NULL } struct PgQuery__AlterEnumStmt @@ -5899,7 +6064,7 @@ struct PgQuery__AlterEnumStmt }; #define PG_QUERY__ALTER_ENUM_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_enum_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0 } +, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__ViewStmt @@ -5916,7 +6081,7 @@ struct PgQuery__ViewStmt }; #define PG_QUERY__VIEW_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__view_stmt__descriptor) \ - , NULL, 0,NULL, NULL, 0, 0,NULL, PG_QUERY__VIEW_CHECK_OPTION__VIEW_CHECK_OPTION_UNDEFINED } +, NULL, 0,NULL, NULL, 0, 0,NULL, PG_QUERY__VIEW_CHECK_OPTION__VIEW_CHECK_OPTION_UNDEFINED } struct PgQuery__LoadStmt @@ -5926,7 +6091,7 @@ struct PgQuery__LoadStmt }; #define PG_QUERY__LOAD_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__load_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__CreatedbStmt @@ -5938,7 +6103,7 @@ struct PgQuery__CreatedbStmt }; #define PG_QUERY__CREATEDB_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__createdb_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__AlterDatabaseStmt @@ -5950,7 +6115,7 @@ struct PgQuery__AlterDatabaseStmt }; #define PG_QUERY__ALTER_DATABASE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_database_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__AlterDatabaseRefreshCollStmt @@ -5960,7 +6125,7 @@ struct PgQuery__AlterDatabaseRefreshCollStmt }; #define PG_QUERY__ALTER_DATABASE_REFRESH_COLL_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_database_refresh_coll_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string } struct PgQuery__AlterDatabaseSetStmt @@ -5971,7 +6136,7 @@ struct PgQuery__AlterDatabaseSetStmt }; #define PG_QUERY__ALTER_DATABASE_SET_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_database_set_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL } +, (char *)protobuf_c_empty_string, NULL } struct PgQuery__DropdbStmt @@ -5984,7 +6149,7 @@ struct PgQuery__DropdbStmt }; #define PG_QUERY__DROPDB_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__dropdb_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0,NULL } +, (char *)protobuf_c_empty_string, 0, 0,NULL } struct PgQuery__AlterSystemStmt @@ -5994,7 +6159,7 @@ struct PgQuery__AlterSystemStmt }; #define PG_QUERY__ALTER_SYSTEM_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_system_stmt__descriptor) \ - , NULL } +, NULL } struct PgQuery__ClusterStmt @@ -6007,7 +6172,7 @@ struct PgQuery__ClusterStmt }; #define PG_QUERY__CLUSTER_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__cluster_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0,NULL } +, NULL, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__VacuumStmt @@ -6021,7 +6186,7 @@ struct PgQuery__VacuumStmt }; #define PG_QUERY__VACUUM_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__vacuum_stmt__descriptor) \ - , 0,NULL, 0,NULL, 0 } +, 0,NULL, 0,NULL, 0 } struct PgQuery__VacuumRelation @@ -6034,7 +6199,7 @@ struct PgQuery__VacuumRelation }; #define PG_QUERY__VACUUM_RELATION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__vacuum_relation__descriptor) \ - , NULL, 0, 0,NULL } +, NULL, 0, 0,NULL } struct PgQuery__ExplainStmt @@ -6046,7 +6211,7 @@ struct PgQuery__ExplainStmt }; #define PG_QUERY__EXPLAIN_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__explain_stmt__descriptor) \ - , NULL, 0,NULL } +, NULL, 0,NULL } struct PgQuery__CreateTableAsStmt @@ -6060,7 +6225,7 @@ struct PgQuery__CreateTableAsStmt }; #define PG_QUERY__CREATE_TABLE_AS_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_table_as_stmt__descriptor) \ - , NULL, NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0, 0 } +, NULL, NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0, 0 } struct PgQuery__RefreshMatViewStmt @@ -6072,7 +6237,7 @@ struct PgQuery__RefreshMatViewStmt }; #define PG_QUERY__REFRESH_MAT_VIEW_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__refresh_mat_view_stmt__descriptor) \ - , 0, 0, NULL } +, 0, 0, NULL } struct PgQuery__CheckPointStmt @@ -6081,7 +6246,7 @@ struct PgQuery__CheckPointStmt }; #define PG_QUERY__CHECK_POINT_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__check_point_stmt__descriptor) \ - } + } struct PgQuery__DiscardStmt @@ -6091,7 +6256,7 @@ struct PgQuery__DiscardStmt }; #define PG_QUERY__DISCARD_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__discard_stmt__descriptor) \ - , PG_QUERY__DISCARD_MODE__DISCARD_MODE_UNDEFINED } +, PG_QUERY__DISCARD_MODE__DISCARD_MODE_UNDEFINED } struct PgQuery__LockStmt @@ -6104,7 +6269,7 @@ struct PgQuery__LockStmt }; #define PG_QUERY__LOCK_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__lock_stmt__descriptor) \ - , 0,NULL, 0, 0 } +, 0,NULL, 0, 0 } struct PgQuery__ConstraintsSetStmt @@ -6116,7 +6281,7 @@ struct PgQuery__ConstraintsSetStmt }; #define PG_QUERY__CONSTRAINTS_SET_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__constraints_set_stmt__descriptor) \ - , 0,NULL, 0 } +, 0,NULL, 0 } struct PgQuery__ReindexStmt @@ -6130,7 +6295,7 @@ struct PgQuery__ReindexStmt }; #define PG_QUERY__REINDEX_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__reindex_stmt__descriptor) \ - , PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string, 0,NULL } +, PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__CreateConversionStmt @@ -6146,7 +6311,7 @@ struct PgQuery__CreateConversionStmt }; #define PG_QUERY__CREATE_CONVERSION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_conversion_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 } +, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 } struct PgQuery__CreateCastStmt @@ -6160,7 +6325,7 @@ struct PgQuery__CreateCastStmt }; #define PG_QUERY__CREATE_CAST_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_cast_stmt__descriptor) \ - , NULL, NULL, NULL, PG_QUERY__COERCION_CONTEXT__COERCION_CONTEXT_UNDEFINED, 0 } +, NULL, NULL, NULL, PG_QUERY__COERCION_CONTEXT__COERCION_CONTEXT_UNDEFINED, 0 } struct PgQuery__CreateTransformStmt @@ -6174,7 +6339,7 @@ struct PgQuery__CreateTransformStmt }; #define PG_QUERY__CREATE_TRANSFORM_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_transform_stmt__descriptor) \ - , 0, NULL, (char *)protobuf_c_empty_string, NULL, NULL } +, 0, NULL, (char *)protobuf_c_empty_string, NULL, NULL } struct PgQuery__PrepareStmt @@ -6187,7 +6352,7 @@ struct PgQuery__PrepareStmt }; #define PG_QUERY__PREPARE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__prepare_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, NULL } +, (char *)protobuf_c_empty_string, 0,NULL, NULL } struct PgQuery__ExecuteStmt @@ -6199,7 +6364,7 @@ struct PgQuery__ExecuteStmt }; #define PG_QUERY__EXECUTE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__execute_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } +, (char *)protobuf_c_empty_string, 0,NULL } struct PgQuery__DeallocateStmt @@ -6211,7 +6376,7 @@ struct PgQuery__DeallocateStmt }; #define PG_QUERY__DEALLOCATE_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__deallocate_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0 } +, (char *)protobuf_c_empty_string, 0, 0 } struct PgQuery__DropOwnedStmt @@ -6223,7 +6388,7 @@ struct PgQuery__DropOwnedStmt }; #define PG_QUERY__DROP_OWNED_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_owned_stmt__descriptor) \ - , 0,NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } +, 0,NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } struct PgQuery__ReassignOwnedStmt @@ -6235,7 +6400,7 @@ struct PgQuery__ReassignOwnedStmt }; #define PG_QUERY__REASSIGN_OWNED_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__reassign_owned_stmt__descriptor) \ - , 0,NULL, NULL } +, 0,NULL, NULL } struct PgQuery__AlterTSDictionaryStmt @@ -6248,7 +6413,7 @@ struct PgQuery__AlterTSDictionaryStmt }; #define PG_QUERY__ALTER_TSDICTIONARY_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_tsdictionary_stmt__descriptor) \ - , 0,NULL, 0,NULL } +, 0,NULL, 0,NULL } struct PgQuery__AlterTSConfigurationStmt @@ -6267,7 +6432,7 @@ struct PgQuery__AlterTSConfigurationStmt }; #define PG_QUERY__ALTER_TSCONFIGURATION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_tsconfiguration_stmt__descriptor) \ - , PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0, 0, 0 } +, PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0, 0, 0 } struct PgQuery__PublicationTable @@ -6280,7 +6445,7 @@ struct PgQuery__PublicationTable }; #define PG_QUERY__PUBLICATION_TABLE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__publication_table__descriptor) \ - , NULL, NULL, 0,NULL } +, NULL, NULL, 0,NULL } struct PgQuery__PublicationObjSpec @@ -6293,7 +6458,7 @@ struct PgQuery__PublicationObjSpec }; #define PG_QUERY__PUBLICATION_OBJ_SPEC__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__publication_obj_spec__descriptor) \ - , PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, NULL, 0 } +, PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, NULL, 0 } struct PgQuery__CreatePublicationStmt @@ -6308,7 +6473,7 @@ struct PgQuery__CreatePublicationStmt }; #define PG_QUERY__CREATE_PUBLICATION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_publication_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0 } +, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0 } struct PgQuery__AlterPublicationStmt @@ -6324,7 +6489,7 @@ struct PgQuery__AlterPublicationStmt }; #define PG_QUERY__ALTER_PUBLICATION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_publication_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, PG_QUERY__ALTER_PUBLICATION_ACTION__ALTER_PUBLICATION_ACTION_UNDEFINED } +, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, PG_QUERY__ALTER_PUBLICATION_ACTION__ALTER_PUBLICATION_ACTION_UNDEFINED } struct PgQuery__CreateSubscriptionStmt @@ -6339,7 +6504,7 @@ struct PgQuery__CreateSubscriptionStmt }; #define PG_QUERY__CREATE_SUBSCRIPTION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_subscription_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } struct PgQuery__AlterSubscriptionStmt @@ -6355,7 +6520,7 @@ struct PgQuery__AlterSubscriptionStmt }; #define PG_QUERY__ALTER_SUBSCRIPTION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_subscription_stmt__descriptor) \ - , PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } +, PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } struct PgQuery__DropSubscriptionStmt @@ -6367,7 +6532,7 @@ struct PgQuery__DropSubscriptionStmt }; #define PG_QUERY__DROP_SUBSCRIPTION_STMT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_subscription_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } +, (char *)protobuf_c_empty_string, 0, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } struct PgQuery__ScanToken @@ -6380,7 +6545,7 @@ struct PgQuery__ScanToken }; #define PG_QUERY__SCAN_TOKEN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__scan_token__descriptor) \ - , 0, 0, PG_QUERY__TOKEN__NUL, PG_QUERY__KEYWORD_KIND__NO_KEYWORD } +, 0, 0, PG_QUERY__TOKEN__NUL, PG_QUERY__KEYWORD_KIND__NO_KEYWORD } struct PgQuery__SummaryResult__Table @@ -6393,7 +6558,7 @@ struct PgQuery__SummaryResult__Table }; #define PG_QUERY__SUMMARY_RESULT__TABLE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__summary_result__table__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__SUMMARY_RESULT__CONTEXT__None } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__SUMMARY_RESULT__CONTEXT__None } struct PgQuery__SummaryResult__AliasesEntry @@ -6404,7 +6569,7 @@ struct PgQuery__SummaryResult__AliasesEntry }; #define PG_QUERY__SUMMARY_RESULT__ALIASES_ENTRY__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__summary_result__aliases_entry__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } struct PgQuery__SummaryResult__Function @@ -6420,7 +6585,7 @@ struct PgQuery__SummaryResult__Function }; #define PG_QUERY__SUMMARY_RESULT__FUNCTION__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__summary_result__function__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__SUMMARY_RESULT__CONTEXT__None } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__SUMMARY_RESULT__CONTEXT__None } struct PgQuery__SummaryResult__FilterColumn @@ -6438,7 +6603,7 @@ struct PgQuery__SummaryResult__FilterColumn }; #define PG_QUERY__SUMMARY_RESULT__FILTER_COLUMN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__summary_result__filter_column__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } +, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } /* @@ -6472,7 +6637,732 @@ struct PgQuery__SummaryResult }; #define PG_QUERY__SUMMARY_RESULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&pg_query__summary_result__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string } +, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string } + + +struct PgQuery__PLpgSQLParseResult +{ + ProtobufCMessage base; + int32_t version; + size_t n_plpgsql_funcs; + PgQuery__PLpgSQLFunction **plpgsql_funcs; +}; +#define PG_QUERY__PLPG_SQLPARSE_RESULT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sqlparse_result__descriptor) \ +, 0, 0,NULL } + + +typedef enum { + PG_QUERY__PLPG_SQL_STMT__STMT__NOT_SET = 0, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_BLOCK = 1, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ASSIGN = 2, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_IF = 3, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CASE_ = 4, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_LOOP = 5, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_WHILE = 6, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORI = 7, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORS = 8, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORC = 9, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FOREACH_A = 10, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_EXIT = 11, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN = 12, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN_NEXT = 13, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN_QUERY = 14, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RAISE = 15, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ASSERT = 16, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_EXECSQL = 17, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_DYNEXECUTE = 18, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_DYNFORS = 19, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_GETDIAG = 20, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_OPEN = 21, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FETCH = 22, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CLOSE = 23, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_PERFORM = 24, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CALL = 25, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_COMMIT = 26, + PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ROLLBACK = 27 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_STMT__STMT__CASE) +} PgQuery__PLpgSQLStmt__StmtCase; + +/* + * PLpgSQL statement wrapper with oneof for polymorphism + */ +struct PgQuery__PLpgSQLStmt +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmt__StmtCase stmt_case; + union { + PgQuery__PLpgSQLStmtAssert *stmt_assert; + PgQuery__PLpgSQLStmtAssign *stmt_assign; + PgQuery__PLpgSQLStmtBlock *stmt_block; + PgQuery__PLpgSQLStmtCall *stmt_call; + PgQuery__PLpgSQLStmtCase *stmt_case_; + PgQuery__PLpgSQLStmtClose *stmt_close; + PgQuery__PLpgSQLStmtCommit *stmt_commit; + PgQuery__PLpgSQLStmtDynexecute *stmt_dynexecute; + PgQuery__PLpgSQLStmtDynfors *stmt_dynfors; + PgQuery__PLpgSQLStmtExecsql *stmt_execsql; + PgQuery__PLpgSQLStmtExit *stmt_exit; + PgQuery__PLpgSQLStmtFetch *stmt_fetch; + PgQuery__PLpgSQLStmtForc *stmt_forc; + PgQuery__PLpgSQLStmtForeachA *stmt_foreach_a; + PgQuery__PLpgSQLStmtFori *stmt_fori; + PgQuery__PLpgSQLStmtFors *stmt_fors; + PgQuery__PLpgSQLStmtGetdiag *stmt_getdiag; + PgQuery__PLpgSQLStmtIf *stmt_if; + PgQuery__PLpgSQLStmtLoop *stmt_loop; + PgQuery__PLpgSQLStmtOpen *stmt_open; + PgQuery__PLpgSQLStmtPerform *stmt_perform; + PgQuery__PLpgSQLStmtRaise *stmt_raise; + PgQuery__PLpgSQLStmtReturn *stmt_return; + PgQuery__PLpgSQLStmtReturnNext *stmt_return_next; + PgQuery__PLpgSQLStmtReturnQuery *stmt_return_query; + PgQuery__PLpgSQLStmtRollback *stmt_rollback; + PgQuery__PLpgSQLStmtWhile *stmt_while; + }; +}; +#define PG_QUERY__PLPG_SQL_STMT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT__STMT__NOT_SET, {0} } + + +typedef enum { + PG_QUERY__PLPG_SQL_DATUM__DATUM__NOT_SET = 0, + PG_QUERY__PLPG_SQL_DATUM__DATUM_VAR = 1, + PG_QUERY__PLPG_SQL_DATUM__DATUM_ROW = 3, + PG_QUERY__PLPG_SQL_DATUM__DATUM_REC = 4, + PG_QUERY__PLPG_SQL_DATUM__DATUM_RECFIELD = 5 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PLPG_SQL_DATUM__DATUM__CASE) +} PgQuery__PLpgSQLDatum__DatumCase; + +/* + * PLpgSQL datum wrapper with oneof for polymorphism + */ +struct PgQuery__PLpgSQLDatum +{ + ProtobufCMessage base; + PgQuery__PLpgSQLDatum__DatumCase datum_case; + union { + PgQuery__PLpgSQLRec *rec; + PgQuery__PLpgSQLRecfield *recfield; + PgQuery__PLpgSQLRow *row; + PgQuery__PLpgSQLVar *var; + }; +}; +#define PG_QUERY__PLPG_SQL_DATUM__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_datum__descriptor) \ +, PG_QUERY__PLPG_SQL_DATUM__DATUM__NOT_SET, {0} } + + +struct PgQuery__PLpgSQLType +{ + ProtobufCMessage base; + char *typname; + PgQuery__PLpgSQLTypeType ttype; +}; +#define PG_QUERY__PLPG_SQL_TYPE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_type__descriptor) \ +, (char *)protobuf_c_empty_string, PG_QUERY__PLPG_SQL_TYPE_TYPE__P__LPG_SQL_TYPE_TYPE_UNDEFINED } + + +struct PgQuery__PLpgSQLExpr +{ + ProtobufCMessage base; + char *query; + int32_t parse_mode; +}; +#define PG_QUERY__PLPG_SQL_EXPR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_expr__descriptor) \ +, (char *)protobuf_c_empty_string, 0 } + + +struct PgQuery__PLpgSQLVar +{ + ProtobufCMessage base; + PgQuery__PLpgSQLDatumType dtype; + int32_t dno; + char *refname; + int32_t lineno; + protobuf_c_boolean isconst; + protobuf_c_boolean notnull; + PgQuery__PLpgSQLExpr *default_val; + PgQuery__PLpgSQLType *datatype; + PgQuery__PLpgSQLExpr *cursor_explicit_expr; + int32_t cursor_explicit_argrow; + int32_t cursor_options; + PgQuery__PLpgSQLPromiseType promise; +}; +#define PG_QUERY__PLPG_SQL_VAR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_var__descriptor) \ +, PG_QUERY__PLPG_SQL_DATUM_TYPE__P__LPG_SQL_DATUM_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0, 0, 0, NULL, NULL, NULL, 0, 0, PG_QUERY__PLPG_SQL_PROMISE_TYPE__P__LPG_SQL_PROMISE_TYPE_UNDEFINED } + + +struct PgQuery__PLpgSQLRow +{ + ProtobufCMessage base; + PgQuery__PLpgSQLDatumType dtype; + int32_t dno; + char *refname; + int32_t lineno; + protobuf_c_boolean isconst; + protobuf_c_boolean notnull; + PgQuery__PLpgSQLExpr *default_val; + int32_t nfields; +}; +#define PG_QUERY__PLPG_SQL_ROW__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_row__descriptor) \ +, PG_QUERY__PLPG_SQL_DATUM_TYPE__P__LPG_SQL_DATUM_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0, 0, 0, NULL, 0 } + + +struct PgQuery__PLpgSQLRec +{ + ProtobufCMessage base; + PgQuery__PLpgSQLDatumType dtype; + int32_t dno; + char *refname; + int32_t lineno; + protobuf_c_boolean isconst; + protobuf_c_boolean notnull; + PgQuery__PLpgSQLExpr *default_val; + PgQuery__PLpgSQLType *datatype; + int32_t firstfield; +}; +#define PG_QUERY__PLPG_SQL_REC__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_rec__descriptor) \ +, PG_QUERY__PLPG_SQL_DATUM_TYPE__P__LPG_SQL_DATUM_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0, 0, 0, NULL, NULL, 0 } + + +struct PgQuery__PLpgSQLRecfield +{ + ProtobufCMessage base; + PgQuery__PLpgSQLDatumType dtype; + int32_t dno; + char *fieldname; + int32_t recparentno; + int32_t nextfield; +}; +#define PG_QUERY__PLPG_SQL_RECFIELD__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_recfield__descriptor) \ +, PG_QUERY__PLPG_SQL_DATUM_TYPE__P__LPG_SQL_DATUM_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0, 0 } + + +struct PgQuery__PLpgSQLCondition +{ + ProtobufCMessage base; + int32_t sqlerrstate; + char *condname; +}; +#define PG_QUERY__PLPG_SQL_CONDITION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_condition__descriptor) \ +, 0, (char *)protobuf_c_empty_string } + + +struct PgQuery__PLpgSQLExceptionBlock +{ + ProtobufCMessage base; + int32_t sqlstate_varno; + int32_t sqlerrm_varno; + size_t n_exc_list; + PgQuery__PLpgSQLException **exc_list; +}; +#define PG_QUERY__PLPG_SQL_EXCEPTION_BLOCK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_exception_block__descriptor) \ +, 0, 0, 0,NULL } + + +struct PgQuery__PLpgSQLException +{ + ProtobufCMessage base; + int32_t lineno; + PgQuery__PLpgSQLCondition *conditions; + size_t n_action; + PgQuery__PLpgSQLStmt **action; +}; +#define PG_QUERY__PLPG_SQL_EXCEPTION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_exception__descriptor) \ +, 0, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtBlock +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + size_t n_body; + PgQuery__PLpgSQLStmt **body; + int32_t n_initvars; + PgQuery__PLpgSQLExceptionBlock *exceptions; +}; +#define PG_QUERY__PLPG_SQL_STMT_BLOCK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_block__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0,NULL, 0, NULL } + + +struct PgQuery__PLpgSQLStmtAssign +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + int32_t varno; + PgQuery__PLpgSQLExpr *expr; +}; +#define PG_QUERY__PLPG_SQL_STMT_ASSIGN__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_assign__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0, NULL } + + +struct PgQuery__PLpgSQLStmtPerform +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *expr; +}; +#define PG_QUERY__PLPG_SQL_STMT_PERFORM__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_perform__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL } + + +struct PgQuery__PLpgSQLStmtCall +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *expr; + protobuf_c_boolean is_call; + PgQuery__PLpgSQLDatum *target; +}; +#define PG_QUERY__PLPG_SQL_STMT_CALL__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_call__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0, NULL } + + +struct PgQuery__PLpgSQLStmtCommit +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + protobuf_c_boolean chain; +}; +#define PG_QUERY__PLPG_SQL_STMT_COMMIT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_commit__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0 } + + +struct PgQuery__PLpgSQLStmtRollback +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + protobuf_c_boolean chain; +}; +#define PG_QUERY__PLPG_SQL_STMT_ROLLBACK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_rollback__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0 } + + +struct PgQuery__PLpgSQLDiagItem +{ + ProtobufCMessage base; + PgQuery__PLpgSQLGetdiagKind kind; + int32_t target; +}; +#define PG_QUERY__PLPG_SQL_DIAG_ITEM__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_diag_item__descriptor) \ +, PG_QUERY__PLPG_SQL_GETDIAG_KIND__P__LPG_SQL_GETDIAG_KIND_UNDEFINED, 0 } + + +struct PgQuery__PLpgSQLStmtGetdiag +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + protobuf_c_boolean is_stacked; + size_t n_diag_items; + PgQuery__PLpgSQLDiagItem **diag_items; +}; +#define PG_QUERY__PLPG_SQL_STMT_GETDIAG__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_getdiag__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0, 0,NULL } + + +struct PgQuery__PLpgSQLStmtIf +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *cond; + size_t n_then_body; + PgQuery__PLpgSQLStmt **then_body; + size_t n_elsif_list; + PgQuery__PLpgSQLIfElsif **elsif_list; + size_t n_else_body; + PgQuery__PLpgSQLStmt **else_body; +}; +#define PG_QUERY__PLPG_SQL_STMT_IF__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_if__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0,NULL, 0,NULL, 0,NULL } + + +struct PgQuery__PLpgSQLIfElsif +{ + ProtobufCMessage base; + int32_t lineno; + PgQuery__PLpgSQLExpr *cond; + size_t n_stmts; + PgQuery__PLpgSQLStmt **stmts; +}; +#define PG_QUERY__PLPG_SQL_IF_ELSIF__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_if_elsif__descriptor) \ +, 0, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtCase +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *t_expr; + int32_t t_varno; + size_t n_case_when_list; + PgQuery__PLpgSQLCaseWhen **case_when_list; + protobuf_c_boolean have_else; + size_t n_else_stmts; + PgQuery__PLpgSQLStmt **else_stmts; +}; +#define PG_QUERY__PLPG_SQL_STMT_CASE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_case__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0, 0,NULL, 0, 0,NULL } + + +struct PgQuery__PLpgSQLCaseWhen +{ + ProtobufCMessage base; + int32_t lineno; + PgQuery__PLpgSQLExpr *expr; + size_t n_stmts; + PgQuery__PLpgSQLStmt **stmts; +}; +#define PG_QUERY__PLPG_SQL_CASE_WHEN__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_case_when__descriptor) \ +, 0, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtLoop +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + size_t n_body; + PgQuery__PLpgSQLStmt **body; +}; +#define PG_QUERY__PLPG_SQL_STMT_LOOP__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_loop__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0,NULL } + + +struct PgQuery__PLpgSQLStmtWhile +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + PgQuery__PLpgSQLExpr *cond; + size_t n_body; + PgQuery__PLpgSQLStmt **body; +}; +#define PG_QUERY__PLPG_SQL_STMT_WHILE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_while__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtFori +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + PgQuery__PLpgSQLVar *var; + PgQuery__PLpgSQLExpr *lower; + PgQuery__PLpgSQLExpr *upper; + PgQuery__PLpgSQLExpr *step; + int32_t reverse; + size_t n_body; + PgQuery__PLpgSQLStmt **body; +}; +#define PG_QUERY__PLPG_SQL_STMT_FORI__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_fori__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, NULL, NULL, NULL, NULL, 0, 0,NULL } + + +struct PgQuery__PLpgSQLStmtFors +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + PgQuery__PLpgSQLDatum *var; + size_t n_body; + PgQuery__PLpgSQLStmt **body; + PgQuery__PLpgSQLExpr *query; +}; +#define PG_QUERY__PLPG_SQL_STMT_FORS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_fors__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL, NULL } + + +struct PgQuery__PLpgSQLStmtForc +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + PgQuery__PLpgSQLDatum *var; + size_t n_body; + PgQuery__PLpgSQLStmt **body; + int32_t curvar; + PgQuery__PLpgSQLExpr *argquery; +}; +#define PG_QUERY__PLPG_SQL_STMT_FORC__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_forc__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0, NULL } + + +struct PgQuery__PLpgSQLStmtDynfors +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + PgQuery__PLpgSQLDatum *var; + size_t n_body; + PgQuery__PLpgSQLStmt **body; + PgQuery__PLpgSQLExpr *query; + size_t n_params; + PgQuery__PLpgSQLExpr **params; +}; +#define PG_QUERY__PLPG_SQL_STMT_DYNFORS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_dynfors__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtForeachA +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + char *label; + int32_t varno; + int32_t slice; + PgQuery__PLpgSQLExpr *expr; + size_t n_body; + PgQuery__PLpgSQLStmt **body; +}; +#define PG_QUERY__PLPG_SQL_STMT_FOREACH_A__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_foreach_a__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0, 0, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtOpen +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + int32_t curvar; + int32_t cursor_options; + PgQuery__PLpgSQLExpr *argquery; + PgQuery__PLpgSQLExpr *query; + PgQuery__PLpgSQLExpr *dynquery; + size_t n_params; + PgQuery__PLpgSQLExpr **params; +}; +#define PG_QUERY__PLPG_SQL_STMT_OPEN__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_open__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0, 0, NULL, NULL, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtFetch +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLDatum *target; + int32_t curvar; + int32_t direction; + int64_t how_many; + PgQuery__PLpgSQLExpr *expr; + protobuf_c_boolean is_move; + protobuf_c_boolean returns_multiple_rows; +}; +#define PG_QUERY__PLPG_SQL_STMT_FETCH__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_fetch__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0, 0, 0, NULL, 0, 0 } + + +struct PgQuery__PLpgSQLStmtClose +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + int32_t curvar; +}; +#define PG_QUERY__PLPG_SQL_STMT_CLOSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_close__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0 } + + +struct PgQuery__PLpgSQLStmtExit +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + protobuf_c_boolean is_exit; + char *label; + PgQuery__PLpgSQLExpr *cond; +}; +#define PG_QUERY__PLPG_SQL_STMT_EXIT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_exit__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0, (char *)protobuf_c_empty_string, NULL } + + +struct PgQuery__PLpgSQLStmtReturn +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *expr; + int32_t retvarno; +}; +#define PG_QUERY__PLPG_SQL_STMT_RETURN__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_return__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0 } + + +struct PgQuery__PLpgSQLStmtReturnNext +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *expr; + int32_t retvarno; +}; +#define PG_QUERY__PLPG_SQL_STMT_RETURN_NEXT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_return_next__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0 } + + +struct PgQuery__PLpgSQLStmtReturnQuery +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *query; + PgQuery__PLpgSQLExpr *dynquery; + size_t n_params; + PgQuery__PLpgSQLExpr **params; +}; +#define PG_QUERY__PLPG_SQL_STMT_RETURN_QUERY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_return_query__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLStmtRaise +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + int32_t elog_level; + char *condname; + char *message; + size_t n_params; + PgQuery__PLpgSQLExpr **params; + size_t n_options; + PgQuery__PLpgSQLRaiseOption **options; +}; +#define PG_QUERY__PLPG_SQL_STMT_RAISE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_raise__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, 0, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } + + +struct PgQuery__PLpgSQLRaiseOption +{ + ProtobufCMessage base; + PgQuery__PLpgSQLRaiseOptionType opt_type; + PgQuery__PLpgSQLExpr *expr; +}; +#define PG_QUERY__PLPG_SQL_RAISE_OPTION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_raise_option__descriptor) \ +, PG_QUERY__PLPG_SQL_RAISE_OPTION_TYPE__P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED, NULL } + + +struct PgQuery__PLpgSQLStmtAssert +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *cond; + PgQuery__PLpgSQLExpr *message; +}; +#define PG_QUERY__PLPG_SQL_STMT_ASSERT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_assert__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, NULL } + + +struct PgQuery__PLpgSQLStmtExecsql +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *sqlstmt; + protobuf_c_boolean mod_stmt; + protobuf_c_boolean mod_stmt_set; + protobuf_c_boolean into; + protobuf_c_boolean strict; + PgQuery__PLpgSQLDatum *target; +}; +#define PG_QUERY__PLPG_SQL_STMT_EXECSQL__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_execsql__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0, 0, 0, 0, NULL } + + +struct PgQuery__PLpgSQLStmtDynexecute +{ + ProtobufCMessage base; + PgQuery__PLpgSQLStmtType cmd_type; + int32_t lineno; + PgQuery__PLpgSQLExpr *query; + protobuf_c_boolean into; + protobuf_c_boolean strict; + PgQuery__PLpgSQLDatum *target; + size_t n_params; + PgQuery__PLpgSQLExpr **params; +}; +#define PG_QUERY__PLPG_SQL_STMT_DYNEXECUTE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_stmt_dynexecute__descriptor) \ +, PG_QUERY__PLPG_SQL_STMT_TYPE__P__LPG_SQL_STMT_TYPE_UNDEFINED, 0, NULL, 0, 0, NULL, 0,NULL } + + +struct PgQuery__PLpgSQLFunction +{ + ProtobufCMessage base; + char *fn_signature; + PgQuery__PLpgSQLTrigtype fn_is_trigger; + int32_t out_param_varno; + int32_t found_varno; + int32_t new_varno; + int32_t old_varno; + PgQuery__PLpgSQLResolveOption resolve_option; + protobuf_c_boolean print_strict_params; + int32_t extra_warnings; + int32_t extra_errors; + int32_t ndatums; + PgQuery__PLpgSQLStmtBlock *action; +}; +#define PG_QUERY__PLPG_SQL_FUNCTION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&pg_query__plpg_sql_function__descriptor) \ +, (char *)protobuf_c_empty_string, PG_QUERY__PLPG_SQL_TRIGTYPE__P__LPG_SQL_TRIGTYPE_UNDEFINED, 0, 0, 0, 0, PG_QUERY__PLPG_SQL_RESOLVE_OPTION__P__LPG_SQL_RESOLVE_OPTION_UNDEFINED, 0, 0, 0, 0, NULL } /* PgQuery__ParseResult methods */ @@ -6483,5196 +7373,6032 @@ size_t pg_query__parse_result__get_packed_size size_t pg_query__parse_result__pack (const PgQuery__ParseResult *message, uint8_t *out); -size_t pg_query__parse_result__pack_to_buffer - (const PgQuery__ParseResult *message, +size_t pg_query__parse_result__pack_to_buffer + (const PgQuery__ParseResult *message, + ProtobufCBuffer *buffer); +PgQuery__ParseResult * + pg_query__parse_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__parse_result__free_unpacked + (PgQuery__ParseResult *message, + ProtobufCAllocator *allocator); +/* PgQuery__ScanResult methods */ +void pg_query__scan_result__init + (PgQuery__ScanResult *message); +size_t pg_query__scan_result__get_packed_size + (const PgQuery__ScanResult *message); +size_t pg_query__scan_result__pack + (const PgQuery__ScanResult *message, + uint8_t *out); +size_t pg_query__scan_result__pack_to_buffer + (const PgQuery__ScanResult *message, + ProtobufCBuffer *buffer); +PgQuery__ScanResult * + pg_query__scan_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__scan_result__free_unpacked + (PgQuery__ScanResult *message, + ProtobufCAllocator *allocator); +/* PgQuery__Node methods */ +void pg_query__node__init + (PgQuery__Node *message); +size_t pg_query__node__get_packed_size + (const PgQuery__Node *message); +size_t pg_query__node__pack + (const PgQuery__Node *message, + uint8_t *out); +size_t pg_query__node__pack_to_buffer + (const PgQuery__Node *message, + ProtobufCBuffer *buffer); +PgQuery__Node * + pg_query__node__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__node__free_unpacked + (PgQuery__Node *message, + ProtobufCAllocator *allocator); +/* PgQuery__Integer methods */ +void pg_query__integer__init + (PgQuery__Integer *message); +size_t pg_query__integer__get_packed_size + (const PgQuery__Integer *message); +size_t pg_query__integer__pack + (const PgQuery__Integer *message, + uint8_t *out); +size_t pg_query__integer__pack_to_buffer + (const PgQuery__Integer *message, + ProtobufCBuffer *buffer); +PgQuery__Integer * + pg_query__integer__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__integer__free_unpacked + (PgQuery__Integer *message, + ProtobufCAllocator *allocator); +/* PgQuery__Float methods */ +void pg_query__float__init + (PgQuery__Float *message); +size_t pg_query__float__get_packed_size + (const PgQuery__Float *message); +size_t pg_query__float__pack + (const PgQuery__Float *message, + uint8_t *out); +size_t pg_query__float__pack_to_buffer + (const PgQuery__Float *message, + ProtobufCBuffer *buffer); +PgQuery__Float * + pg_query__float__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__float__free_unpacked + (PgQuery__Float *message, + ProtobufCAllocator *allocator); +/* PgQuery__Boolean methods */ +void pg_query__boolean__init + (PgQuery__Boolean *message); +size_t pg_query__boolean__get_packed_size + (const PgQuery__Boolean *message); +size_t pg_query__boolean__pack + (const PgQuery__Boolean *message, + uint8_t *out); +size_t pg_query__boolean__pack_to_buffer + (const PgQuery__Boolean *message, + ProtobufCBuffer *buffer); +PgQuery__Boolean * + pg_query__boolean__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__boolean__free_unpacked + (PgQuery__Boolean *message, + ProtobufCAllocator *allocator); +/* PgQuery__String methods */ +void pg_query__string__init + (PgQuery__String *message); +size_t pg_query__string__get_packed_size + (const PgQuery__String *message); +size_t pg_query__string__pack + (const PgQuery__String *message, + uint8_t *out); +size_t pg_query__string__pack_to_buffer + (const PgQuery__String *message, + ProtobufCBuffer *buffer); +PgQuery__String * + pg_query__string__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__string__free_unpacked + (PgQuery__String *message, + ProtobufCAllocator *allocator); +/* PgQuery__BitString methods */ +void pg_query__bit_string__init + (PgQuery__BitString *message); +size_t pg_query__bit_string__get_packed_size + (const PgQuery__BitString *message); +size_t pg_query__bit_string__pack + (const PgQuery__BitString *message, + uint8_t *out); +size_t pg_query__bit_string__pack_to_buffer + (const PgQuery__BitString *message, + ProtobufCBuffer *buffer); +PgQuery__BitString * + pg_query__bit_string__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__bit_string__free_unpacked + (PgQuery__BitString *message, + ProtobufCAllocator *allocator); +/* PgQuery__List methods */ +void pg_query__list__init + (PgQuery__List *message); +size_t pg_query__list__get_packed_size + (const PgQuery__List *message); +size_t pg_query__list__pack + (const PgQuery__List *message, + uint8_t *out); +size_t pg_query__list__pack_to_buffer + (const PgQuery__List *message, + ProtobufCBuffer *buffer); +PgQuery__List * + pg_query__list__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__list__free_unpacked + (PgQuery__List *message, + ProtobufCAllocator *allocator); +/* PgQuery__OidList methods */ +void pg_query__oid_list__init + (PgQuery__OidList *message); +size_t pg_query__oid_list__get_packed_size + (const PgQuery__OidList *message); +size_t pg_query__oid_list__pack + (const PgQuery__OidList *message, + uint8_t *out); +size_t pg_query__oid_list__pack_to_buffer + (const PgQuery__OidList *message, + ProtobufCBuffer *buffer); +PgQuery__OidList * + pg_query__oid_list__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__oid_list__free_unpacked + (PgQuery__OidList *message, + ProtobufCAllocator *allocator); +/* PgQuery__IntList methods */ +void pg_query__int_list__init + (PgQuery__IntList *message); +size_t pg_query__int_list__get_packed_size + (const PgQuery__IntList *message); +size_t pg_query__int_list__pack + (const PgQuery__IntList *message, + uint8_t *out); +size_t pg_query__int_list__pack_to_buffer + (const PgQuery__IntList *message, + ProtobufCBuffer *buffer); +PgQuery__IntList * + pg_query__int_list__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__int_list__free_unpacked + (PgQuery__IntList *message, + ProtobufCAllocator *allocator); +/* PgQuery__AConst methods */ +void pg_query__a__const__init + (PgQuery__AConst *message); +size_t pg_query__a__const__get_packed_size + (const PgQuery__AConst *message); +size_t pg_query__a__const__pack + (const PgQuery__AConst *message, + uint8_t *out); +size_t pg_query__a__const__pack_to_buffer + (const PgQuery__AConst *message, + ProtobufCBuffer *buffer); +PgQuery__AConst * + pg_query__a__const__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__a__const__free_unpacked + (PgQuery__AConst *message, + ProtobufCAllocator *allocator); +/* PgQuery__Alias methods */ +void pg_query__alias__init + (PgQuery__Alias *message); +size_t pg_query__alias__get_packed_size + (const PgQuery__Alias *message); +size_t pg_query__alias__pack + (const PgQuery__Alias *message, + uint8_t *out); +size_t pg_query__alias__pack_to_buffer + (const PgQuery__Alias *message, + ProtobufCBuffer *buffer); +PgQuery__Alias * + pg_query__alias__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__alias__free_unpacked + (PgQuery__Alias *message, + ProtobufCAllocator *allocator); +/* PgQuery__RangeVar methods */ +void pg_query__range_var__init + (PgQuery__RangeVar *message); +size_t pg_query__range_var__get_packed_size + (const PgQuery__RangeVar *message); +size_t pg_query__range_var__pack + (const PgQuery__RangeVar *message, + uint8_t *out); +size_t pg_query__range_var__pack_to_buffer + (const PgQuery__RangeVar *message, + ProtobufCBuffer *buffer); +PgQuery__RangeVar * + pg_query__range_var__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__range_var__free_unpacked + (PgQuery__RangeVar *message, + ProtobufCAllocator *allocator); +/* PgQuery__TableFunc methods */ +void pg_query__table_func__init + (PgQuery__TableFunc *message); +size_t pg_query__table_func__get_packed_size + (const PgQuery__TableFunc *message); +size_t pg_query__table_func__pack + (const PgQuery__TableFunc *message, + uint8_t *out); +size_t pg_query__table_func__pack_to_buffer + (const PgQuery__TableFunc *message, + ProtobufCBuffer *buffer); +PgQuery__TableFunc * + pg_query__table_func__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__table_func__free_unpacked + (PgQuery__TableFunc *message, + ProtobufCAllocator *allocator); +/* PgQuery__IntoClause methods */ +void pg_query__into_clause__init + (PgQuery__IntoClause *message); +size_t pg_query__into_clause__get_packed_size + (const PgQuery__IntoClause *message); +size_t pg_query__into_clause__pack + (const PgQuery__IntoClause *message, + uint8_t *out); +size_t pg_query__into_clause__pack_to_buffer + (const PgQuery__IntoClause *message, + ProtobufCBuffer *buffer); +PgQuery__IntoClause * + pg_query__into_clause__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__into_clause__free_unpacked + (PgQuery__IntoClause *message, + ProtobufCAllocator *allocator); +/* PgQuery__Var methods */ +void pg_query__var__init + (PgQuery__Var *message); +size_t pg_query__var__get_packed_size + (const PgQuery__Var *message); +size_t pg_query__var__pack + (const PgQuery__Var *message, + uint8_t *out); +size_t pg_query__var__pack_to_buffer + (const PgQuery__Var *message, + ProtobufCBuffer *buffer); +PgQuery__Var * + pg_query__var__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__var__free_unpacked + (PgQuery__Var *message, + ProtobufCAllocator *allocator); +/* PgQuery__Param methods */ +void pg_query__param__init + (PgQuery__Param *message); +size_t pg_query__param__get_packed_size + (const PgQuery__Param *message); +size_t pg_query__param__pack + (const PgQuery__Param *message, + uint8_t *out); +size_t pg_query__param__pack_to_buffer + (const PgQuery__Param *message, + ProtobufCBuffer *buffer); +PgQuery__Param * + pg_query__param__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__param__free_unpacked + (PgQuery__Param *message, + ProtobufCAllocator *allocator); +/* PgQuery__Aggref methods */ +void pg_query__aggref__init + (PgQuery__Aggref *message); +size_t pg_query__aggref__get_packed_size + (const PgQuery__Aggref *message); +size_t pg_query__aggref__pack + (const PgQuery__Aggref *message, + uint8_t *out); +size_t pg_query__aggref__pack_to_buffer + (const PgQuery__Aggref *message, + ProtobufCBuffer *buffer); +PgQuery__Aggref * + pg_query__aggref__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__aggref__free_unpacked + (PgQuery__Aggref *message, + ProtobufCAllocator *allocator); +/* PgQuery__GroupingFunc methods */ +void pg_query__grouping_func__init + (PgQuery__GroupingFunc *message); +size_t pg_query__grouping_func__get_packed_size + (const PgQuery__GroupingFunc *message); +size_t pg_query__grouping_func__pack + (const PgQuery__GroupingFunc *message, + uint8_t *out); +size_t pg_query__grouping_func__pack_to_buffer + (const PgQuery__GroupingFunc *message, + ProtobufCBuffer *buffer); +PgQuery__GroupingFunc * + pg_query__grouping_func__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__grouping_func__free_unpacked + (PgQuery__GroupingFunc *message, + ProtobufCAllocator *allocator); +/* PgQuery__WindowFunc methods */ +void pg_query__window_func__init + (PgQuery__WindowFunc *message); +size_t pg_query__window_func__get_packed_size + (const PgQuery__WindowFunc *message); +size_t pg_query__window_func__pack + (const PgQuery__WindowFunc *message, + uint8_t *out); +size_t pg_query__window_func__pack_to_buffer + (const PgQuery__WindowFunc *message, + ProtobufCBuffer *buffer); +PgQuery__WindowFunc * + pg_query__window_func__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__window_func__free_unpacked + (PgQuery__WindowFunc *message, + ProtobufCAllocator *allocator); +/* PgQuery__WindowFuncRunCondition methods */ +void pg_query__window_func_run_condition__init + (PgQuery__WindowFuncRunCondition *message); +size_t pg_query__window_func_run_condition__get_packed_size + (const PgQuery__WindowFuncRunCondition *message); +size_t pg_query__window_func_run_condition__pack + (const PgQuery__WindowFuncRunCondition *message, + uint8_t *out); +size_t pg_query__window_func_run_condition__pack_to_buffer + (const PgQuery__WindowFuncRunCondition *message, + ProtobufCBuffer *buffer); +PgQuery__WindowFuncRunCondition * + pg_query__window_func_run_condition__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__window_func_run_condition__free_unpacked + (PgQuery__WindowFuncRunCondition *message, + ProtobufCAllocator *allocator); +/* PgQuery__MergeSupportFunc methods */ +void pg_query__merge_support_func__init + (PgQuery__MergeSupportFunc *message); +size_t pg_query__merge_support_func__get_packed_size + (const PgQuery__MergeSupportFunc *message); +size_t pg_query__merge_support_func__pack + (const PgQuery__MergeSupportFunc *message, + uint8_t *out); +size_t pg_query__merge_support_func__pack_to_buffer + (const PgQuery__MergeSupportFunc *message, + ProtobufCBuffer *buffer); +PgQuery__MergeSupportFunc * + pg_query__merge_support_func__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__merge_support_func__free_unpacked + (PgQuery__MergeSupportFunc *message, + ProtobufCAllocator *allocator); +/* PgQuery__SubscriptingRef methods */ +void pg_query__subscripting_ref__init + (PgQuery__SubscriptingRef *message); +size_t pg_query__subscripting_ref__get_packed_size + (const PgQuery__SubscriptingRef *message); +size_t pg_query__subscripting_ref__pack + (const PgQuery__SubscriptingRef *message, + uint8_t *out); +size_t pg_query__subscripting_ref__pack_to_buffer + (const PgQuery__SubscriptingRef *message, + ProtobufCBuffer *buffer); +PgQuery__SubscriptingRef * + pg_query__subscripting_ref__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__subscripting_ref__free_unpacked + (PgQuery__SubscriptingRef *message, + ProtobufCAllocator *allocator); +/* PgQuery__FuncExpr methods */ +void pg_query__func_expr__init + (PgQuery__FuncExpr *message); +size_t pg_query__func_expr__get_packed_size + (const PgQuery__FuncExpr *message); +size_t pg_query__func_expr__pack + (const PgQuery__FuncExpr *message, + uint8_t *out); +size_t pg_query__func_expr__pack_to_buffer + (const PgQuery__FuncExpr *message, + ProtobufCBuffer *buffer); +PgQuery__FuncExpr * + pg_query__func_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__func_expr__free_unpacked + (PgQuery__FuncExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__NamedArgExpr methods */ +void pg_query__named_arg_expr__init + (PgQuery__NamedArgExpr *message); +size_t pg_query__named_arg_expr__get_packed_size + (const PgQuery__NamedArgExpr *message); +size_t pg_query__named_arg_expr__pack + (const PgQuery__NamedArgExpr *message, + uint8_t *out); +size_t pg_query__named_arg_expr__pack_to_buffer + (const PgQuery__NamedArgExpr *message, + ProtobufCBuffer *buffer); +PgQuery__NamedArgExpr * + pg_query__named_arg_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__named_arg_expr__free_unpacked + (PgQuery__NamedArgExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__OpExpr methods */ +void pg_query__op_expr__init + (PgQuery__OpExpr *message); +size_t pg_query__op_expr__get_packed_size + (const PgQuery__OpExpr *message); +size_t pg_query__op_expr__pack + (const PgQuery__OpExpr *message, + uint8_t *out); +size_t pg_query__op_expr__pack_to_buffer + (const PgQuery__OpExpr *message, + ProtobufCBuffer *buffer); +PgQuery__OpExpr * + pg_query__op_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__op_expr__free_unpacked + (PgQuery__OpExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__DistinctExpr methods */ +void pg_query__distinct_expr__init + (PgQuery__DistinctExpr *message); +size_t pg_query__distinct_expr__get_packed_size + (const PgQuery__DistinctExpr *message); +size_t pg_query__distinct_expr__pack + (const PgQuery__DistinctExpr *message, + uint8_t *out); +size_t pg_query__distinct_expr__pack_to_buffer + (const PgQuery__DistinctExpr *message, + ProtobufCBuffer *buffer); +PgQuery__DistinctExpr * + pg_query__distinct_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__distinct_expr__free_unpacked + (PgQuery__DistinctExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__NullIfExpr methods */ +void pg_query__null_if_expr__init + (PgQuery__NullIfExpr *message); +size_t pg_query__null_if_expr__get_packed_size + (const PgQuery__NullIfExpr *message); +size_t pg_query__null_if_expr__pack + (const PgQuery__NullIfExpr *message, + uint8_t *out); +size_t pg_query__null_if_expr__pack_to_buffer + (const PgQuery__NullIfExpr *message, + ProtobufCBuffer *buffer); +PgQuery__NullIfExpr * + pg_query__null_if_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__null_if_expr__free_unpacked + (PgQuery__NullIfExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__ScalarArrayOpExpr methods */ +void pg_query__scalar_array_op_expr__init + (PgQuery__ScalarArrayOpExpr *message); +size_t pg_query__scalar_array_op_expr__get_packed_size + (const PgQuery__ScalarArrayOpExpr *message); +size_t pg_query__scalar_array_op_expr__pack + (const PgQuery__ScalarArrayOpExpr *message, + uint8_t *out); +size_t pg_query__scalar_array_op_expr__pack_to_buffer + (const PgQuery__ScalarArrayOpExpr *message, + ProtobufCBuffer *buffer); +PgQuery__ScalarArrayOpExpr * + pg_query__scalar_array_op_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__scalar_array_op_expr__free_unpacked + (PgQuery__ScalarArrayOpExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__BoolExpr methods */ +void pg_query__bool_expr__init + (PgQuery__BoolExpr *message); +size_t pg_query__bool_expr__get_packed_size + (const PgQuery__BoolExpr *message); +size_t pg_query__bool_expr__pack + (const PgQuery__BoolExpr *message, + uint8_t *out); +size_t pg_query__bool_expr__pack_to_buffer + (const PgQuery__BoolExpr *message, + ProtobufCBuffer *buffer); +PgQuery__BoolExpr * + pg_query__bool_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__bool_expr__free_unpacked + (PgQuery__BoolExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__SubLink methods */ +void pg_query__sub_link__init + (PgQuery__SubLink *message); +size_t pg_query__sub_link__get_packed_size + (const PgQuery__SubLink *message); +size_t pg_query__sub_link__pack + (const PgQuery__SubLink *message, + uint8_t *out); +size_t pg_query__sub_link__pack_to_buffer + (const PgQuery__SubLink *message, + ProtobufCBuffer *buffer); +PgQuery__SubLink * + pg_query__sub_link__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__sub_link__free_unpacked + (PgQuery__SubLink *message, + ProtobufCAllocator *allocator); +/* PgQuery__SubPlan methods */ +void pg_query__sub_plan__init + (PgQuery__SubPlan *message); +size_t pg_query__sub_plan__get_packed_size + (const PgQuery__SubPlan *message); +size_t pg_query__sub_plan__pack + (const PgQuery__SubPlan *message, + uint8_t *out); +size_t pg_query__sub_plan__pack_to_buffer + (const PgQuery__SubPlan *message, + ProtobufCBuffer *buffer); +PgQuery__SubPlan * + pg_query__sub_plan__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__sub_plan__free_unpacked + (PgQuery__SubPlan *message, + ProtobufCAllocator *allocator); +/* PgQuery__AlternativeSubPlan methods */ +void pg_query__alternative_sub_plan__init + (PgQuery__AlternativeSubPlan *message); +size_t pg_query__alternative_sub_plan__get_packed_size + (const PgQuery__AlternativeSubPlan *message); +size_t pg_query__alternative_sub_plan__pack + (const PgQuery__AlternativeSubPlan *message, + uint8_t *out); +size_t pg_query__alternative_sub_plan__pack_to_buffer + (const PgQuery__AlternativeSubPlan *message, + ProtobufCBuffer *buffer); +PgQuery__AlternativeSubPlan * + pg_query__alternative_sub_plan__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__alternative_sub_plan__free_unpacked + (PgQuery__AlternativeSubPlan *message, + ProtobufCAllocator *allocator); +/* PgQuery__FieldSelect methods */ +void pg_query__field_select__init + (PgQuery__FieldSelect *message); +size_t pg_query__field_select__get_packed_size + (const PgQuery__FieldSelect *message); +size_t pg_query__field_select__pack + (const PgQuery__FieldSelect *message, + uint8_t *out); +size_t pg_query__field_select__pack_to_buffer + (const PgQuery__FieldSelect *message, + ProtobufCBuffer *buffer); +PgQuery__FieldSelect * + pg_query__field_select__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__field_select__free_unpacked + (PgQuery__FieldSelect *message, + ProtobufCAllocator *allocator); +/* PgQuery__FieldStore methods */ +void pg_query__field_store__init + (PgQuery__FieldStore *message); +size_t pg_query__field_store__get_packed_size + (const PgQuery__FieldStore *message); +size_t pg_query__field_store__pack + (const PgQuery__FieldStore *message, + uint8_t *out); +size_t pg_query__field_store__pack_to_buffer + (const PgQuery__FieldStore *message, + ProtobufCBuffer *buffer); +PgQuery__FieldStore * + pg_query__field_store__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__field_store__free_unpacked + (PgQuery__FieldStore *message, + ProtobufCAllocator *allocator); +/* PgQuery__RelabelType methods */ +void pg_query__relabel_type__init + (PgQuery__RelabelType *message); +size_t pg_query__relabel_type__get_packed_size + (const PgQuery__RelabelType *message); +size_t pg_query__relabel_type__pack + (const PgQuery__RelabelType *message, + uint8_t *out); +size_t pg_query__relabel_type__pack_to_buffer + (const PgQuery__RelabelType *message, + ProtobufCBuffer *buffer); +PgQuery__RelabelType * + pg_query__relabel_type__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__relabel_type__free_unpacked + (PgQuery__RelabelType *message, + ProtobufCAllocator *allocator); +/* PgQuery__CoerceViaIO methods */ +void pg_query__coerce_via_io__init + (PgQuery__CoerceViaIO *message); +size_t pg_query__coerce_via_io__get_packed_size + (const PgQuery__CoerceViaIO *message); +size_t pg_query__coerce_via_io__pack + (const PgQuery__CoerceViaIO *message, + uint8_t *out); +size_t pg_query__coerce_via_io__pack_to_buffer + (const PgQuery__CoerceViaIO *message, + ProtobufCBuffer *buffer); +PgQuery__CoerceViaIO * + pg_query__coerce_via_io__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__coerce_via_io__free_unpacked + (PgQuery__CoerceViaIO *message, + ProtobufCAllocator *allocator); +/* PgQuery__ArrayCoerceExpr methods */ +void pg_query__array_coerce_expr__init + (PgQuery__ArrayCoerceExpr *message); +size_t pg_query__array_coerce_expr__get_packed_size + (const PgQuery__ArrayCoerceExpr *message); +size_t pg_query__array_coerce_expr__pack + (const PgQuery__ArrayCoerceExpr *message, + uint8_t *out); +size_t pg_query__array_coerce_expr__pack_to_buffer + (const PgQuery__ArrayCoerceExpr *message, + ProtobufCBuffer *buffer); +PgQuery__ArrayCoerceExpr * + pg_query__array_coerce_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__array_coerce_expr__free_unpacked + (PgQuery__ArrayCoerceExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__ConvertRowtypeExpr methods */ +void pg_query__convert_rowtype_expr__init + (PgQuery__ConvertRowtypeExpr *message); +size_t pg_query__convert_rowtype_expr__get_packed_size + (const PgQuery__ConvertRowtypeExpr *message); +size_t pg_query__convert_rowtype_expr__pack + (const PgQuery__ConvertRowtypeExpr *message, + uint8_t *out); +size_t pg_query__convert_rowtype_expr__pack_to_buffer + (const PgQuery__ConvertRowtypeExpr *message, + ProtobufCBuffer *buffer); +PgQuery__ConvertRowtypeExpr * + pg_query__convert_rowtype_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__convert_rowtype_expr__free_unpacked + (PgQuery__ConvertRowtypeExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__CollateExpr methods */ +void pg_query__collate_expr__init + (PgQuery__CollateExpr *message); +size_t pg_query__collate_expr__get_packed_size + (const PgQuery__CollateExpr *message); +size_t pg_query__collate_expr__pack + (const PgQuery__CollateExpr *message, + uint8_t *out); +size_t pg_query__collate_expr__pack_to_buffer + (const PgQuery__CollateExpr *message, + ProtobufCBuffer *buffer); +PgQuery__CollateExpr * + pg_query__collate_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__collate_expr__free_unpacked + (PgQuery__CollateExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__CaseExpr methods */ +void pg_query__case_expr__init + (PgQuery__CaseExpr *message); +size_t pg_query__case_expr__get_packed_size + (const PgQuery__CaseExpr *message); +size_t pg_query__case_expr__pack + (const PgQuery__CaseExpr *message, + uint8_t *out); +size_t pg_query__case_expr__pack_to_buffer + (const PgQuery__CaseExpr *message, ProtobufCBuffer *buffer); -PgQuery__ParseResult * - pg_query__parse_result__unpack +PgQuery__CaseExpr * + pg_query__case_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__parse_result__free_unpacked - (PgQuery__ParseResult *message, +void pg_query__case_expr__free_unpacked + (PgQuery__CaseExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__ScanResult methods */ -void pg_query__scan_result__init - (PgQuery__ScanResult *message); -size_t pg_query__scan_result__get_packed_size - (const PgQuery__ScanResult *message); -size_t pg_query__scan_result__pack - (const PgQuery__ScanResult *message, +/* PgQuery__CaseWhen methods */ +void pg_query__case_when__init + (PgQuery__CaseWhen *message); +size_t pg_query__case_when__get_packed_size + (const PgQuery__CaseWhen *message); +size_t pg_query__case_when__pack + (const PgQuery__CaseWhen *message, uint8_t *out); -size_t pg_query__scan_result__pack_to_buffer - (const PgQuery__ScanResult *message, +size_t pg_query__case_when__pack_to_buffer + (const PgQuery__CaseWhen *message, ProtobufCBuffer *buffer); -PgQuery__ScanResult * - pg_query__scan_result__unpack +PgQuery__CaseWhen * + pg_query__case_when__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__scan_result__free_unpacked - (PgQuery__ScanResult *message, +void pg_query__case_when__free_unpacked + (PgQuery__CaseWhen *message, ProtobufCAllocator *allocator); -/* PgQuery__Node methods */ -void pg_query__node__init - (PgQuery__Node *message); -size_t pg_query__node__get_packed_size - (const PgQuery__Node *message); -size_t pg_query__node__pack - (const PgQuery__Node *message, +/* PgQuery__CaseTestExpr methods */ +void pg_query__case_test_expr__init + (PgQuery__CaseTestExpr *message); +size_t pg_query__case_test_expr__get_packed_size + (const PgQuery__CaseTestExpr *message); +size_t pg_query__case_test_expr__pack + (const PgQuery__CaseTestExpr *message, uint8_t *out); -size_t pg_query__node__pack_to_buffer - (const PgQuery__Node *message, +size_t pg_query__case_test_expr__pack_to_buffer + (const PgQuery__CaseTestExpr *message, ProtobufCBuffer *buffer); -PgQuery__Node * - pg_query__node__unpack +PgQuery__CaseTestExpr * + pg_query__case_test_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__node__free_unpacked - (PgQuery__Node *message, +void pg_query__case_test_expr__free_unpacked + (PgQuery__CaseTestExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__Integer methods */ -void pg_query__integer__init - (PgQuery__Integer *message); -size_t pg_query__integer__get_packed_size - (const PgQuery__Integer *message); -size_t pg_query__integer__pack - (const PgQuery__Integer *message, +/* PgQuery__ArrayExpr methods */ +void pg_query__array_expr__init + (PgQuery__ArrayExpr *message); +size_t pg_query__array_expr__get_packed_size + (const PgQuery__ArrayExpr *message); +size_t pg_query__array_expr__pack + (const PgQuery__ArrayExpr *message, uint8_t *out); -size_t pg_query__integer__pack_to_buffer - (const PgQuery__Integer *message, +size_t pg_query__array_expr__pack_to_buffer + (const PgQuery__ArrayExpr *message, ProtobufCBuffer *buffer); -PgQuery__Integer * - pg_query__integer__unpack +PgQuery__ArrayExpr * + pg_query__array_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__integer__free_unpacked - (PgQuery__Integer *message, +void pg_query__array_expr__free_unpacked + (PgQuery__ArrayExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__Float methods */ -void pg_query__float__init - (PgQuery__Float *message); -size_t pg_query__float__get_packed_size - (const PgQuery__Float *message); -size_t pg_query__float__pack - (const PgQuery__Float *message, +/* PgQuery__RowExpr methods */ +void pg_query__row_expr__init + (PgQuery__RowExpr *message); +size_t pg_query__row_expr__get_packed_size + (const PgQuery__RowExpr *message); +size_t pg_query__row_expr__pack + (const PgQuery__RowExpr *message, uint8_t *out); -size_t pg_query__float__pack_to_buffer - (const PgQuery__Float *message, +size_t pg_query__row_expr__pack_to_buffer + (const PgQuery__RowExpr *message, ProtobufCBuffer *buffer); -PgQuery__Float * - pg_query__float__unpack +PgQuery__RowExpr * + pg_query__row_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__float__free_unpacked - (PgQuery__Float *message, +void pg_query__row_expr__free_unpacked + (PgQuery__RowExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__Boolean methods */ -void pg_query__boolean__init - (PgQuery__Boolean *message); -size_t pg_query__boolean__get_packed_size - (const PgQuery__Boolean *message); -size_t pg_query__boolean__pack - (const PgQuery__Boolean *message, +/* PgQuery__RowCompareExpr methods */ +void pg_query__row_compare_expr__init + (PgQuery__RowCompareExpr *message); +size_t pg_query__row_compare_expr__get_packed_size + (const PgQuery__RowCompareExpr *message); +size_t pg_query__row_compare_expr__pack + (const PgQuery__RowCompareExpr *message, uint8_t *out); -size_t pg_query__boolean__pack_to_buffer - (const PgQuery__Boolean *message, +size_t pg_query__row_compare_expr__pack_to_buffer + (const PgQuery__RowCompareExpr *message, ProtobufCBuffer *buffer); -PgQuery__Boolean * - pg_query__boolean__unpack +PgQuery__RowCompareExpr * + pg_query__row_compare_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__boolean__free_unpacked - (PgQuery__Boolean *message, +void pg_query__row_compare_expr__free_unpacked + (PgQuery__RowCompareExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__String methods */ -void pg_query__string__init - (PgQuery__String *message); -size_t pg_query__string__get_packed_size - (const PgQuery__String *message); -size_t pg_query__string__pack - (const PgQuery__String *message, +/* PgQuery__CoalesceExpr methods */ +void pg_query__coalesce_expr__init + (PgQuery__CoalesceExpr *message); +size_t pg_query__coalesce_expr__get_packed_size + (const PgQuery__CoalesceExpr *message); +size_t pg_query__coalesce_expr__pack + (const PgQuery__CoalesceExpr *message, uint8_t *out); -size_t pg_query__string__pack_to_buffer - (const PgQuery__String *message, +size_t pg_query__coalesce_expr__pack_to_buffer + (const PgQuery__CoalesceExpr *message, ProtobufCBuffer *buffer); -PgQuery__String * - pg_query__string__unpack +PgQuery__CoalesceExpr * + pg_query__coalesce_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__string__free_unpacked - (PgQuery__String *message, +void pg_query__coalesce_expr__free_unpacked + (PgQuery__CoalesceExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__BitString methods */ -void pg_query__bit_string__init - (PgQuery__BitString *message); -size_t pg_query__bit_string__get_packed_size - (const PgQuery__BitString *message); -size_t pg_query__bit_string__pack - (const PgQuery__BitString *message, +/* PgQuery__MinMaxExpr methods */ +void pg_query__min_max_expr__init + (PgQuery__MinMaxExpr *message); +size_t pg_query__min_max_expr__get_packed_size + (const PgQuery__MinMaxExpr *message); +size_t pg_query__min_max_expr__pack + (const PgQuery__MinMaxExpr *message, uint8_t *out); -size_t pg_query__bit_string__pack_to_buffer - (const PgQuery__BitString *message, +size_t pg_query__min_max_expr__pack_to_buffer + (const PgQuery__MinMaxExpr *message, ProtobufCBuffer *buffer); -PgQuery__BitString * - pg_query__bit_string__unpack +PgQuery__MinMaxExpr * + pg_query__min_max_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__bit_string__free_unpacked - (PgQuery__BitString *message, +void pg_query__min_max_expr__free_unpacked + (PgQuery__MinMaxExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__List methods */ -void pg_query__list__init - (PgQuery__List *message); -size_t pg_query__list__get_packed_size - (const PgQuery__List *message); -size_t pg_query__list__pack - (const PgQuery__List *message, +/* PgQuery__SQLValueFunction methods */ +void pg_query__sqlvalue_function__init + (PgQuery__SQLValueFunction *message); +size_t pg_query__sqlvalue_function__get_packed_size + (const PgQuery__SQLValueFunction *message); +size_t pg_query__sqlvalue_function__pack + (const PgQuery__SQLValueFunction *message, uint8_t *out); -size_t pg_query__list__pack_to_buffer - (const PgQuery__List *message, +size_t pg_query__sqlvalue_function__pack_to_buffer + (const PgQuery__SQLValueFunction *message, ProtobufCBuffer *buffer); -PgQuery__List * - pg_query__list__unpack +PgQuery__SQLValueFunction * + pg_query__sqlvalue_function__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__list__free_unpacked - (PgQuery__List *message, +void pg_query__sqlvalue_function__free_unpacked + (PgQuery__SQLValueFunction *message, ProtobufCAllocator *allocator); -/* PgQuery__OidList methods */ -void pg_query__oid_list__init - (PgQuery__OidList *message); -size_t pg_query__oid_list__get_packed_size - (const PgQuery__OidList *message); -size_t pg_query__oid_list__pack - (const PgQuery__OidList *message, +/* PgQuery__XmlExpr methods */ +void pg_query__xml_expr__init + (PgQuery__XmlExpr *message); +size_t pg_query__xml_expr__get_packed_size + (const PgQuery__XmlExpr *message); +size_t pg_query__xml_expr__pack + (const PgQuery__XmlExpr *message, + uint8_t *out); +size_t pg_query__xml_expr__pack_to_buffer + (const PgQuery__XmlExpr *message, + ProtobufCBuffer *buffer); +PgQuery__XmlExpr * + pg_query__xml_expr__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__xml_expr__free_unpacked + (PgQuery__XmlExpr *message, + ProtobufCAllocator *allocator); +/* PgQuery__JsonFormat methods */ +void pg_query__json_format__init + (PgQuery__JsonFormat *message); +size_t pg_query__json_format__get_packed_size + (const PgQuery__JsonFormat *message); +size_t pg_query__json_format__pack + (const PgQuery__JsonFormat *message, uint8_t *out); -size_t pg_query__oid_list__pack_to_buffer - (const PgQuery__OidList *message, +size_t pg_query__json_format__pack_to_buffer + (const PgQuery__JsonFormat *message, ProtobufCBuffer *buffer); -PgQuery__OidList * - pg_query__oid_list__unpack +PgQuery__JsonFormat * + pg_query__json_format__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__oid_list__free_unpacked - (PgQuery__OidList *message, +void pg_query__json_format__free_unpacked + (PgQuery__JsonFormat *message, ProtobufCAllocator *allocator); -/* PgQuery__IntList methods */ -void pg_query__int_list__init - (PgQuery__IntList *message); -size_t pg_query__int_list__get_packed_size - (const PgQuery__IntList *message); -size_t pg_query__int_list__pack - (const PgQuery__IntList *message, +/* PgQuery__JsonReturning methods */ +void pg_query__json_returning__init + (PgQuery__JsonReturning *message); +size_t pg_query__json_returning__get_packed_size + (const PgQuery__JsonReturning *message); +size_t pg_query__json_returning__pack + (const PgQuery__JsonReturning *message, uint8_t *out); -size_t pg_query__int_list__pack_to_buffer - (const PgQuery__IntList *message, +size_t pg_query__json_returning__pack_to_buffer + (const PgQuery__JsonReturning *message, ProtobufCBuffer *buffer); -PgQuery__IntList * - pg_query__int_list__unpack +PgQuery__JsonReturning * + pg_query__json_returning__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__int_list__free_unpacked - (PgQuery__IntList *message, +void pg_query__json_returning__free_unpacked + (PgQuery__JsonReturning *message, ProtobufCAllocator *allocator); -/* PgQuery__AConst methods */ -void pg_query__a__const__init - (PgQuery__AConst *message); -size_t pg_query__a__const__get_packed_size - (const PgQuery__AConst *message); -size_t pg_query__a__const__pack - (const PgQuery__AConst *message, +/* PgQuery__JsonValueExpr methods */ +void pg_query__json_value_expr__init + (PgQuery__JsonValueExpr *message); +size_t pg_query__json_value_expr__get_packed_size + (const PgQuery__JsonValueExpr *message); +size_t pg_query__json_value_expr__pack + (const PgQuery__JsonValueExpr *message, uint8_t *out); -size_t pg_query__a__const__pack_to_buffer - (const PgQuery__AConst *message, +size_t pg_query__json_value_expr__pack_to_buffer + (const PgQuery__JsonValueExpr *message, ProtobufCBuffer *buffer); -PgQuery__AConst * - pg_query__a__const__unpack +PgQuery__JsonValueExpr * + pg_query__json_value_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__a__const__free_unpacked - (PgQuery__AConst *message, +void pg_query__json_value_expr__free_unpacked + (PgQuery__JsonValueExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__Alias methods */ -void pg_query__alias__init - (PgQuery__Alias *message); -size_t pg_query__alias__get_packed_size - (const PgQuery__Alias *message); -size_t pg_query__alias__pack - (const PgQuery__Alias *message, +/* PgQuery__JsonConstructorExpr methods */ +void pg_query__json_constructor_expr__init + (PgQuery__JsonConstructorExpr *message); +size_t pg_query__json_constructor_expr__get_packed_size + (const PgQuery__JsonConstructorExpr *message); +size_t pg_query__json_constructor_expr__pack + (const PgQuery__JsonConstructorExpr *message, uint8_t *out); -size_t pg_query__alias__pack_to_buffer - (const PgQuery__Alias *message, +size_t pg_query__json_constructor_expr__pack_to_buffer + (const PgQuery__JsonConstructorExpr *message, ProtobufCBuffer *buffer); -PgQuery__Alias * - pg_query__alias__unpack +PgQuery__JsonConstructorExpr * + pg_query__json_constructor_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alias__free_unpacked - (PgQuery__Alias *message, +void pg_query__json_constructor_expr__free_unpacked + (PgQuery__JsonConstructorExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeVar methods */ -void pg_query__range_var__init - (PgQuery__RangeVar *message); -size_t pg_query__range_var__get_packed_size - (const PgQuery__RangeVar *message); -size_t pg_query__range_var__pack - (const PgQuery__RangeVar *message, +/* PgQuery__JsonIsPredicate methods */ +void pg_query__json_is_predicate__init + (PgQuery__JsonIsPredicate *message); +size_t pg_query__json_is_predicate__get_packed_size + (const PgQuery__JsonIsPredicate *message); +size_t pg_query__json_is_predicate__pack + (const PgQuery__JsonIsPredicate *message, uint8_t *out); -size_t pg_query__range_var__pack_to_buffer - (const PgQuery__RangeVar *message, +size_t pg_query__json_is_predicate__pack_to_buffer + (const PgQuery__JsonIsPredicate *message, ProtobufCBuffer *buffer); -PgQuery__RangeVar * - pg_query__range_var__unpack +PgQuery__JsonIsPredicate * + pg_query__json_is_predicate__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_var__free_unpacked - (PgQuery__RangeVar *message, +void pg_query__json_is_predicate__free_unpacked + (PgQuery__JsonIsPredicate *message, ProtobufCAllocator *allocator); -/* PgQuery__TableFunc methods */ -void pg_query__table_func__init - (PgQuery__TableFunc *message); -size_t pg_query__table_func__get_packed_size - (const PgQuery__TableFunc *message); -size_t pg_query__table_func__pack - (const PgQuery__TableFunc *message, +/* PgQuery__JsonBehavior methods */ +void pg_query__json_behavior__init + (PgQuery__JsonBehavior *message); +size_t pg_query__json_behavior__get_packed_size + (const PgQuery__JsonBehavior *message); +size_t pg_query__json_behavior__pack + (const PgQuery__JsonBehavior *message, uint8_t *out); -size_t pg_query__table_func__pack_to_buffer - (const PgQuery__TableFunc *message, +size_t pg_query__json_behavior__pack_to_buffer + (const PgQuery__JsonBehavior *message, ProtobufCBuffer *buffer); -PgQuery__TableFunc * - pg_query__table_func__unpack +PgQuery__JsonBehavior * + pg_query__json_behavior__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__table_func__free_unpacked - (PgQuery__TableFunc *message, +void pg_query__json_behavior__free_unpacked + (PgQuery__JsonBehavior *message, ProtobufCAllocator *allocator); -/* PgQuery__IntoClause methods */ -void pg_query__into_clause__init - (PgQuery__IntoClause *message); -size_t pg_query__into_clause__get_packed_size - (const PgQuery__IntoClause *message); -size_t pg_query__into_clause__pack - (const PgQuery__IntoClause *message, +/* PgQuery__JsonExpr methods */ +void pg_query__json_expr__init + (PgQuery__JsonExpr *message); +size_t pg_query__json_expr__get_packed_size + (const PgQuery__JsonExpr *message); +size_t pg_query__json_expr__pack + (const PgQuery__JsonExpr *message, uint8_t *out); -size_t pg_query__into_clause__pack_to_buffer - (const PgQuery__IntoClause *message, +size_t pg_query__json_expr__pack_to_buffer + (const PgQuery__JsonExpr *message, ProtobufCBuffer *buffer); -PgQuery__IntoClause * - pg_query__into_clause__unpack +PgQuery__JsonExpr * + pg_query__json_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__into_clause__free_unpacked - (PgQuery__IntoClause *message, +void pg_query__json_expr__free_unpacked + (PgQuery__JsonExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__Var methods */ -void pg_query__var__init - (PgQuery__Var *message); -size_t pg_query__var__get_packed_size - (const PgQuery__Var *message); -size_t pg_query__var__pack - (const PgQuery__Var *message, +/* PgQuery__JsonTablePath methods */ +void pg_query__json_table_path__init + (PgQuery__JsonTablePath *message); +size_t pg_query__json_table_path__get_packed_size + (const PgQuery__JsonTablePath *message); +size_t pg_query__json_table_path__pack + (const PgQuery__JsonTablePath *message, uint8_t *out); -size_t pg_query__var__pack_to_buffer - (const PgQuery__Var *message, +size_t pg_query__json_table_path__pack_to_buffer + (const PgQuery__JsonTablePath *message, ProtobufCBuffer *buffer); -PgQuery__Var * - pg_query__var__unpack +PgQuery__JsonTablePath * + pg_query__json_table_path__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__var__free_unpacked - (PgQuery__Var *message, +void pg_query__json_table_path__free_unpacked + (PgQuery__JsonTablePath *message, ProtobufCAllocator *allocator); -/* PgQuery__Param methods */ -void pg_query__param__init - (PgQuery__Param *message); -size_t pg_query__param__get_packed_size - (const PgQuery__Param *message); -size_t pg_query__param__pack - (const PgQuery__Param *message, +/* PgQuery__JsonTablePathScan methods */ +void pg_query__json_table_path_scan__init + (PgQuery__JsonTablePathScan *message); +size_t pg_query__json_table_path_scan__get_packed_size + (const PgQuery__JsonTablePathScan *message); +size_t pg_query__json_table_path_scan__pack + (const PgQuery__JsonTablePathScan *message, uint8_t *out); -size_t pg_query__param__pack_to_buffer - (const PgQuery__Param *message, +size_t pg_query__json_table_path_scan__pack_to_buffer + (const PgQuery__JsonTablePathScan *message, ProtobufCBuffer *buffer); -PgQuery__Param * - pg_query__param__unpack +PgQuery__JsonTablePathScan * + pg_query__json_table_path_scan__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__param__free_unpacked - (PgQuery__Param *message, +void pg_query__json_table_path_scan__free_unpacked + (PgQuery__JsonTablePathScan *message, ProtobufCAllocator *allocator); -/* PgQuery__Aggref methods */ -void pg_query__aggref__init - (PgQuery__Aggref *message); -size_t pg_query__aggref__get_packed_size - (const PgQuery__Aggref *message); -size_t pg_query__aggref__pack - (const PgQuery__Aggref *message, +/* PgQuery__JsonTableSiblingJoin methods */ +void pg_query__json_table_sibling_join__init + (PgQuery__JsonTableSiblingJoin *message); +size_t pg_query__json_table_sibling_join__get_packed_size + (const PgQuery__JsonTableSiblingJoin *message); +size_t pg_query__json_table_sibling_join__pack + (const PgQuery__JsonTableSiblingJoin *message, uint8_t *out); -size_t pg_query__aggref__pack_to_buffer - (const PgQuery__Aggref *message, +size_t pg_query__json_table_sibling_join__pack_to_buffer + (const PgQuery__JsonTableSiblingJoin *message, ProtobufCBuffer *buffer); -PgQuery__Aggref * - pg_query__aggref__unpack +PgQuery__JsonTableSiblingJoin * + pg_query__json_table_sibling_join__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__aggref__free_unpacked - (PgQuery__Aggref *message, +void pg_query__json_table_sibling_join__free_unpacked + (PgQuery__JsonTableSiblingJoin *message, ProtobufCAllocator *allocator); -/* PgQuery__GroupingFunc methods */ -void pg_query__grouping_func__init - (PgQuery__GroupingFunc *message); -size_t pg_query__grouping_func__get_packed_size - (const PgQuery__GroupingFunc *message); -size_t pg_query__grouping_func__pack - (const PgQuery__GroupingFunc *message, +/* PgQuery__NullTest methods */ +void pg_query__null_test__init + (PgQuery__NullTest *message); +size_t pg_query__null_test__get_packed_size + (const PgQuery__NullTest *message); +size_t pg_query__null_test__pack + (const PgQuery__NullTest *message, uint8_t *out); -size_t pg_query__grouping_func__pack_to_buffer - (const PgQuery__GroupingFunc *message, +size_t pg_query__null_test__pack_to_buffer + (const PgQuery__NullTest *message, ProtobufCBuffer *buffer); -PgQuery__GroupingFunc * - pg_query__grouping_func__unpack +PgQuery__NullTest * + pg_query__null_test__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__grouping_func__free_unpacked - (PgQuery__GroupingFunc *message, +void pg_query__null_test__free_unpacked + (PgQuery__NullTest *message, ProtobufCAllocator *allocator); -/* PgQuery__WindowFunc methods */ -void pg_query__window_func__init - (PgQuery__WindowFunc *message); -size_t pg_query__window_func__get_packed_size - (const PgQuery__WindowFunc *message); -size_t pg_query__window_func__pack - (const PgQuery__WindowFunc *message, +/* PgQuery__BooleanTest methods */ +void pg_query__boolean_test__init + (PgQuery__BooleanTest *message); +size_t pg_query__boolean_test__get_packed_size + (const PgQuery__BooleanTest *message); +size_t pg_query__boolean_test__pack + (const PgQuery__BooleanTest *message, uint8_t *out); -size_t pg_query__window_func__pack_to_buffer - (const PgQuery__WindowFunc *message, +size_t pg_query__boolean_test__pack_to_buffer + (const PgQuery__BooleanTest *message, ProtobufCBuffer *buffer); -PgQuery__WindowFunc * - pg_query__window_func__unpack +PgQuery__BooleanTest * + pg_query__boolean_test__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__window_func__free_unpacked - (PgQuery__WindowFunc *message, +void pg_query__boolean_test__free_unpacked + (PgQuery__BooleanTest *message, ProtobufCAllocator *allocator); -/* PgQuery__WindowFuncRunCondition methods */ -void pg_query__window_func_run_condition__init - (PgQuery__WindowFuncRunCondition *message); -size_t pg_query__window_func_run_condition__get_packed_size - (const PgQuery__WindowFuncRunCondition *message); -size_t pg_query__window_func_run_condition__pack - (const PgQuery__WindowFuncRunCondition *message, +/* PgQuery__MergeAction methods */ +void pg_query__merge_action__init + (PgQuery__MergeAction *message); +size_t pg_query__merge_action__get_packed_size + (const PgQuery__MergeAction *message); +size_t pg_query__merge_action__pack + (const PgQuery__MergeAction *message, uint8_t *out); -size_t pg_query__window_func_run_condition__pack_to_buffer - (const PgQuery__WindowFuncRunCondition *message, +size_t pg_query__merge_action__pack_to_buffer + (const PgQuery__MergeAction *message, ProtobufCBuffer *buffer); -PgQuery__WindowFuncRunCondition * - pg_query__window_func_run_condition__unpack +PgQuery__MergeAction * + pg_query__merge_action__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__window_func_run_condition__free_unpacked - (PgQuery__WindowFuncRunCondition *message, +void pg_query__merge_action__free_unpacked + (PgQuery__MergeAction *message, ProtobufCAllocator *allocator); -/* PgQuery__MergeSupportFunc methods */ -void pg_query__merge_support_func__init - (PgQuery__MergeSupportFunc *message); -size_t pg_query__merge_support_func__get_packed_size - (const PgQuery__MergeSupportFunc *message); -size_t pg_query__merge_support_func__pack - (const PgQuery__MergeSupportFunc *message, +/* PgQuery__CoerceToDomain methods */ +void pg_query__coerce_to_domain__init + (PgQuery__CoerceToDomain *message); +size_t pg_query__coerce_to_domain__get_packed_size + (const PgQuery__CoerceToDomain *message); +size_t pg_query__coerce_to_domain__pack + (const PgQuery__CoerceToDomain *message, uint8_t *out); -size_t pg_query__merge_support_func__pack_to_buffer - (const PgQuery__MergeSupportFunc *message, +size_t pg_query__coerce_to_domain__pack_to_buffer + (const PgQuery__CoerceToDomain *message, ProtobufCBuffer *buffer); -PgQuery__MergeSupportFunc * - pg_query__merge_support_func__unpack +PgQuery__CoerceToDomain * + pg_query__coerce_to_domain__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__merge_support_func__free_unpacked - (PgQuery__MergeSupportFunc *message, +void pg_query__coerce_to_domain__free_unpacked + (PgQuery__CoerceToDomain *message, ProtobufCAllocator *allocator); -/* PgQuery__SubscriptingRef methods */ -void pg_query__subscripting_ref__init - (PgQuery__SubscriptingRef *message); -size_t pg_query__subscripting_ref__get_packed_size - (const PgQuery__SubscriptingRef *message); -size_t pg_query__subscripting_ref__pack - (const PgQuery__SubscriptingRef *message, +/* PgQuery__CoerceToDomainValue methods */ +void pg_query__coerce_to_domain_value__init + (PgQuery__CoerceToDomainValue *message); +size_t pg_query__coerce_to_domain_value__get_packed_size + (const PgQuery__CoerceToDomainValue *message); +size_t pg_query__coerce_to_domain_value__pack + (const PgQuery__CoerceToDomainValue *message, uint8_t *out); -size_t pg_query__subscripting_ref__pack_to_buffer - (const PgQuery__SubscriptingRef *message, +size_t pg_query__coerce_to_domain_value__pack_to_buffer + (const PgQuery__CoerceToDomainValue *message, ProtobufCBuffer *buffer); -PgQuery__SubscriptingRef * - pg_query__subscripting_ref__unpack +PgQuery__CoerceToDomainValue * + pg_query__coerce_to_domain_value__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__subscripting_ref__free_unpacked - (PgQuery__SubscriptingRef *message, +void pg_query__coerce_to_domain_value__free_unpacked + (PgQuery__CoerceToDomainValue *message, ProtobufCAllocator *allocator); -/* PgQuery__FuncExpr methods */ -void pg_query__func_expr__init - (PgQuery__FuncExpr *message); -size_t pg_query__func_expr__get_packed_size - (const PgQuery__FuncExpr *message); -size_t pg_query__func_expr__pack - (const PgQuery__FuncExpr *message, +/* PgQuery__SetToDefault methods */ +void pg_query__set_to_default__init + (PgQuery__SetToDefault *message); +size_t pg_query__set_to_default__get_packed_size + (const PgQuery__SetToDefault *message); +size_t pg_query__set_to_default__pack + (const PgQuery__SetToDefault *message, uint8_t *out); -size_t pg_query__func_expr__pack_to_buffer - (const PgQuery__FuncExpr *message, +size_t pg_query__set_to_default__pack_to_buffer + (const PgQuery__SetToDefault *message, ProtobufCBuffer *buffer); -PgQuery__FuncExpr * - pg_query__func_expr__unpack +PgQuery__SetToDefault * + pg_query__set_to_default__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__func_expr__free_unpacked - (PgQuery__FuncExpr *message, +void pg_query__set_to_default__free_unpacked + (PgQuery__SetToDefault *message, ProtobufCAllocator *allocator); -/* PgQuery__NamedArgExpr methods */ -void pg_query__named_arg_expr__init - (PgQuery__NamedArgExpr *message); -size_t pg_query__named_arg_expr__get_packed_size - (const PgQuery__NamedArgExpr *message); -size_t pg_query__named_arg_expr__pack - (const PgQuery__NamedArgExpr *message, +/* PgQuery__CurrentOfExpr methods */ +void pg_query__current_of_expr__init + (PgQuery__CurrentOfExpr *message); +size_t pg_query__current_of_expr__get_packed_size + (const PgQuery__CurrentOfExpr *message); +size_t pg_query__current_of_expr__pack + (const PgQuery__CurrentOfExpr *message, uint8_t *out); -size_t pg_query__named_arg_expr__pack_to_buffer - (const PgQuery__NamedArgExpr *message, +size_t pg_query__current_of_expr__pack_to_buffer + (const PgQuery__CurrentOfExpr *message, ProtobufCBuffer *buffer); -PgQuery__NamedArgExpr * - pg_query__named_arg_expr__unpack +PgQuery__CurrentOfExpr * + pg_query__current_of_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__named_arg_expr__free_unpacked - (PgQuery__NamedArgExpr *message, +void pg_query__current_of_expr__free_unpacked + (PgQuery__CurrentOfExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__OpExpr methods */ -void pg_query__op_expr__init - (PgQuery__OpExpr *message); -size_t pg_query__op_expr__get_packed_size - (const PgQuery__OpExpr *message); -size_t pg_query__op_expr__pack - (const PgQuery__OpExpr *message, +/* PgQuery__NextValueExpr methods */ +void pg_query__next_value_expr__init + (PgQuery__NextValueExpr *message); +size_t pg_query__next_value_expr__get_packed_size + (const PgQuery__NextValueExpr *message); +size_t pg_query__next_value_expr__pack + (const PgQuery__NextValueExpr *message, uint8_t *out); -size_t pg_query__op_expr__pack_to_buffer - (const PgQuery__OpExpr *message, +size_t pg_query__next_value_expr__pack_to_buffer + (const PgQuery__NextValueExpr *message, ProtobufCBuffer *buffer); -PgQuery__OpExpr * - pg_query__op_expr__unpack +PgQuery__NextValueExpr * + pg_query__next_value_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__op_expr__free_unpacked - (PgQuery__OpExpr *message, +void pg_query__next_value_expr__free_unpacked + (PgQuery__NextValueExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__DistinctExpr methods */ -void pg_query__distinct_expr__init - (PgQuery__DistinctExpr *message); -size_t pg_query__distinct_expr__get_packed_size - (const PgQuery__DistinctExpr *message); -size_t pg_query__distinct_expr__pack - (const PgQuery__DistinctExpr *message, +/* PgQuery__InferenceElem methods */ +void pg_query__inference_elem__init + (PgQuery__InferenceElem *message); +size_t pg_query__inference_elem__get_packed_size + (const PgQuery__InferenceElem *message); +size_t pg_query__inference_elem__pack + (const PgQuery__InferenceElem *message, uint8_t *out); -size_t pg_query__distinct_expr__pack_to_buffer - (const PgQuery__DistinctExpr *message, +size_t pg_query__inference_elem__pack_to_buffer + (const PgQuery__InferenceElem *message, ProtobufCBuffer *buffer); -PgQuery__DistinctExpr * - pg_query__distinct_expr__unpack +PgQuery__InferenceElem * + pg_query__inference_elem__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__distinct_expr__free_unpacked - (PgQuery__DistinctExpr *message, +void pg_query__inference_elem__free_unpacked + (PgQuery__InferenceElem *message, ProtobufCAllocator *allocator); -/* PgQuery__NullIfExpr methods */ -void pg_query__null_if_expr__init - (PgQuery__NullIfExpr *message); -size_t pg_query__null_if_expr__get_packed_size - (const PgQuery__NullIfExpr *message); -size_t pg_query__null_if_expr__pack - (const PgQuery__NullIfExpr *message, +/* PgQuery__TargetEntry methods */ +void pg_query__target_entry__init + (PgQuery__TargetEntry *message); +size_t pg_query__target_entry__get_packed_size + (const PgQuery__TargetEntry *message); +size_t pg_query__target_entry__pack + (const PgQuery__TargetEntry *message, uint8_t *out); -size_t pg_query__null_if_expr__pack_to_buffer - (const PgQuery__NullIfExpr *message, +size_t pg_query__target_entry__pack_to_buffer + (const PgQuery__TargetEntry *message, ProtobufCBuffer *buffer); -PgQuery__NullIfExpr * - pg_query__null_if_expr__unpack +PgQuery__TargetEntry * + pg_query__target_entry__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__null_if_expr__free_unpacked - (PgQuery__NullIfExpr *message, +void pg_query__target_entry__free_unpacked + (PgQuery__TargetEntry *message, ProtobufCAllocator *allocator); -/* PgQuery__ScalarArrayOpExpr methods */ -void pg_query__scalar_array_op_expr__init - (PgQuery__ScalarArrayOpExpr *message); -size_t pg_query__scalar_array_op_expr__get_packed_size - (const PgQuery__ScalarArrayOpExpr *message); -size_t pg_query__scalar_array_op_expr__pack - (const PgQuery__ScalarArrayOpExpr *message, +/* PgQuery__RangeTblRef methods */ +void pg_query__range_tbl_ref__init + (PgQuery__RangeTblRef *message); +size_t pg_query__range_tbl_ref__get_packed_size + (const PgQuery__RangeTblRef *message); +size_t pg_query__range_tbl_ref__pack + (const PgQuery__RangeTblRef *message, uint8_t *out); -size_t pg_query__scalar_array_op_expr__pack_to_buffer - (const PgQuery__ScalarArrayOpExpr *message, +size_t pg_query__range_tbl_ref__pack_to_buffer + (const PgQuery__RangeTblRef *message, ProtobufCBuffer *buffer); -PgQuery__ScalarArrayOpExpr * - pg_query__scalar_array_op_expr__unpack +PgQuery__RangeTblRef * + pg_query__range_tbl_ref__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__scalar_array_op_expr__free_unpacked - (PgQuery__ScalarArrayOpExpr *message, +void pg_query__range_tbl_ref__free_unpacked + (PgQuery__RangeTblRef *message, ProtobufCAllocator *allocator); -/* PgQuery__BoolExpr methods */ -void pg_query__bool_expr__init - (PgQuery__BoolExpr *message); -size_t pg_query__bool_expr__get_packed_size - (const PgQuery__BoolExpr *message); -size_t pg_query__bool_expr__pack - (const PgQuery__BoolExpr *message, +/* PgQuery__JoinExpr methods */ +void pg_query__join_expr__init + (PgQuery__JoinExpr *message); +size_t pg_query__join_expr__get_packed_size + (const PgQuery__JoinExpr *message); +size_t pg_query__join_expr__pack + (const PgQuery__JoinExpr *message, uint8_t *out); -size_t pg_query__bool_expr__pack_to_buffer - (const PgQuery__BoolExpr *message, +size_t pg_query__join_expr__pack_to_buffer + (const PgQuery__JoinExpr *message, ProtobufCBuffer *buffer); -PgQuery__BoolExpr * - pg_query__bool_expr__unpack +PgQuery__JoinExpr * + pg_query__join_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__bool_expr__free_unpacked - (PgQuery__BoolExpr *message, +void pg_query__join_expr__free_unpacked + (PgQuery__JoinExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__SubLink methods */ -void pg_query__sub_link__init - (PgQuery__SubLink *message); -size_t pg_query__sub_link__get_packed_size - (const PgQuery__SubLink *message); -size_t pg_query__sub_link__pack - (const PgQuery__SubLink *message, +/* PgQuery__FromExpr methods */ +void pg_query__from_expr__init + (PgQuery__FromExpr *message); +size_t pg_query__from_expr__get_packed_size + (const PgQuery__FromExpr *message); +size_t pg_query__from_expr__pack + (const PgQuery__FromExpr *message, uint8_t *out); -size_t pg_query__sub_link__pack_to_buffer - (const PgQuery__SubLink *message, +size_t pg_query__from_expr__pack_to_buffer + (const PgQuery__FromExpr *message, ProtobufCBuffer *buffer); -PgQuery__SubLink * - pg_query__sub_link__unpack +PgQuery__FromExpr * + pg_query__from_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__sub_link__free_unpacked - (PgQuery__SubLink *message, +void pg_query__from_expr__free_unpacked + (PgQuery__FromExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__SubPlan methods */ -void pg_query__sub_plan__init - (PgQuery__SubPlan *message); -size_t pg_query__sub_plan__get_packed_size - (const PgQuery__SubPlan *message); -size_t pg_query__sub_plan__pack - (const PgQuery__SubPlan *message, +/* PgQuery__OnConflictExpr methods */ +void pg_query__on_conflict_expr__init + (PgQuery__OnConflictExpr *message); +size_t pg_query__on_conflict_expr__get_packed_size + (const PgQuery__OnConflictExpr *message); +size_t pg_query__on_conflict_expr__pack + (const PgQuery__OnConflictExpr *message, uint8_t *out); -size_t pg_query__sub_plan__pack_to_buffer - (const PgQuery__SubPlan *message, +size_t pg_query__on_conflict_expr__pack_to_buffer + (const PgQuery__OnConflictExpr *message, ProtobufCBuffer *buffer); -PgQuery__SubPlan * - pg_query__sub_plan__unpack +PgQuery__OnConflictExpr * + pg_query__on_conflict_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__sub_plan__free_unpacked - (PgQuery__SubPlan *message, +void pg_query__on_conflict_expr__free_unpacked + (PgQuery__OnConflictExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__AlternativeSubPlan methods */ -void pg_query__alternative_sub_plan__init - (PgQuery__AlternativeSubPlan *message); -size_t pg_query__alternative_sub_plan__get_packed_size - (const PgQuery__AlternativeSubPlan *message); -size_t pg_query__alternative_sub_plan__pack - (const PgQuery__AlternativeSubPlan *message, +/* PgQuery__Query methods */ +void pg_query__query__init + (PgQuery__Query *message); +size_t pg_query__query__get_packed_size + (const PgQuery__Query *message); +size_t pg_query__query__pack + (const PgQuery__Query *message, uint8_t *out); -size_t pg_query__alternative_sub_plan__pack_to_buffer - (const PgQuery__AlternativeSubPlan *message, +size_t pg_query__query__pack_to_buffer + (const PgQuery__Query *message, ProtobufCBuffer *buffer); -PgQuery__AlternativeSubPlan * - pg_query__alternative_sub_plan__unpack +PgQuery__Query * + pg_query__query__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alternative_sub_plan__free_unpacked - (PgQuery__AlternativeSubPlan *message, +void pg_query__query__free_unpacked + (PgQuery__Query *message, ProtobufCAllocator *allocator); -/* PgQuery__FieldSelect methods */ -void pg_query__field_select__init - (PgQuery__FieldSelect *message); -size_t pg_query__field_select__get_packed_size - (const PgQuery__FieldSelect *message); -size_t pg_query__field_select__pack - (const PgQuery__FieldSelect *message, +/* PgQuery__TypeName methods */ +void pg_query__type_name__init + (PgQuery__TypeName *message); +size_t pg_query__type_name__get_packed_size + (const PgQuery__TypeName *message); +size_t pg_query__type_name__pack + (const PgQuery__TypeName *message, uint8_t *out); -size_t pg_query__field_select__pack_to_buffer - (const PgQuery__FieldSelect *message, +size_t pg_query__type_name__pack_to_buffer + (const PgQuery__TypeName *message, ProtobufCBuffer *buffer); -PgQuery__FieldSelect * - pg_query__field_select__unpack +PgQuery__TypeName * + pg_query__type_name__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__field_select__free_unpacked - (PgQuery__FieldSelect *message, +void pg_query__type_name__free_unpacked + (PgQuery__TypeName *message, ProtobufCAllocator *allocator); -/* PgQuery__FieldStore methods */ -void pg_query__field_store__init - (PgQuery__FieldStore *message); -size_t pg_query__field_store__get_packed_size - (const PgQuery__FieldStore *message); -size_t pg_query__field_store__pack - (const PgQuery__FieldStore *message, +/* PgQuery__ColumnRef methods */ +void pg_query__column_ref__init + (PgQuery__ColumnRef *message); +size_t pg_query__column_ref__get_packed_size + (const PgQuery__ColumnRef *message); +size_t pg_query__column_ref__pack + (const PgQuery__ColumnRef *message, uint8_t *out); -size_t pg_query__field_store__pack_to_buffer - (const PgQuery__FieldStore *message, +size_t pg_query__column_ref__pack_to_buffer + (const PgQuery__ColumnRef *message, ProtobufCBuffer *buffer); -PgQuery__FieldStore * - pg_query__field_store__unpack +PgQuery__ColumnRef * + pg_query__column_ref__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__field_store__free_unpacked - (PgQuery__FieldStore *message, +void pg_query__column_ref__free_unpacked + (PgQuery__ColumnRef *message, ProtobufCAllocator *allocator); -/* PgQuery__RelabelType methods */ -void pg_query__relabel_type__init - (PgQuery__RelabelType *message); -size_t pg_query__relabel_type__get_packed_size - (const PgQuery__RelabelType *message); -size_t pg_query__relabel_type__pack - (const PgQuery__RelabelType *message, +/* PgQuery__ParamRef methods */ +void pg_query__param_ref__init + (PgQuery__ParamRef *message); +size_t pg_query__param_ref__get_packed_size + (const PgQuery__ParamRef *message); +size_t pg_query__param_ref__pack + (const PgQuery__ParamRef *message, uint8_t *out); -size_t pg_query__relabel_type__pack_to_buffer - (const PgQuery__RelabelType *message, +size_t pg_query__param_ref__pack_to_buffer + (const PgQuery__ParamRef *message, ProtobufCBuffer *buffer); -PgQuery__RelabelType * - pg_query__relabel_type__unpack +PgQuery__ParamRef * + pg_query__param_ref__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__relabel_type__free_unpacked - (PgQuery__RelabelType *message, +void pg_query__param_ref__free_unpacked + (PgQuery__ParamRef *message, ProtobufCAllocator *allocator); -/* PgQuery__CoerceViaIO methods */ -void pg_query__coerce_via_io__init - (PgQuery__CoerceViaIO *message); -size_t pg_query__coerce_via_io__get_packed_size - (const PgQuery__CoerceViaIO *message); -size_t pg_query__coerce_via_io__pack - (const PgQuery__CoerceViaIO *message, +/* PgQuery__AExpr methods */ +void pg_query__a__expr__init + (PgQuery__AExpr *message); +size_t pg_query__a__expr__get_packed_size + (const PgQuery__AExpr *message); +size_t pg_query__a__expr__pack + (const PgQuery__AExpr *message, uint8_t *out); -size_t pg_query__coerce_via_io__pack_to_buffer - (const PgQuery__CoerceViaIO *message, +size_t pg_query__a__expr__pack_to_buffer + (const PgQuery__AExpr *message, ProtobufCBuffer *buffer); -PgQuery__CoerceViaIO * - pg_query__coerce_via_io__unpack +PgQuery__AExpr * + pg_query__a__expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__coerce_via_io__free_unpacked - (PgQuery__CoerceViaIO *message, +void pg_query__a__expr__free_unpacked + (PgQuery__AExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__ArrayCoerceExpr methods */ -void pg_query__array_coerce_expr__init - (PgQuery__ArrayCoerceExpr *message); -size_t pg_query__array_coerce_expr__get_packed_size - (const PgQuery__ArrayCoerceExpr *message); -size_t pg_query__array_coerce_expr__pack - (const PgQuery__ArrayCoerceExpr *message, +/* PgQuery__TypeCast methods */ +void pg_query__type_cast__init + (PgQuery__TypeCast *message); +size_t pg_query__type_cast__get_packed_size + (const PgQuery__TypeCast *message); +size_t pg_query__type_cast__pack + (const PgQuery__TypeCast *message, uint8_t *out); -size_t pg_query__array_coerce_expr__pack_to_buffer - (const PgQuery__ArrayCoerceExpr *message, +size_t pg_query__type_cast__pack_to_buffer + (const PgQuery__TypeCast *message, ProtobufCBuffer *buffer); -PgQuery__ArrayCoerceExpr * - pg_query__array_coerce_expr__unpack +PgQuery__TypeCast * + pg_query__type_cast__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__array_coerce_expr__free_unpacked - (PgQuery__ArrayCoerceExpr *message, +void pg_query__type_cast__free_unpacked + (PgQuery__TypeCast *message, ProtobufCAllocator *allocator); -/* PgQuery__ConvertRowtypeExpr methods */ -void pg_query__convert_rowtype_expr__init - (PgQuery__ConvertRowtypeExpr *message); -size_t pg_query__convert_rowtype_expr__get_packed_size - (const PgQuery__ConvertRowtypeExpr *message); -size_t pg_query__convert_rowtype_expr__pack - (const PgQuery__ConvertRowtypeExpr *message, +/* PgQuery__CollateClause methods */ +void pg_query__collate_clause__init + (PgQuery__CollateClause *message); +size_t pg_query__collate_clause__get_packed_size + (const PgQuery__CollateClause *message); +size_t pg_query__collate_clause__pack + (const PgQuery__CollateClause *message, uint8_t *out); -size_t pg_query__convert_rowtype_expr__pack_to_buffer - (const PgQuery__ConvertRowtypeExpr *message, +size_t pg_query__collate_clause__pack_to_buffer + (const PgQuery__CollateClause *message, ProtobufCBuffer *buffer); -PgQuery__ConvertRowtypeExpr * - pg_query__convert_rowtype_expr__unpack +PgQuery__CollateClause * + pg_query__collate_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__convert_rowtype_expr__free_unpacked - (PgQuery__ConvertRowtypeExpr *message, +void pg_query__collate_clause__free_unpacked + (PgQuery__CollateClause *message, ProtobufCAllocator *allocator); -/* PgQuery__CollateExpr methods */ -void pg_query__collate_expr__init - (PgQuery__CollateExpr *message); -size_t pg_query__collate_expr__get_packed_size - (const PgQuery__CollateExpr *message); -size_t pg_query__collate_expr__pack - (const PgQuery__CollateExpr *message, +/* PgQuery__RoleSpec methods */ +void pg_query__role_spec__init + (PgQuery__RoleSpec *message); +size_t pg_query__role_spec__get_packed_size + (const PgQuery__RoleSpec *message); +size_t pg_query__role_spec__pack + (const PgQuery__RoleSpec *message, uint8_t *out); -size_t pg_query__collate_expr__pack_to_buffer - (const PgQuery__CollateExpr *message, +size_t pg_query__role_spec__pack_to_buffer + (const PgQuery__RoleSpec *message, ProtobufCBuffer *buffer); -PgQuery__CollateExpr * - pg_query__collate_expr__unpack +PgQuery__RoleSpec * + pg_query__role_spec__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__collate_expr__free_unpacked - (PgQuery__CollateExpr *message, +void pg_query__role_spec__free_unpacked + (PgQuery__RoleSpec *message, ProtobufCAllocator *allocator); -/* PgQuery__CaseExpr methods */ -void pg_query__case_expr__init - (PgQuery__CaseExpr *message); -size_t pg_query__case_expr__get_packed_size - (const PgQuery__CaseExpr *message); -size_t pg_query__case_expr__pack - (const PgQuery__CaseExpr *message, +/* PgQuery__FuncCall methods */ +void pg_query__func_call__init + (PgQuery__FuncCall *message); +size_t pg_query__func_call__get_packed_size + (const PgQuery__FuncCall *message); +size_t pg_query__func_call__pack + (const PgQuery__FuncCall *message, uint8_t *out); -size_t pg_query__case_expr__pack_to_buffer - (const PgQuery__CaseExpr *message, +size_t pg_query__func_call__pack_to_buffer + (const PgQuery__FuncCall *message, ProtobufCBuffer *buffer); -PgQuery__CaseExpr * - pg_query__case_expr__unpack +PgQuery__FuncCall * + pg_query__func_call__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__case_expr__free_unpacked - (PgQuery__CaseExpr *message, +void pg_query__func_call__free_unpacked + (PgQuery__FuncCall *message, ProtobufCAllocator *allocator); -/* PgQuery__CaseWhen methods */ -void pg_query__case_when__init - (PgQuery__CaseWhen *message); -size_t pg_query__case_when__get_packed_size - (const PgQuery__CaseWhen *message); -size_t pg_query__case_when__pack - (const PgQuery__CaseWhen *message, +/* PgQuery__AStar methods */ +void pg_query__a__star__init + (PgQuery__AStar *message); +size_t pg_query__a__star__get_packed_size + (const PgQuery__AStar *message); +size_t pg_query__a__star__pack + (const PgQuery__AStar *message, uint8_t *out); -size_t pg_query__case_when__pack_to_buffer - (const PgQuery__CaseWhen *message, +size_t pg_query__a__star__pack_to_buffer + (const PgQuery__AStar *message, ProtobufCBuffer *buffer); -PgQuery__CaseWhen * - pg_query__case_when__unpack +PgQuery__AStar * + pg_query__a__star__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__case_when__free_unpacked - (PgQuery__CaseWhen *message, +void pg_query__a__star__free_unpacked + (PgQuery__AStar *message, ProtobufCAllocator *allocator); -/* PgQuery__CaseTestExpr methods */ -void pg_query__case_test_expr__init - (PgQuery__CaseTestExpr *message); -size_t pg_query__case_test_expr__get_packed_size - (const PgQuery__CaseTestExpr *message); -size_t pg_query__case_test_expr__pack - (const PgQuery__CaseTestExpr *message, +/* PgQuery__AIndices methods */ +void pg_query__a__indices__init + (PgQuery__AIndices *message); +size_t pg_query__a__indices__get_packed_size + (const PgQuery__AIndices *message); +size_t pg_query__a__indices__pack + (const PgQuery__AIndices *message, uint8_t *out); -size_t pg_query__case_test_expr__pack_to_buffer - (const PgQuery__CaseTestExpr *message, +size_t pg_query__a__indices__pack_to_buffer + (const PgQuery__AIndices *message, ProtobufCBuffer *buffer); -PgQuery__CaseTestExpr * - pg_query__case_test_expr__unpack +PgQuery__AIndices * + pg_query__a__indices__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__case_test_expr__free_unpacked - (PgQuery__CaseTestExpr *message, +void pg_query__a__indices__free_unpacked + (PgQuery__AIndices *message, ProtobufCAllocator *allocator); -/* PgQuery__ArrayExpr methods */ -void pg_query__array_expr__init - (PgQuery__ArrayExpr *message); -size_t pg_query__array_expr__get_packed_size - (const PgQuery__ArrayExpr *message); -size_t pg_query__array_expr__pack - (const PgQuery__ArrayExpr *message, +/* PgQuery__AIndirection methods */ +void pg_query__a__indirection__init + (PgQuery__AIndirection *message); +size_t pg_query__a__indirection__get_packed_size + (const PgQuery__AIndirection *message); +size_t pg_query__a__indirection__pack + (const PgQuery__AIndirection *message, uint8_t *out); -size_t pg_query__array_expr__pack_to_buffer - (const PgQuery__ArrayExpr *message, +size_t pg_query__a__indirection__pack_to_buffer + (const PgQuery__AIndirection *message, ProtobufCBuffer *buffer); -PgQuery__ArrayExpr * - pg_query__array_expr__unpack +PgQuery__AIndirection * + pg_query__a__indirection__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__array_expr__free_unpacked - (PgQuery__ArrayExpr *message, +void pg_query__a__indirection__free_unpacked + (PgQuery__AIndirection *message, ProtobufCAllocator *allocator); -/* PgQuery__RowExpr methods */ -void pg_query__row_expr__init - (PgQuery__RowExpr *message); -size_t pg_query__row_expr__get_packed_size - (const PgQuery__RowExpr *message); -size_t pg_query__row_expr__pack - (const PgQuery__RowExpr *message, +/* PgQuery__AArrayExpr methods */ +void pg_query__a__array_expr__init + (PgQuery__AArrayExpr *message); +size_t pg_query__a__array_expr__get_packed_size + (const PgQuery__AArrayExpr *message); +size_t pg_query__a__array_expr__pack + (const PgQuery__AArrayExpr *message, uint8_t *out); -size_t pg_query__row_expr__pack_to_buffer - (const PgQuery__RowExpr *message, +size_t pg_query__a__array_expr__pack_to_buffer + (const PgQuery__AArrayExpr *message, ProtobufCBuffer *buffer); -PgQuery__RowExpr * - pg_query__row_expr__unpack +PgQuery__AArrayExpr * + pg_query__a__array_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__row_expr__free_unpacked - (PgQuery__RowExpr *message, +void pg_query__a__array_expr__free_unpacked + (PgQuery__AArrayExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__RowCompareExpr methods */ -void pg_query__row_compare_expr__init - (PgQuery__RowCompareExpr *message); -size_t pg_query__row_compare_expr__get_packed_size - (const PgQuery__RowCompareExpr *message); -size_t pg_query__row_compare_expr__pack - (const PgQuery__RowCompareExpr *message, +/* PgQuery__ResTarget methods */ +void pg_query__res_target__init + (PgQuery__ResTarget *message); +size_t pg_query__res_target__get_packed_size + (const PgQuery__ResTarget *message); +size_t pg_query__res_target__pack + (const PgQuery__ResTarget *message, uint8_t *out); -size_t pg_query__row_compare_expr__pack_to_buffer - (const PgQuery__RowCompareExpr *message, +size_t pg_query__res_target__pack_to_buffer + (const PgQuery__ResTarget *message, ProtobufCBuffer *buffer); -PgQuery__RowCompareExpr * - pg_query__row_compare_expr__unpack +PgQuery__ResTarget * + pg_query__res_target__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__row_compare_expr__free_unpacked - (PgQuery__RowCompareExpr *message, +void pg_query__res_target__free_unpacked + (PgQuery__ResTarget *message, ProtobufCAllocator *allocator); -/* PgQuery__CoalesceExpr methods */ -void pg_query__coalesce_expr__init - (PgQuery__CoalesceExpr *message); -size_t pg_query__coalesce_expr__get_packed_size - (const PgQuery__CoalesceExpr *message); -size_t pg_query__coalesce_expr__pack - (const PgQuery__CoalesceExpr *message, +/* PgQuery__MultiAssignRef methods */ +void pg_query__multi_assign_ref__init + (PgQuery__MultiAssignRef *message); +size_t pg_query__multi_assign_ref__get_packed_size + (const PgQuery__MultiAssignRef *message); +size_t pg_query__multi_assign_ref__pack + (const PgQuery__MultiAssignRef *message, uint8_t *out); -size_t pg_query__coalesce_expr__pack_to_buffer - (const PgQuery__CoalesceExpr *message, +size_t pg_query__multi_assign_ref__pack_to_buffer + (const PgQuery__MultiAssignRef *message, ProtobufCBuffer *buffer); -PgQuery__CoalesceExpr * - pg_query__coalesce_expr__unpack +PgQuery__MultiAssignRef * + pg_query__multi_assign_ref__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__coalesce_expr__free_unpacked - (PgQuery__CoalesceExpr *message, +void pg_query__multi_assign_ref__free_unpacked + (PgQuery__MultiAssignRef *message, ProtobufCAllocator *allocator); -/* PgQuery__MinMaxExpr methods */ -void pg_query__min_max_expr__init - (PgQuery__MinMaxExpr *message); -size_t pg_query__min_max_expr__get_packed_size - (const PgQuery__MinMaxExpr *message); -size_t pg_query__min_max_expr__pack - (const PgQuery__MinMaxExpr *message, +/* PgQuery__SortBy methods */ +void pg_query__sort_by__init + (PgQuery__SortBy *message); +size_t pg_query__sort_by__get_packed_size + (const PgQuery__SortBy *message); +size_t pg_query__sort_by__pack + (const PgQuery__SortBy *message, uint8_t *out); -size_t pg_query__min_max_expr__pack_to_buffer - (const PgQuery__MinMaxExpr *message, +size_t pg_query__sort_by__pack_to_buffer + (const PgQuery__SortBy *message, ProtobufCBuffer *buffer); -PgQuery__MinMaxExpr * - pg_query__min_max_expr__unpack +PgQuery__SortBy * + pg_query__sort_by__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__min_max_expr__free_unpacked - (PgQuery__MinMaxExpr *message, +void pg_query__sort_by__free_unpacked + (PgQuery__SortBy *message, ProtobufCAllocator *allocator); -/* PgQuery__SQLValueFunction methods */ -void pg_query__sqlvalue_function__init - (PgQuery__SQLValueFunction *message); -size_t pg_query__sqlvalue_function__get_packed_size - (const PgQuery__SQLValueFunction *message); -size_t pg_query__sqlvalue_function__pack - (const PgQuery__SQLValueFunction *message, +/* PgQuery__WindowDef methods */ +void pg_query__window_def__init + (PgQuery__WindowDef *message); +size_t pg_query__window_def__get_packed_size + (const PgQuery__WindowDef *message); +size_t pg_query__window_def__pack + (const PgQuery__WindowDef *message, uint8_t *out); -size_t pg_query__sqlvalue_function__pack_to_buffer - (const PgQuery__SQLValueFunction *message, +size_t pg_query__window_def__pack_to_buffer + (const PgQuery__WindowDef *message, ProtobufCBuffer *buffer); -PgQuery__SQLValueFunction * - pg_query__sqlvalue_function__unpack +PgQuery__WindowDef * + pg_query__window_def__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__sqlvalue_function__free_unpacked - (PgQuery__SQLValueFunction *message, +void pg_query__window_def__free_unpacked + (PgQuery__WindowDef *message, ProtobufCAllocator *allocator); -/* PgQuery__XmlExpr methods */ -void pg_query__xml_expr__init - (PgQuery__XmlExpr *message); -size_t pg_query__xml_expr__get_packed_size - (const PgQuery__XmlExpr *message); -size_t pg_query__xml_expr__pack - (const PgQuery__XmlExpr *message, +/* PgQuery__RangeSubselect methods */ +void pg_query__range_subselect__init + (PgQuery__RangeSubselect *message); +size_t pg_query__range_subselect__get_packed_size + (const PgQuery__RangeSubselect *message); +size_t pg_query__range_subselect__pack + (const PgQuery__RangeSubselect *message, uint8_t *out); -size_t pg_query__xml_expr__pack_to_buffer - (const PgQuery__XmlExpr *message, +size_t pg_query__range_subselect__pack_to_buffer + (const PgQuery__RangeSubselect *message, ProtobufCBuffer *buffer); -PgQuery__XmlExpr * - pg_query__xml_expr__unpack +PgQuery__RangeSubselect * + pg_query__range_subselect__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__xml_expr__free_unpacked - (PgQuery__XmlExpr *message, +void pg_query__range_subselect__free_unpacked + (PgQuery__RangeSubselect *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonFormat methods */ -void pg_query__json_format__init - (PgQuery__JsonFormat *message); -size_t pg_query__json_format__get_packed_size - (const PgQuery__JsonFormat *message); -size_t pg_query__json_format__pack - (const PgQuery__JsonFormat *message, +/* PgQuery__RangeFunction methods */ +void pg_query__range_function__init + (PgQuery__RangeFunction *message); +size_t pg_query__range_function__get_packed_size + (const PgQuery__RangeFunction *message); +size_t pg_query__range_function__pack + (const PgQuery__RangeFunction *message, uint8_t *out); -size_t pg_query__json_format__pack_to_buffer - (const PgQuery__JsonFormat *message, +size_t pg_query__range_function__pack_to_buffer + (const PgQuery__RangeFunction *message, ProtobufCBuffer *buffer); -PgQuery__JsonFormat * - pg_query__json_format__unpack +PgQuery__RangeFunction * + pg_query__range_function__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_format__free_unpacked - (PgQuery__JsonFormat *message, +void pg_query__range_function__free_unpacked + (PgQuery__RangeFunction *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonReturning methods */ -void pg_query__json_returning__init - (PgQuery__JsonReturning *message); -size_t pg_query__json_returning__get_packed_size - (const PgQuery__JsonReturning *message); -size_t pg_query__json_returning__pack - (const PgQuery__JsonReturning *message, +/* PgQuery__RangeTableFunc methods */ +void pg_query__range_table_func__init + (PgQuery__RangeTableFunc *message); +size_t pg_query__range_table_func__get_packed_size + (const PgQuery__RangeTableFunc *message); +size_t pg_query__range_table_func__pack + (const PgQuery__RangeTableFunc *message, uint8_t *out); -size_t pg_query__json_returning__pack_to_buffer - (const PgQuery__JsonReturning *message, +size_t pg_query__range_table_func__pack_to_buffer + (const PgQuery__RangeTableFunc *message, ProtobufCBuffer *buffer); -PgQuery__JsonReturning * - pg_query__json_returning__unpack +PgQuery__RangeTableFunc * + pg_query__range_table_func__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_returning__free_unpacked - (PgQuery__JsonReturning *message, +void pg_query__range_table_func__free_unpacked + (PgQuery__RangeTableFunc *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonValueExpr methods */ -void pg_query__json_value_expr__init - (PgQuery__JsonValueExpr *message); -size_t pg_query__json_value_expr__get_packed_size - (const PgQuery__JsonValueExpr *message); -size_t pg_query__json_value_expr__pack - (const PgQuery__JsonValueExpr *message, +/* PgQuery__RangeTableFuncCol methods */ +void pg_query__range_table_func_col__init + (PgQuery__RangeTableFuncCol *message); +size_t pg_query__range_table_func_col__get_packed_size + (const PgQuery__RangeTableFuncCol *message); +size_t pg_query__range_table_func_col__pack + (const PgQuery__RangeTableFuncCol *message, uint8_t *out); -size_t pg_query__json_value_expr__pack_to_buffer - (const PgQuery__JsonValueExpr *message, +size_t pg_query__range_table_func_col__pack_to_buffer + (const PgQuery__RangeTableFuncCol *message, ProtobufCBuffer *buffer); -PgQuery__JsonValueExpr * - pg_query__json_value_expr__unpack +PgQuery__RangeTableFuncCol * + pg_query__range_table_func_col__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_value_expr__free_unpacked - (PgQuery__JsonValueExpr *message, +void pg_query__range_table_func_col__free_unpacked + (PgQuery__RangeTableFuncCol *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonConstructorExpr methods */ -void pg_query__json_constructor_expr__init - (PgQuery__JsonConstructorExpr *message); -size_t pg_query__json_constructor_expr__get_packed_size - (const PgQuery__JsonConstructorExpr *message); -size_t pg_query__json_constructor_expr__pack - (const PgQuery__JsonConstructorExpr *message, +/* PgQuery__RangeTableSample methods */ +void pg_query__range_table_sample__init + (PgQuery__RangeTableSample *message); +size_t pg_query__range_table_sample__get_packed_size + (const PgQuery__RangeTableSample *message); +size_t pg_query__range_table_sample__pack + (const PgQuery__RangeTableSample *message, uint8_t *out); -size_t pg_query__json_constructor_expr__pack_to_buffer - (const PgQuery__JsonConstructorExpr *message, +size_t pg_query__range_table_sample__pack_to_buffer + (const PgQuery__RangeTableSample *message, ProtobufCBuffer *buffer); -PgQuery__JsonConstructorExpr * - pg_query__json_constructor_expr__unpack +PgQuery__RangeTableSample * + pg_query__range_table_sample__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_constructor_expr__free_unpacked - (PgQuery__JsonConstructorExpr *message, +void pg_query__range_table_sample__free_unpacked + (PgQuery__RangeTableSample *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonIsPredicate methods */ -void pg_query__json_is_predicate__init - (PgQuery__JsonIsPredicate *message); -size_t pg_query__json_is_predicate__get_packed_size - (const PgQuery__JsonIsPredicate *message); -size_t pg_query__json_is_predicate__pack - (const PgQuery__JsonIsPredicate *message, +/* PgQuery__ColumnDef methods */ +void pg_query__column_def__init + (PgQuery__ColumnDef *message); +size_t pg_query__column_def__get_packed_size + (const PgQuery__ColumnDef *message); +size_t pg_query__column_def__pack + (const PgQuery__ColumnDef *message, uint8_t *out); -size_t pg_query__json_is_predicate__pack_to_buffer - (const PgQuery__JsonIsPredicate *message, +size_t pg_query__column_def__pack_to_buffer + (const PgQuery__ColumnDef *message, ProtobufCBuffer *buffer); -PgQuery__JsonIsPredicate * - pg_query__json_is_predicate__unpack +PgQuery__ColumnDef * + pg_query__column_def__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_is_predicate__free_unpacked - (PgQuery__JsonIsPredicate *message, +void pg_query__column_def__free_unpacked + (PgQuery__ColumnDef *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonBehavior methods */ -void pg_query__json_behavior__init - (PgQuery__JsonBehavior *message); -size_t pg_query__json_behavior__get_packed_size - (const PgQuery__JsonBehavior *message); -size_t pg_query__json_behavior__pack - (const PgQuery__JsonBehavior *message, +/* PgQuery__TableLikeClause methods */ +void pg_query__table_like_clause__init + (PgQuery__TableLikeClause *message); +size_t pg_query__table_like_clause__get_packed_size + (const PgQuery__TableLikeClause *message); +size_t pg_query__table_like_clause__pack + (const PgQuery__TableLikeClause *message, uint8_t *out); -size_t pg_query__json_behavior__pack_to_buffer - (const PgQuery__JsonBehavior *message, +size_t pg_query__table_like_clause__pack_to_buffer + (const PgQuery__TableLikeClause *message, ProtobufCBuffer *buffer); -PgQuery__JsonBehavior * - pg_query__json_behavior__unpack +PgQuery__TableLikeClause * + pg_query__table_like_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_behavior__free_unpacked - (PgQuery__JsonBehavior *message, +void pg_query__table_like_clause__free_unpacked + (PgQuery__TableLikeClause *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonExpr methods */ -void pg_query__json_expr__init - (PgQuery__JsonExpr *message); -size_t pg_query__json_expr__get_packed_size - (const PgQuery__JsonExpr *message); -size_t pg_query__json_expr__pack - (const PgQuery__JsonExpr *message, +/* PgQuery__IndexElem methods */ +void pg_query__index_elem__init + (PgQuery__IndexElem *message); +size_t pg_query__index_elem__get_packed_size + (const PgQuery__IndexElem *message); +size_t pg_query__index_elem__pack + (const PgQuery__IndexElem *message, uint8_t *out); -size_t pg_query__json_expr__pack_to_buffer - (const PgQuery__JsonExpr *message, +size_t pg_query__index_elem__pack_to_buffer + (const PgQuery__IndexElem *message, ProtobufCBuffer *buffer); -PgQuery__JsonExpr * - pg_query__json_expr__unpack +PgQuery__IndexElem * + pg_query__index_elem__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_expr__free_unpacked - (PgQuery__JsonExpr *message, +void pg_query__index_elem__free_unpacked + (PgQuery__IndexElem *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonTablePath methods */ -void pg_query__json_table_path__init - (PgQuery__JsonTablePath *message); -size_t pg_query__json_table_path__get_packed_size - (const PgQuery__JsonTablePath *message); -size_t pg_query__json_table_path__pack - (const PgQuery__JsonTablePath *message, +/* PgQuery__DefElem methods */ +void pg_query__def_elem__init + (PgQuery__DefElem *message); +size_t pg_query__def_elem__get_packed_size + (const PgQuery__DefElem *message); +size_t pg_query__def_elem__pack + (const PgQuery__DefElem *message, uint8_t *out); -size_t pg_query__json_table_path__pack_to_buffer - (const PgQuery__JsonTablePath *message, +size_t pg_query__def_elem__pack_to_buffer + (const PgQuery__DefElem *message, ProtobufCBuffer *buffer); -PgQuery__JsonTablePath * - pg_query__json_table_path__unpack +PgQuery__DefElem * + pg_query__def_elem__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_table_path__free_unpacked - (PgQuery__JsonTablePath *message, +void pg_query__def_elem__free_unpacked + (PgQuery__DefElem *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonTablePathScan methods */ -void pg_query__json_table_path_scan__init - (PgQuery__JsonTablePathScan *message); -size_t pg_query__json_table_path_scan__get_packed_size - (const PgQuery__JsonTablePathScan *message); -size_t pg_query__json_table_path_scan__pack - (const PgQuery__JsonTablePathScan *message, +/* PgQuery__LockingClause methods */ +void pg_query__locking_clause__init + (PgQuery__LockingClause *message); +size_t pg_query__locking_clause__get_packed_size + (const PgQuery__LockingClause *message); +size_t pg_query__locking_clause__pack + (const PgQuery__LockingClause *message, uint8_t *out); -size_t pg_query__json_table_path_scan__pack_to_buffer - (const PgQuery__JsonTablePathScan *message, +size_t pg_query__locking_clause__pack_to_buffer + (const PgQuery__LockingClause *message, ProtobufCBuffer *buffer); -PgQuery__JsonTablePathScan * - pg_query__json_table_path_scan__unpack +PgQuery__LockingClause * + pg_query__locking_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_table_path_scan__free_unpacked - (PgQuery__JsonTablePathScan *message, +void pg_query__locking_clause__free_unpacked + (PgQuery__LockingClause *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonTableSiblingJoin methods */ -void pg_query__json_table_sibling_join__init - (PgQuery__JsonTableSiblingJoin *message); -size_t pg_query__json_table_sibling_join__get_packed_size - (const PgQuery__JsonTableSiblingJoin *message); -size_t pg_query__json_table_sibling_join__pack - (const PgQuery__JsonTableSiblingJoin *message, +/* PgQuery__XmlSerialize methods */ +void pg_query__xml_serialize__init + (PgQuery__XmlSerialize *message); +size_t pg_query__xml_serialize__get_packed_size + (const PgQuery__XmlSerialize *message); +size_t pg_query__xml_serialize__pack + (const PgQuery__XmlSerialize *message, uint8_t *out); -size_t pg_query__json_table_sibling_join__pack_to_buffer - (const PgQuery__JsonTableSiblingJoin *message, +size_t pg_query__xml_serialize__pack_to_buffer + (const PgQuery__XmlSerialize *message, ProtobufCBuffer *buffer); -PgQuery__JsonTableSiblingJoin * - pg_query__json_table_sibling_join__unpack +PgQuery__XmlSerialize * + pg_query__xml_serialize__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_table_sibling_join__free_unpacked - (PgQuery__JsonTableSiblingJoin *message, +void pg_query__xml_serialize__free_unpacked + (PgQuery__XmlSerialize *message, ProtobufCAllocator *allocator); -/* PgQuery__NullTest methods */ -void pg_query__null_test__init - (PgQuery__NullTest *message); -size_t pg_query__null_test__get_packed_size - (const PgQuery__NullTest *message); -size_t pg_query__null_test__pack - (const PgQuery__NullTest *message, +/* PgQuery__PartitionElem methods */ +void pg_query__partition_elem__init + (PgQuery__PartitionElem *message); +size_t pg_query__partition_elem__get_packed_size + (const PgQuery__PartitionElem *message); +size_t pg_query__partition_elem__pack + (const PgQuery__PartitionElem *message, uint8_t *out); -size_t pg_query__null_test__pack_to_buffer - (const PgQuery__NullTest *message, +size_t pg_query__partition_elem__pack_to_buffer + (const PgQuery__PartitionElem *message, ProtobufCBuffer *buffer); -PgQuery__NullTest * - pg_query__null_test__unpack +PgQuery__PartitionElem * + pg_query__partition_elem__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__null_test__free_unpacked - (PgQuery__NullTest *message, +void pg_query__partition_elem__free_unpacked + (PgQuery__PartitionElem *message, ProtobufCAllocator *allocator); -/* PgQuery__BooleanTest methods */ -void pg_query__boolean_test__init - (PgQuery__BooleanTest *message); -size_t pg_query__boolean_test__get_packed_size - (const PgQuery__BooleanTest *message); -size_t pg_query__boolean_test__pack - (const PgQuery__BooleanTest *message, +/* PgQuery__PartitionSpec methods */ +void pg_query__partition_spec__init + (PgQuery__PartitionSpec *message); +size_t pg_query__partition_spec__get_packed_size + (const PgQuery__PartitionSpec *message); +size_t pg_query__partition_spec__pack + (const PgQuery__PartitionSpec *message, uint8_t *out); -size_t pg_query__boolean_test__pack_to_buffer - (const PgQuery__BooleanTest *message, +size_t pg_query__partition_spec__pack_to_buffer + (const PgQuery__PartitionSpec *message, ProtobufCBuffer *buffer); -PgQuery__BooleanTest * - pg_query__boolean_test__unpack +PgQuery__PartitionSpec * + pg_query__partition_spec__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__boolean_test__free_unpacked - (PgQuery__BooleanTest *message, +void pg_query__partition_spec__free_unpacked + (PgQuery__PartitionSpec *message, ProtobufCAllocator *allocator); -/* PgQuery__MergeAction methods */ -void pg_query__merge_action__init - (PgQuery__MergeAction *message); -size_t pg_query__merge_action__get_packed_size - (const PgQuery__MergeAction *message); -size_t pg_query__merge_action__pack - (const PgQuery__MergeAction *message, +/* PgQuery__PartitionBoundSpec methods */ +void pg_query__partition_bound_spec__init + (PgQuery__PartitionBoundSpec *message); +size_t pg_query__partition_bound_spec__get_packed_size + (const PgQuery__PartitionBoundSpec *message); +size_t pg_query__partition_bound_spec__pack + (const PgQuery__PartitionBoundSpec *message, uint8_t *out); -size_t pg_query__merge_action__pack_to_buffer - (const PgQuery__MergeAction *message, +size_t pg_query__partition_bound_spec__pack_to_buffer + (const PgQuery__PartitionBoundSpec *message, ProtobufCBuffer *buffer); -PgQuery__MergeAction * - pg_query__merge_action__unpack +PgQuery__PartitionBoundSpec * + pg_query__partition_bound_spec__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__merge_action__free_unpacked - (PgQuery__MergeAction *message, +void pg_query__partition_bound_spec__free_unpacked + (PgQuery__PartitionBoundSpec *message, ProtobufCAllocator *allocator); -/* PgQuery__CoerceToDomain methods */ -void pg_query__coerce_to_domain__init - (PgQuery__CoerceToDomain *message); -size_t pg_query__coerce_to_domain__get_packed_size - (const PgQuery__CoerceToDomain *message); -size_t pg_query__coerce_to_domain__pack - (const PgQuery__CoerceToDomain *message, +/* PgQuery__PartitionRangeDatum methods */ +void pg_query__partition_range_datum__init + (PgQuery__PartitionRangeDatum *message); +size_t pg_query__partition_range_datum__get_packed_size + (const PgQuery__PartitionRangeDatum *message); +size_t pg_query__partition_range_datum__pack + (const PgQuery__PartitionRangeDatum *message, uint8_t *out); -size_t pg_query__coerce_to_domain__pack_to_buffer - (const PgQuery__CoerceToDomain *message, +size_t pg_query__partition_range_datum__pack_to_buffer + (const PgQuery__PartitionRangeDatum *message, ProtobufCBuffer *buffer); -PgQuery__CoerceToDomain * - pg_query__coerce_to_domain__unpack +PgQuery__PartitionRangeDatum * + pg_query__partition_range_datum__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__coerce_to_domain__free_unpacked - (PgQuery__CoerceToDomain *message, +void pg_query__partition_range_datum__free_unpacked + (PgQuery__PartitionRangeDatum *message, ProtobufCAllocator *allocator); -/* PgQuery__CoerceToDomainValue methods */ -void pg_query__coerce_to_domain_value__init - (PgQuery__CoerceToDomainValue *message); -size_t pg_query__coerce_to_domain_value__get_packed_size - (const PgQuery__CoerceToDomainValue *message); -size_t pg_query__coerce_to_domain_value__pack - (const PgQuery__CoerceToDomainValue *message, +/* PgQuery__SinglePartitionSpec methods */ +void pg_query__single_partition_spec__init + (PgQuery__SinglePartitionSpec *message); +size_t pg_query__single_partition_spec__get_packed_size + (const PgQuery__SinglePartitionSpec *message); +size_t pg_query__single_partition_spec__pack + (const PgQuery__SinglePartitionSpec *message, uint8_t *out); -size_t pg_query__coerce_to_domain_value__pack_to_buffer - (const PgQuery__CoerceToDomainValue *message, +size_t pg_query__single_partition_spec__pack_to_buffer + (const PgQuery__SinglePartitionSpec *message, ProtobufCBuffer *buffer); -PgQuery__CoerceToDomainValue * - pg_query__coerce_to_domain_value__unpack +PgQuery__SinglePartitionSpec * + pg_query__single_partition_spec__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__coerce_to_domain_value__free_unpacked - (PgQuery__CoerceToDomainValue *message, +void pg_query__single_partition_spec__free_unpacked + (PgQuery__SinglePartitionSpec *message, ProtobufCAllocator *allocator); -/* PgQuery__SetToDefault methods */ -void pg_query__set_to_default__init - (PgQuery__SetToDefault *message); -size_t pg_query__set_to_default__get_packed_size - (const PgQuery__SetToDefault *message); -size_t pg_query__set_to_default__pack - (const PgQuery__SetToDefault *message, +/* PgQuery__PartitionCmd methods */ +void pg_query__partition_cmd__init + (PgQuery__PartitionCmd *message); +size_t pg_query__partition_cmd__get_packed_size + (const PgQuery__PartitionCmd *message); +size_t pg_query__partition_cmd__pack + (const PgQuery__PartitionCmd *message, uint8_t *out); -size_t pg_query__set_to_default__pack_to_buffer - (const PgQuery__SetToDefault *message, +size_t pg_query__partition_cmd__pack_to_buffer + (const PgQuery__PartitionCmd *message, ProtobufCBuffer *buffer); -PgQuery__SetToDefault * - pg_query__set_to_default__unpack +PgQuery__PartitionCmd * + pg_query__partition_cmd__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__set_to_default__free_unpacked - (PgQuery__SetToDefault *message, +void pg_query__partition_cmd__free_unpacked + (PgQuery__PartitionCmd *message, ProtobufCAllocator *allocator); -/* PgQuery__CurrentOfExpr methods */ -void pg_query__current_of_expr__init - (PgQuery__CurrentOfExpr *message); -size_t pg_query__current_of_expr__get_packed_size - (const PgQuery__CurrentOfExpr *message); -size_t pg_query__current_of_expr__pack - (const PgQuery__CurrentOfExpr *message, +/* PgQuery__RangeTblEntry methods */ +void pg_query__range_tbl_entry__init + (PgQuery__RangeTblEntry *message); +size_t pg_query__range_tbl_entry__get_packed_size + (const PgQuery__RangeTblEntry *message); +size_t pg_query__range_tbl_entry__pack + (const PgQuery__RangeTblEntry *message, uint8_t *out); -size_t pg_query__current_of_expr__pack_to_buffer - (const PgQuery__CurrentOfExpr *message, +size_t pg_query__range_tbl_entry__pack_to_buffer + (const PgQuery__RangeTblEntry *message, ProtobufCBuffer *buffer); -PgQuery__CurrentOfExpr * - pg_query__current_of_expr__unpack +PgQuery__RangeTblEntry * + pg_query__range_tbl_entry__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__current_of_expr__free_unpacked - (PgQuery__CurrentOfExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__NextValueExpr methods */ -void pg_query__next_value_expr__init - (PgQuery__NextValueExpr *message); -size_t pg_query__next_value_expr__get_packed_size - (const PgQuery__NextValueExpr *message); -size_t pg_query__next_value_expr__pack - (const PgQuery__NextValueExpr *message, +void pg_query__range_tbl_entry__free_unpacked + (PgQuery__RangeTblEntry *message, + ProtobufCAllocator *allocator); +/* PgQuery__RTEPermissionInfo methods */ +void pg_query__rtepermission_info__init + (PgQuery__RTEPermissionInfo *message); +size_t pg_query__rtepermission_info__get_packed_size + (const PgQuery__RTEPermissionInfo *message); +size_t pg_query__rtepermission_info__pack + (const PgQuery__RTEPermissionInfo *message, uint8_t *out); -size_t pg_query__next_value_expr__pack_to_buffer - (const PgQuery__NextValueExpr *message, +size_t pg_query__rtepermission_info__pack_to_buffer + (const PgQuery__RTEPermissionInfo *message, ProtobufCBuffer *buffer); -PgQuery__NextValueExpr * - pg_query__next_value_expr__unpack +PgQuery__RTEPermissionInfo * + pg_query__rtepermission_info__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__next_value_expr__free_unpacked - (PgQuery__NextValueExpr *message, +void pg_query__rtepermission_info__free_unpacked + (PgQuery__RTEPermissionInfo *message, ProtobufCAllocator *allocator); -/* PgQuery__InferenceElem methods */ -void pg_query__inference_elem__init - (PgQuery__InferenceElem *message); -size_t pg_query__inference_elem__get_packed_size - (const PgQuery__InferenceElem *message); -size_t pg_query__inference_elem__pack - (const PgQuery__InferenceElem *message, +/* PgQuery__RangeTblFunction methods */ +void pg_query__range_tbl_function__init + (PgQuery__RangeTblFunction *message); +size_t pg_query__range_tbl_function__get_packed_size + (const PgQuery__RangeTblFunction *message); +size_t pg_query__range_tbl_function__pack + (const PgQuery__RangeTblFunction *message, uint8_t *out); -size_t pg_query__inference_elem__pack_to_buffer - (const PgQuery__InferenceElem *message, +size_t pg_query__range_tbl_function__pack_to_buffer + (const PgQuery__RangeTblFunction *message, ProtobufCBuffer *buffer); -PgQuery__InferenceElem * - pg_query__inference_elem__unpack +PgQuery__RangeTblFunction * + pg_query__range_tbl_function__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__inference_elem__free_unpacked - (PgQuery__InferenceElem *message, +void pg_query__range_tbl_function__free_unpacked + (PgQuery__RangeTblFunction *message, ProtobufCAllocator *allocator); -/* PgQuery__TargetEntry methods */ -void pg_query__target_entry__init - (PgQuery__TargetEntry *message); -size_t pg_query__target_entry__get_packed_size - (const PgQuery__TargetEntry *message); -size_t pg_query__target_entry__pack - (const PgQuery__TargetEntry *message, +/* PgQuery__TableSampleClause methods */ +void pg_query__table_sample_clause__init + (PgQuery__TableSampleClause *message); +size_t pg_query__table_sample_clause__get_packed_size + (const PgQuery__TableSampleClause *message); +size_t pg_query__table_sample_clause__pack + (const PgQuery__TableSampleClause *message, uint8_t *out); -size_t pg_query__target_entry__pack_to_buffer - (const PgQuery__TargetEntry *message, +size_t pg_query__table_sample_clause__pack_to_buffer + (const PgQuery__TableSampleClause *message, ProtobufCBuffer *buffer); -PgQuery__TargetEntry * - pg_query__target_entry__unpack +PgQuery__TableSampleClause * + pg_query__table_sample_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__target_entry__free_unpacked - (PgQuery__TargetEntry *message, +void pg_query__table_sample_clause__free_unpacked + (PgQuery__TableSampleClause *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeTblRef methods */ -void pg_query__range_tbl_ref__init - (PgQuery__RangeTblRef *message); -size_t pg_query__range_tbl_ref__get_packed_size - (const PgQuery__RangeTblRef *message); -size_t pg_query__range_tbl_ref__pack - (const PgQuery__RangeTblRef *message, +/* PgQuery__WithCheckOption methods */ +void pg_query__with_check_option__init + (PgQuery__WithCheckOption *message); +size_t pg_query__with_check_option__get_packed_size + (const PgQuery__WithCheckOption *message); +size_t pg_query__with_check_option__pack + (const PgQuery__WithCheckOption *message, uint8_t *out); -size_t pg_query__range_tbl_ref__pack_to_buffer - (const PgQuery__RangeTblRef *message, +size_t pg_query__with_check_option__pack_to_buffer + (const PgQuery__WithCheckOption *message, ProtobufCBuffer *buffer); -PgQuery__RangeTblRef * - pg_query__range_tbl_ref__unpack +PgQuery__WithCheckOption * + pg_query__with_check_option__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_tbl_ref__free_unpacked - (PgQuery__RangeTblRef *message, +void pg_query__with_check_option__free_unpacked + (PgQuery__WithCheckOption *message, ProtobufCAllocator *allocator); -/* PgQuery__JoinExpr methods */ -void pg_query__join_expr__init - (PgQuery__JoinExpr *message); -size_t pg_query__join_expr__get_packed_size - (const PgQuery__JoinExpr *message); -size_t pg_query__join_expr__pack - (const PgQuery__JoinExpr *message, +/* PgQuery__SortGroupClause methods */ +void pg_query__sort_group_clause__init + (PgQuery__SortGroupClause *message); +size_t pg_query__sort_group_clause__get_packed_size + (const PgQuery__SortGroupClause *message); +size_t pg_query__sort_group_clause__pack + (const PgQuery__SortGroupClause *message, uint8_t *out); -size_t pg_query__join_expr__pack_to_buffer - (const PgQuery__JoinExpr *message, +size_t pg_query__sort_group_clause__pack_to_buffer + (const PgQuery__SortGroupClause *message, ProtobufCBuffer *buffer); -PgQuery__JoinExpr * - pg_query__join_expr__unpack +PgQuery__SortGroupClause * + pg_query__sort_group_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__join_expr__free_unpacked - (PgQuery__JoinExpr *message, +void pg_query__sort_group_clause__free_unpacked + (PgQuery__SortGroupClause *message, ProtobufCAllocator *allocator); -/* PgQuery__FromExpr methods */ -void pg_query__from_expr__init - (PgQuery__FromExpr *message); -size_t pg_query__from_expr__get_packed_size - (const PgQuery__FromExpr *message); -size_t pg_query__from_expr__pack - (const PgQuery__FromExpr *message, +/* PgQuery__GroupingSet methods */ +void pg_query__grouping_set__init + (PgQuery__GroupingSet *message); +size_t pg_query__grouping_set__get_packed_size + (const PgQuery__GroupingSet *message); +size_t pg_query__grouping_set__pack + (const PgQuery__GroupingSet *message, uint8_t *out); -size_t pg_query__from_expr__pack_to_buffer - (const PgQuery__FromExpr *message, +size_t pg_query__grouping_set__pack_to_buffer + (const PgQuery__GroupingSet *message, ProtobufCBuffer *buffer); -PgQuery__FromExpr * - pg_query__from_expr__unpack +PgQuery__GroupingSet * + pg_query__grouping_set__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__from_expr__free_unpacked - (PgQuery__FromExpr *message, +void pg_query__grouping_set__free_unpacked + (PgQuery__GroupingSet *message, ProtobufCAllocator *allocator); -/* PgQuery__OnConflictExpr methods */ -void pg_query__on_conflict_expr__init - (PgQuery__OnConflictExpr *message); -size_t pg_query__on_conflict_expr__get_packed_size - (const PgQuery__OnConflictExpr *message); -size_t pg_query__on_conflict_expr__pack - (const PgQuery__OnConflictExpr *message, +/* PgQuery__WindowClause methods */ +void pg_query__window_clause__init + (PgQuery__WindowClause *message); +size_t pg_query__window_clause__get_packed_size + (const PgQuery__WindowClause *message); +size_t pg_query__window_clause__pack + (const PgQuery__WindowClause *message, uint8_t *out); -size_t pg_query__on_conflict_expr__pack_to_buffer - (const PgQuery__OnConflictExpr *message, +size_t pg_query__window_clause__pack_to_buffer + (const PgQuery__WindowClause *message, ProtobufCBuffer *buffer); -PgQuery__OnConflictExpr * - pg_query__on_conflict_expr__unpack +PgQuery__WindowClause * + pg_query__window_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__on_conflict_expr__free_unpacked - (PgQuery__OnConflictExpr *message, +void pg_query__window_clause__free_unpacked + (PgQuery__WindowClause *message, ProtobufCAllocator *allocator); -/* PgQuery__Query methods */ -void pg_query__query__init - (PgQuery__Query *message); -size_t pg_query__query__get_packed_size - (const PgQuery__Query *message); -size_t pg_query__query__pack - (const PgQuery__Query *message, +/* PgQuery__RowMarkClause methods */ +void pg_query__row_mark_clause__init + (PgQuery__RowMarkClause *message); +size_t pg_query__row_mark_clause__get_packed_size + (const PgQuery__RowMarkClause *message); +size_t pg_query__row_mark_clause__pack + (const PgQuery__RowMarkClause *message, uint8_t *out); -size_t pg_query__query__pack_to_buffer - (const PgQuery__Query *message, +size_t pg_query__row_mark_clause__pack_to_buffer + (const PgQuery__RowMarkClause *message, ProtobufCBuffer *buffer); -PgQuery__Query * - pg_query__query__unpack +PgQuery__RowMarkClause * + pg_query__row_mark_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__query__free_unpacked - (PgQuery__Query *message, +void pg_query__row_mark_clause__free_unpacked + (PgQuery__RowMarkClause *message, ProtobufCAllocator *allocator); -/* PgQuery__TypeName methods */ -void pg_query__type_name__init - (PgQuery__TypeName *message); -size_t pg_query__type_name__get_packed_size - (const PgQuery__TypeName *message); -size_t pg_query__type_name__pack - (const PgQuery__TypeName *message, +/* PgQuery__WithClause methods */ +void pg_query__with_clause__init + (PgQuery__WithClause *message); +size_t pg_query__with_clause__get_packed_size + (const PgQuery__WithClause *message); +size_t pg_query__with_clause__pack + (const PgQuery__WithClause *message, uint8_t *out); -size_t pg_query__type_name__pack_to_buffer - (const PgQuery__TypeName *message, +size_t pg_query__with_clause__pack_to_buffer + (const PgQuery__WithClause *message, ProtobufCBuffer *buffer); -PgQuery__TypeName * - pg_query__type_name__unpack +PgQuery__WithClause * + pg_query__with_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__type_name__free_unpacked - (PgQuery__TypeName *message, +void pg_query__with_clause__free_unpacked + (PgQuery__WithClause *message, ProtobufCAllocator *allocator); -/* PgQuery__ColumnRef methods */ -void pg_query__column_ref__init - (PgQuery__ColumnRef *message); -size_t pg_query__column_ref__get_packed_size - (const PgQuery__ColumnRef *message); -size_t pg_query__column_ref__pack - (const PgQuery__ColumnRef *message, +/* PgQuery__InferClause methods */ +void pg_query__infer_clause__init + (PgQuery__InferClause *message); +size_t pg_query__infer_clause__get_packed_size + (const PgQuery__InferClause *message); +size_t pg_query__infer_clause__pack + (const PgQuery__InferClause *message, uint8_t *out); -size_t pg_query__column_ref__pack_to_buffer - (const PgQuery__ColumnRef *message, +size_t pg_query__infer_clause__pack_to_buffer + (const PgQuery__InferClause *message, ProtobufCBuffer *buffer); -PgQuery__ColumnRef * - pg_query__column_ref__unpack +PgQuery__InferClause * + pg_query__infer_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__column_ref__free_unpacked - (PgQuery__ColumnRef *message, +void pg_query__infer_clause__free_unpacked + (PgQuery__InferClause *message, ProtobufCAllocator *allocator); -/* PgQuery__ParamRef methods */ -void pg_query__param_ref__init - (PgQuery__ParamRef *message); -size_t pg_query__param_ref__get_packed_size - (const PgQuery__ParamRef *message); -size_t pg_query__param_ref__pack - (const PgQuery__ParamRef *message, +/* PgQuery__OnConflictClause methods */ +void pg_query__on_conflict_clause__init + (PgQuery__OnConflictClause *message); +size_t pg_query__on_conflict_clause__get_packed_size + (const PgQuery__OnConflictClause *message); +size_t pg_query__on_conflict_clause__pack + (const PgQuery__OnConflictClause *message, uint8_t *out); -size_t pg_query__param_ref__pack_to_buffer - (const PgQuery__ParamRef *message, +size_t pg_query__on_conflict_clause__pack_to_buffer + (const PgQuery__OnConflictClause *message, ProtobufCBuffer *buffer); -PgQuery__ParamRef * - pg_query__param_ref__unpack +PgQuery__OnConflictClause * + pg_query__on_conflict_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__param_ref__free_unpacked - (PgQuery__ParamRef *message, +void pg_query__on_conflict_clause__free_unpacked + (PgQuery__OnConflictClause *message, ProtobufCAllocator *allocator); -/* PgQuery__AExpr methods */ -void pg_query__a__expr__init - (PgQuery__AExpr *message); -size_t pg_query__a__expr__get_packed_size - (const PgQuery__AExpr *message); -size_t pg_query__a__expr__pack - (const PgQuery__AExpr *message, +/* PgQuery__CTESearchClause methods */ +void pg_query__ctesearch_clause__init + (PgQuery__CTESearchClause *message); +size_t pg_query__ctesearch_clause__get_packed_size + (const PgQuery__CTESearchClause *message); +size_t pg_query__ctesearch_clause__pack + (const PgQuery__CTESearchClause *message, uint8_t *out); -size_t pg_query__a__expr__pack_to_buffer - (const PgQuery__AExpr *message, +size_t pg_query__ctesearch_clause__pack_to_buffer + (const PgQuery__CTESearchClause *message, ProtobufCBuffer *buffer); -PgQuery__AExpr * - pg_query__a__expr__unpack +PgQuery__CTESearchClause * + pg_query__ctesearch_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__a__expr__free_unpacked - (PgQuery__AExpr *message, +void pg_query__ctesearch_clause__free_unpacked + (PgQuery__CTESearchClause *message, ProtobufCAllocator *allocator); -/* PgQuery__TypeCast methods */ -void pg_query__type_cast__init - (PgQuery__TypeCast *message); -size_t pg_query__type_cast__get_packed_size - (const PgQuery__TypeCast *message); -size_t pg_query__type_cast__pack - (const PgQuery__TypeCast *message, +/* PgQuery__CTECycleClause methods */ +void pg_query__ctecycle_clause__init + (PgQuery__CTECycleClause *message); +size_t pg_query__ctecycle_clause__get_packed_size + (const PgQuery__CTECycleClause *message); +size_t pg_query__ctecycle_clause__pack + (const PgQuery__CTECycleClause *message, uint8_t *out); -size_t pg_query__type_cast__pack_to_buffer - (const PgQuery__TypeCast *message, +size_t pg_query__ctecycle_clause__pack_to_buffer + (const PgQuery__CTECycleClause *message, ProtobufCBuffer *buffer); -PgQuery__TypeCast * - pg_query__type_cast__unpack +PgQuery__CTECycleClause * + pg_query__ctecycle_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__type_cast__free_unpacked - (PgQuery__TypeCast *message, +void pg_query__ctecycle_clause__free_unpacked + (PgQuery__CTECycleClause *message, ProtobufCAllocator *allocator); -/* PgQuery__CollateClause methods */ -void pg_query__collate_clause__init - (PgQuery__CollateClause *message); -size_t pg_query__collate_clause__get_packed_size - (const PgQuery__CollateClause *message); -size_t pg_query__collate_clause__pack - (const PgQuery__CollateClause *message, +/* PgQuery__CommonTableExpr methods */ +void pg_query__common_table_expr__init + (PgQuery__CommonTableExpr *message); +size_t pg_query__common_table_expr__get_packed_size + (const PgQuery__CommonTableExpr *message); +size_t pg_query__common_table_expr__pack + (const PgQuery__CommonTableExpr *message, uint8_t *out); -size_t pg_query__collate_clause__pack_to_buffer - (const PgQuery__CollateClause *message, +size_t pg_query__common_table_expr__pack_to_buffer + (const PgQuery__CommonTableExpr *message, ProtobufCBuffer *buffer); -PgQuery__CollateClause * - pg_query__collate_clause__unpack +PgQuery__CommonTableExpr * + pg_query__common_table_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__collate_clause__free_unpacked - (PgQuery__CollateClause *message, +void pg_query__common_table_expr__free_unpacked + (PgQuery__CommonTableExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__RoleSpec methods */ -void pg_query__role_spec__init - (PgQuery__RoleSpec *message); -size_t pg_query__role_spec__get_packed_size - (const PgQuery__RoleSpec *message); -size_t pg_query__role_spec__pack - (const PgQuery__RoleSpec *message, +/* PgQuery__MergeWhenClause methods */ +void pg_query__merge_when_clause__init + (PgQuery__MergeWhenClause *message); +size_t pg_query__merge_when_clause__get_packed_size + (const PgQuery__MergeWhenClause *message); +size_t pg_query__merge_when_clause__pack + (const PgQuery__MergeWhenClause *message, uint8_t *out); -size_t pg_query__role_spec__pack_to_buffer - (const PgQuery__RoleSpec *message, +size_t pg_query__merge_when_clause__pack_to_buffer + (const PgQuery__MergeWhenClause *message, ProtobufCBuffer *buffer); -PgQuery__RoleSpec * - pg_query__role_spec__unpack +PgQuery__MergeWhenClause * + pg_query__merge_when_clause__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__role_spec__free_unpacked - (PgQuery__RoleSpec *message, +void pg_query__merge_when_clause__free_unpacked + (PgQuery__MergeWhenClause *message, ProtobufCAllocator *allocator); -/* PgQuery__FuncCall methods */ -void pg_query__func_call__init - (PgQuery__FuncCall *message); -size_t pg_query__func_call__get_packed_size - (const PgQuery__FuncCall *message); -size_t pg_query__func_call__pack - (const PgQuery__FuncCall *message, +/* PgQuery__TriggerTransition methods */ +void pg_query__trigger_transition__init + (PgQuery__TriggerTransition *message); +size_t pg_query__trigger_transition__get_packed_size + (const PgQuery__TriggerTransition *message); +size_t pg_query__trigger_transition__pack + (const PgQuery__TriggerTransition *message, uint8_t *out); -size_t pg_query__func_call__pack_to_buffer - (const PgQuery__FuncCall *message, +size_t pg_query__trigger_transition__pack_to_buffer + (const PgQuery__TriggerTransition *message, ProtobufCBuffer *buffer); -PgQuery__FuncCall * - pg_query__func_call__unpack +PgQuery__TriggerTransition * + pg_query__trigger_transition__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__func_call__free_unpacked - (PgQuery__FuncCall *message, +void pg_query__trigger_transition__free_unpacked + (PgQuery__TriggerTransition *message, ProtobufCAllocator *allocator); -/* PgQuery__AStar methods */ -void pg_query__a__star__init - (PgQuery__AStar *message); -size_t pg_query__a__star__get_packed_size - (const PgQuery__AStar *message); -size_t pg_query__a__star__pack - (const PgQuery__AStar *message, +/* PgQuery__JsonOutput methods */ +void pg_query__json_output__init + (PgQuery__JsonOutput *message); +size_t pg_query__json_output__get_packed_size + (const PgQuery__JsonOutput *message); +size_t pg_query__json_output__pack + (const PgQuery__JsonOutput *message, uint8_t *out); -size_t pg_query__a__star__pack_to_buffer - (const PgQuery__AStar *message, +size_t pg_query__json_output__pack_to_buffer + (const PgQuery__JsonOutput *message, ProtobufCBuffer *buffer); -PgQuery__AStar * - pg_query__a__star__unpack +PgQuery__JsonOutput * + pg_query__json_output__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__a__star__free_unpacked - (PgQuery__AStar *message, +void pg_query__json_output__free_unpacked + (PgQuery__JsonOutput *message, ProtobufCAllocator *allocator); -/* PgQuery__AIndices methods */ -void pg_query__a__indices__init - (PgQuery__AIndices *message); -size_t pg_query__a__indices__get_packed_size - (const PgQuery__AIndices *message); -size_t pg_query__a__indices__pack - (const PgQuery__AIndices *message, +/* PgQuery__JsonArgument methods */ +void pg_query__json_argument__init + (PgQuery__JsonArgument *message); +size_t pg_query__json_argument__get_packed_size + (const PgQuery__JsonArgument *message); +size_t pg_query__json_argument__pack + (const PgQuery__JsonArgument *message, uint8_t *out); -size_t pg_query__a__indices__pack_to_buffer - (const PgQuery__AIndices *message, +size_t pg_query__json_argument__pack_to_buffer + (const PgQuery__JsonArgument *message, ProtobufCBuffer *buffer); -PgQuery__AIndices * - pg_query__a__indices__unpack +PgQuery__JsonArgument * + pg_query__json_argument__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__a__indices__free_unpacked - (PgQuery__AIndices *message, +void pg_query__json_argument__free_unpacked + (PgQuery__JsonArgument *message, ProtobufCAllocator *allocator); -/* PgQuery__AIndirection methods */ -void pg_query__a__indirection__init - (PgQuery__AIndirection *message); -size_t pg_query__a__indirection__get_packed_size - (const PgQuery__AIndirection *message); -size_t pg_query__a__indirection__pack - (const PgQuery__AIndirection *message, +/* PgQuery__JsonFuncExpr methods */ +void pg_query__json_func_expr__init + (PgQuery__JsonFuncExpr *message); +size_t pg_query__json_func_expr__get_packed_size + (const PgQuery__JsonFuncExpr *message); +size_t pg_query__json_func_expr__pack + (const PgQuery__JsonFuncExpr *message, uint8_t *out); -size_t pg_query__a__indirection__pack_to_buffer - (const PgQuery__AIndirection *message, +size_t pg_query__json_func_expr__pack_to_buffer + (const PgQuery__JsonFuncExpr *message, ProtobufCBuffer *buffer); -PgQuery__AIndirection * - pg_query__a__indirection__unpack +PgQuery__JsonFuncExpr * + pg_query__json_func_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__a__indirection__free_unpacked - (PgQuery__AIndirection *message, +void pg_query__json_func_expr__free_unpacked + (PgQuery__JsonFuncExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__AArrayExpr methods */ -void pg_query__a__array_expr__init - (PgQuery__AArrayExpr *message); -size_t pg_query__a__array_expr__get_packed_size - (const PgQuery__AArrayExpr *message); -size_t pg_query__a__array_expr__pack - (const PgQuery__AArrayExpr *message, +/* PgQuery__JsonTablePathSpec methods */ +void pg_query__json_table_path_spec__init + (PgQuery__JsonTablePathSpec *message); +size_t pg_query__json_table_path_spec__get_packed_size + (const PgQuery__JsonTablePathSpec *message); +size_t pg_query__json_table_path_spec__pack + (const PgQuery__JsonTablePathSpec *message, uint8_t *out); -size_t pg_query__a__array_expr__pack_to_buffer - (const PgQuery__AArrayExpr *message, +size_t pg_query__json_table_path_spec__pack_to_buffer + (const PgQuery__JsonTablePathSpec *message, ProtobufCBuffer *buffer); -PgQuery__AArrayExpr * - pg_query__a__array_expr__unpack +PgQuery__JsonTablePathSpec * + pg_query__json_table_path_spec__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__a__array_expr__free_unpacked - (PgQuery__AArrayExpr *message, +void pg_query__json_table_path_spec__free_unpacked + (PgQuery__JsonTablePathSpec *message, ProtobufCAllocator *allocator); -/* PgQuery__ResTarget methods */ -void pg_query__res_target__init - (PgQuery__ResTarget *message); -size_t pg_query__res_target__get_packed_size - (const PgQuery__ResTarget *message); -size_t pg_query__res_target__pack - (const PgQuery__ResTarget *message, +/* PgQuery__JsonTable methods */ +void pg_query__json_table__init + (PgQuery__JsonTable *message); +size_t pg_query__json_table__get_packed_size + (const PgQuery__JsonTable *message); +size_t pg_query__json_table__pack + (const PgQuery__JsonTable *message, uint8_t *out); -size_t pg_query__res_target__pack_to_buffer - (const PgQuery__ResTarget *message, +size_t pg_query__json_table__pack_to_buffer + (const PgQuery__JsonTable *message, ProtobufCBuffer *buffer); -PgQuery__ResTarget * - pg_query__res_target__unpack +PgQuery__JsonTable * + pg_query__json_table__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__res_target__free_unpacked - (PgQuery__ResTarget *message, +void pg_query__json_table__free_unpacked + (PgQuery__JsonTable *message, ProtobufCAllocator *allocator); -/* PgQuery__MultiAssignRef methods */ -void pg_query__multi_assign_ref__init - (PgQuery__MultiAssignRef *message); -size_t pg_query__multi_assign_ref__get_packed_size - (const PgQuery__MultiAssignRef *message); -size_t pg_query__multi_assign_ref__pack - (const PgQuery__MultiAssignRef *message, +/* PgQuery__JsonTableColumn methods */ +void pg_query__json_table_column__init + (PgQuery__JsonTableColumn *message); +size_t pg_query__json_table_column__get_packed_size + (const PgQuery__JsonTableColumn *message); +size_t pg_query__json_table_column__pack + (const PgQuery__JsonTableColumn *message, uint8_t *out); -size_t pg_query__multi_assign_ref__pack_to_buffer - (const PgQuery__MultiAssignRef *message, +size_t pg_query__json_table_column__pack_to_buffer + (const PgQuery__JsonTableColumn *message, ProtobufCBuffer *buffer); -PgQuery__MultiAssignRef * - pg_query__multi_assign_ref__unpack +PgQuery__JsonTableColumn * + pg_query__json_table_column__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__multi_assign_ref__free_unpacked - (PgQuery__MultiAssignRef *message, +void pg_query__json_table_column__free_unpacked + (PgQuery__JsonTableColumn *message, ProtobufCAllocator *allocator); -/* PgQuery__SortBy methods */ -void pg_query__sort_by__init - (PgQuery__SortBy *message); -size_t pg_query__sort_by__get_packed_size - (const PgQuery__SortBy *message); -size_t pg_query__sort_by__pack - (const PgQuery__SortBy *message, +/* PgQuery__JsonKeyValue methods */ +void pg_query__json_key_value__init + (PgQuery__JsonKeyValue *message); +size_t pg_query__json_key_value__get_packed_size + (const PgQuery__JsonKeyValue *message); +size_t pg_query__json_key_value__pack + (const PgQuery__JsonKeyValue *message, uint8_t *out); -size_t pg_query__sort_by__pack_to_buffer - (const PgQuery__SortBy *message, +size_t pg_query__json_key_value__pack_to_buffer + (const PgQuery__JsonKeyValue *message, ProtobufCBuffer *buffer); -PgQuery__SortBy * - pg_query__sort_by__unpack +PgQuery__JsonKeyValue * + pg_query__json_key_value__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__sort_by__free_unpacked - (PgQuery__SortBy *message, +void pg_query__json_key_value__free_unpacked + (PgQuery__JsonKeyValue *message, ProtobufCAllocator *allocator); -/* PgQuery__WindowDef methods */ -void pg_query__window_def__init - (PgQuery__WindowDef *message); -size_t pg_query__window_def__get_packed_size - (const PgQuery__WindowDef *message); -size_t pg_query__window_def__pack - (const PgQuery__WindowDef *message, +/* PgQuery__JsonParseExpr methods */ +void pg_query__json_parse_expr__init + (PgQuery__JsonParseExpr *message); +size_t pg_query__json_parse_expr__get_packed_size + (const PgQuery__JsonParseExpr *message); +size_t pg_query__json_parse_expr__pack + (const PgQuery__JsonParseExpr *message, uint8_t *out); -size_t pg_query__window_def__pack_to_buffer - (const PgQuery__WindowDef *message, +size_t pg_query__json_parse_expr__pack_to_buffer + (const PgQuery__JsonParseExpr *message, ProtobufCBuffer *buffer); -PgQuery__WindowDef * - pg_query__window_def__unpack +PgQuery__JsonParseExpr * + pg_query__json_parse_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__window_def__free_unpacked - (PgQuery__WindowDef *message, +void pg_query__json_parse_expr__free_unpacked + (PgQuery__JsonParseExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeSubselect methods */ -void pg_query__range_subselect__init - (PgQuery__RangeSubselect *message); -size_t pg_query__range_subselect__get_packed_size - (const PgQuery__RangeSubselect *message); -size_t pg_query__range_subselect__pack - (const PgQuery__RangeSubselect *message, +/* PgQuery__JsonScalarExpr methods */ +void pg_query__json_scalar_expr__init + (PgQuery__JsonScalarExpr *message); +size_t pg_query__json_scalar_expr__get_packed_size + (const PgQuery__JsonScalarExpr *message); +size_t pg_query__json_scalar_expr__pack + (const PgQuery__JsonScalarExpr *message, uint8_t *out); -size_t pg_query__range_subselect__pack_to_buffer - (const PgQuery__RangeSubselect *message, +size_t pg_query__json_scalar_expr__pack_to_buffer + (const PgQuery__JsonScalarExpr *message, ProtobufCBuffer *buffer); -PgQuery__RangeSubselect * - pg_query__range_subselect__unpack +PgQuery__JsonScalarExpr * + pg_query__json_scalar_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_subselect__free_unpacked - (PgQuery__RangeSubselect *message, +void pg_query__json_scalar_expr__free_unpacked + (PgQuery__JsonScalarExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeFunction methods */ -void pg_query__range_function__init - (PgQuery__RangeFunction *message); -size_t pg_query__range_function__get_packed_size - (const PgQuery__RangeFunction *message); -size_t pg_query__range_function__pack - (const PgQuery__RangeFunction *message, +/* PgQuery__JsonSerializeExpr methods */ +void pg_query__json_serialize_expr__init + (PgQuery__JsonSerializeExpr *message); +size_t pg_query__json_serialize_expr__get_packed_size + (const PgQuery__JsonSerializeExpr *message); +size_t pg_query__json_serialize_expr__pack + (const PgQuery__JsonSerializeExpr *message, uint8_t *out); -size_t pg_query__range_function__pack_to_buffer - (const PgQuery__RangeFunction *message, +size_t pg_query__json_serialize_expr__pack_to_buffer + (const PgQuery__JsonSerializeExpr *message, ProtobufCBuffer *buffer); -PgQuery__RangeFunction * - pg_query__range_function__unpack +PgQuery__JsonSerializeExpr * + pg_query__json_serialize_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_function__free_unpacked - (PgQuery__RangeFunction *message, +void pg_query__json_serialize_expr__free_unpacked + (PgQuery__JsonSerializeExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeTableFunc methods */ -void pg_query__range_table_func__init - (PgQuery__RangeTableFunc *message); -size_t pg_query__range_table_func__get_packed_size - (const PgQuery__RangeTableFunc *message); -size_t pg_query__range_table_func__pack - (const PgQuery__RangeTableFunc *message, +/* PgQuery__JsonObjectConstructor methods */ +void pg_query__json_object_constructor__init + (PgQuery__JsonObjectConstructor *message); +size_t pg_query__json_object_constructor__get_packed_size + (const PgQuery__JsonObjectConstructor *message); +size_t pg_query__json_object_constructor__pack + (const PgQuery__JsonObjectConstructor *message, uint8_t *out); -size_t pg_query__range_table_func__pack_to_buffer - (const PgQuery__RangeTableFunc *message, +size_t pg_query__json_object_constructor__pack_to_buffer + (const PgQuery__JsonObjectConstructor *message, ProtobufCBuffer *buffer); -PgQuery__RangeTableFunc * - pg_query__range_table_func__unpack +PgQuery__JsonObjectConstructor * + pg_query__json_object_constructor__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_table_func__free_unpacked - (PgQuery__RangeTableFunc *message, +void pg_query__json_object_constructor__free_unpacked + (PgQuery__JsonObjectConstructor *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeTableFuncCol methods */ -void pg_query__range_table_func_col__init - (PgQuery__RangeTableFuncCol *message); -size_t pg_query__range_table_func_col__get_packed_size - (const PgQuery__RangeTableFuncCol *message); -size_t pg_query__range_table_func_col__pack - (const PgQuery__RangeTableFuncCol *message, +/* PgQuery__JsonArrayConstructor methods */ +void pg_query__json_array_constructor__init + (PgQuery__JsonArrayConstructor *message); +size_t pg_query__json_array_constructor__get_packed_size + (const PgQuery__JsonArrayConstructor *message); +size_t pg_query__json_array_constructor__pack + (const PgQuery__JsonArrayConstructor *message, uint8_t *out); -size_t pg_query__range_table_func_col__pack_to_buffer - (const PgQuery__RangeTableFuncCol *message, +size_t pg_query__json_array_constructor__pack_to_buffer + (const PgQuery__JsonArrayConstructor *message, ProtobufCBuffer *buffer); -PgQuery__RangeTableFuncCol * - pg_query__range_table_func_col__unpack +PgQuery__JsonArrayConstructor * + pg_query__json_array_constructor__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_table_func_col__free_unpacked - (PgQuery__RangeTableFuncCol *message, +void pg_query__json_array_constructor__free_unpacked + (PgQuery__JsonArrayConstructor *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeTableSample methods */ -void pg_query__range_table_sample__init - (PgQuery__RangeTableSample *message); -size_t pg_query__range_table_sample__get_packed_size - (const PgQuery__RangeTableSample *message); -size_t pg_query__range_table_sample__pack - (const PgQuery__RangeTableSample *message, +/* PgQuery__JsonArrayQueryConstructor methods */ +void pg_query__json_array_query_constructor__init + (PgQuery__JsonArrayQueryConstructor *message); +size_t pg_query__json_array_query_constructor__get_packed_size + (const PgQuery__JsonArrayQueryConstructor *message); +size_t pg_query__json_array_query_constructor__pack + (const PgQuery__JsonArrayQueryConstructor *message, uint8_t *out); -size_t pg_query__range_table_sample__pack_to_buffer - (const PgQuery__RangeTableSample *message, +size_t pg_query__json_array_query_constructor__pack_to_buffer + (const PgQuery__JsonArrayQueryConstructor *message, ProtobufCBuffer *buffer); -PgQuery__RangeTableSample * - pg_query__range_table_sample__unpack +PgQuery__JsonArrayQueryConstructor * + pg_query__json_array_query_constructor__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_table_sample__free_unpacked - (PgQuery__RangeTableSample *message, +void pg_query__json_array_query_constructor__free_unpacked + (PgQuery__JsonArrayQueryConstructor *message, ProtobufCAllocator *allocator); -/* PgQuery__ColumnDef methods */ -void pg_query__column_def__init - (PgQuery__ColumnDef *message); -size_t pg_query__column_def__get_packed_size - (const PgQuery__ColumnDef *message); -size_t pg_query__column_def__pack - (const PgQuery__ColumnDef *message, +/* PgQuery__JsonAggConstructor methods */ +void pg_query__json_agg_constructor__init + (PgQuery__JsonAggConstructor *message); +size_t pg_query__json_agg_constructor__get_packed_size + (const PgQuery__JsonAggConstructor *message); +size_t pg_query__json_agg_constructor__pack + (const PgQuery__JsonAggConstructor *message, uint8_t *out); -size_t pg_query__column_def__pack_to_buffer - (const PgQuery__ColumnDef *message, +size_t pg_query__json_agg_constructor__pack_to_buffer + (const PgQuery__JsonAggConstructor *message, ProtobufCBuffer *buffer); -PgQuery__ColumnDef * - pg_query__column_def__unpack +PgQuery__JsonAggConstructor * + pg_query__json_agg_constructor__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__column_def__free_unpacked - (PgQuery__ColumnDef *message, +void pg_query__json_agg_constructor__free_unpacked + (PgQuery__JsonAggConstructor *message, ProtobufCAllocator *allocator); -/* PgQuery__TableLikeClause methods */ -void pg_query__table_like_clause__init - (PgQuery__TableLikeClause *message); -size_t pg_query__table_like_clause__get_packed_size - (const PgQuery__TableLikeClause *message); -size_t pg_query__table_like_clause__pack - (const PgQuery__TableLikeClause *message, +/* PgQuery__JsonObjectAgg methods */ +void pg_query__json_object_agg__init + (PgQuery__JsonObjectAgg *message); +size_t pg_query__json_object_agg__get_packed_size + (const PgQuery__JsonObjectAgg *message); +size_t pg_query__json_object_agg__pack + (const PgQuery__JsonObjectAgg *message, uint8_t *out); -size_t pg_query__table_like_clause__pack_to_buffer - (const PgQuery__TableLikeClause *message, +size_t pg_query__json_object_agg__pack_to_buffer + (const PgQuery__JsonObjectAgg *message, ProtobufCBuffer *buffer); -PgQuery__TableLikeClause * - pg_query__table_like_clause__unpack +PgQuery__JsonObjectAgg * + pg_query__json_object_agg__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__table_like_clause__free_unpacked - (PgQuery__TableLikeClause *message, +void pg_query__json_object_agg__free_unpacked + (PgQuery__JsonObjectAgg *message, ProtobufCAllocator *allocator); -/* PgQuery__IndexElem methods */ -void pg_query__index_elem__init - (PgQuery__IndexElem *message); -size_t pg_query__index_elem__get_packed_size - (const PgQuery__IndexElem *message); -size_t pg_query__index_elem__pack - (const PgQuery__IndexElem *message, +/* PgQuery__JsonArrayAgg methods */ +void pg_query__json_array_agg__init + (PgQuery__JsonArrayAgg *message); +size_t pg_query__json_array_agg__get_packed_size + (const PgQuery__JsonArrayAgg *message); +size_t pg_query__json_array_agg__pack + (const PgQuery__JsonArrayAgg *message, uint8_t *out); -size_t pg_query__index_elem__pack_to_buffer - (const PgQuery__IndexElem *message, +size_t pg_query__json_array_agg__pack_to_buffer + (const PgQuery__JsonArrayAgg *message, ProtobufCBuffer *buffer); -PgQuery__IndexElem * - pg_query__index_elem__unpack +PgQuery__JsonArrayAgg * + pg_query__json_array_agg__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__index_elem__free_unpacked - (PgQuery__IndexElem *message, +void pg_query__json_array_agg__free_unpacked + (PgQuery__JsonArrayAgg *message, ProtobufCAllocator *allocator); -/* PgQuery__DefElem methods */ -void pg_query__def_elem__init - (PgQuery__DefElem *message); -size_t pg_query__def_elem__get_packed_size - (const PgQuery__DefElem *message); -size_t pg_query__def_elem__pack - (const PgQuery__DefElem *message, +/* PgQuery__RawStmt methods */ +void pg_query__raw_stmt__init + (PgQuery__RawStmt *message); +size_t pg_query__raw_stmt__get_packed_size + (const PgQuery__RawStmt *message); +size_t pg_query__raw_stmt__pack + (const PgQuery__RawStmt *message, uint8_t *out); -size_t pg_query__def_elem__pack_to_buffer - (const PgQuery__DefElem *message, +size_t pg_query__raw_stmt__pack_to_buffer + (const PgQuery__RawStmt *message, ProtobufCBuffer *buffer); -PgQuery__DefElem * - pg_query__def_elem__unpack +PgQuery__RawStmt * + pg_query__raw_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__def_elem__free_unpacked - (PgQuery__DefElem *message, +void pg_query__raw_stmt__free_unpacked + (PgQuery__RawStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__LockingClause methods */ -void pg_query__locking_clause__init - (PgQuery__LockingClause *message); -size_t pg_query__locking_clause__get_packed_size - (const PgQuery__LockingClause *message); -size_t pg_query__locking_clause__pack - (const PgQuery__LockingClause *message, +/* PgQuery__InsertStmt methods */ +void pg_query__insert_stmt__init + (PgQuery__InsertStmt *message); +size_t pg_query__insert_stmt__get_packed_size + (const PgQuery__InsertStmt *message); +size_t pg_query__insert_stmt__pack + (const PgQuery__InsertStmt *message, uint8_t *out); -size_t pg_query__locking_clause__pack_to_buffer - (const PgQuery__LockingClause *message, +size_t pg_query__insert_stmt__pack_to_buffer + (const PgQuery__InsertStmt *message, ProtobufCBuffer *buffer); -PgQuery__LockingClause * - pg_query__locking_clause__unpack +PgQuery__InsertStmt * + pg_query__insert_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__locking_clause__free_unpacked - (PgQuery__LockingClause *message, +void pg_query__insert_stmt__free_unpacked + (PgQuery__InsertStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__XmlSerialize methods */ -void pg_query__xml_serialize__init - (PgQuery__XmlSerialize *message); -size_t pg_query__xml_serialize__get_packed_size - (const PgQuery__XmlSerialize *message); -size_t pg_query__xml_serialize__pack - (const PgQuery__XmlSerialize *message, +/* PgQuery__DeleteStmt methods */ +void pg_query__delete_stmt__init + (PgQuery__DeleteStmt *message); +size_t pg_query__delete_stmt__get_packed_size + (const PgQuery__DeleteStmt *message); +size_t pg_query__delete_stmt__pack + (const PgQuery__DeleteStmt *message, uint8_t *out); -size_t pg_query__xml_serialize__pack_to_buffer - (const PgQuery__XmlSerialize *message, +size_t pg_query__delete_stmt__pack_to_buffer + (const PgQuery__DeleteStmt *message, ProtobufCBuffer *buffer); -PgQuery__XmlSerialize * - pg_query__xml_serialize__unpack +PgQuery__DeleteStmt * + pg_query__delete_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__xml_serialize__free_unpacked - (PgQuery__XmlSerialize *message, +void pg_query__delete_stmt__free_unpacked + (PgQuery__DeleteStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__PartitionElem methods */ -void pg_query__partition_elem__init - (PgQuery__PartitionElem *message); -size_t pg_query__partition_elem__get_packed_size - (const PgQuery__PartitionElem *message); -size_t pg_query__partition_elem__pack - (const PgQuery__PartitionElem *message, +/* PgQuery__UpdateStmt methods */ +void pg_query__update_stmt__init + (PgQuery__UpdateStmt *message); +size_t pg_query__update_stmt__get_packed_size + (const PgQuery__UpdateStmt *message); +size_t pg_query__update_stmt__pack + (const PgQuery__UpdateStmt *message, uint8_t *out); -size_t pg_query__partition_elem__pack_to_buffer - (const PgQuery__PartitionElem *message, +size_t pg_query__update_stmt__pack_to_buffer + (const PgQuery__UpdateStmt *message, ProtobufCBuffer *buffer); -PgQuery__PartitionElem * - pg_query__partition_elem__unpack +PgQuery__UpdateStmt * + pg_query__update_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__partition_elem__free_unpacked - (PgQuery__PartitionElem *message, +void pg_query__update_stmt__free_unpacked + (PgQuery__UpdateStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__PartitionSpec methods */ -void pg_query__partition_spec__init - (PgQuery__PartitionSpec *message); -size_t pg_query__partition_spec__get_packed_size - (const PgQuery__PartitionSpec *message); -size_t pg_query__partition_spec__pack - (const PgQuery__PartitionSpec *message, +/* PgQuery__MergeStmt methods */ +void pg_query__merge_stmt__init + (PgQuery__MergeStmt *message); +size_t pg_query__merge_stmt__get_packed_size + (const PgQuery__MergeStmt *message); +size_t pg_query__merge_stmt__pack + (const PgQuery__MergeStmt *message, uint8_t *out); -size_t pg_query__partition_spec__pack_to_buffer - (const PgQuery__PartitionSpec *message, +size_t pg_query__merge_stmt__pack_to_buffer + (const PgQuery__MergeStmt *message, ProtobufCBuffer *buffer); -PgQuery__PartitionSpec * - pg_query__partition_spec__unpack +PgQuery__MergeStmt * + pg_query__merge_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__partition_spec__free_unpacked - (PgQuery__PartitionSpec *message, +void pg_query__merge_stmt__free_unpacked + (PgQuery__MergeStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__PartitionBoundSpec methods */ -void pg_query__partition_bound_spec__init - (PgQuery__PartitionBoundSpec *message); -size_t pg_query__partition_bound_spec__get_packed_size - (const PgQuery__PartitionBoundSpec *message); -size_t pg_query__partition_bound_spec__pack - (const PgQuery__PartitionBoundSpec *message, +/* PgQuery__SelectStmt methods */ +void pg_query__select_stmt__init + (PgQuery__SelectStmt *message); +size_t pg_query__select_stmt__get_packed_size + (const PgQuery__SelectStmt *message); +size_t pg_query__select_stmt__pack + (const PgQuery__SelectStmt *message, uint8_t *out); -size_t pg_query__partition_bound_spec__pack_to_buffer - (const PgQuery__PartitionBoundSpec *message, +size_t pg_query__select_stmt__pack_to_buffer + (const PgQuery__SelectStmt *message, ProtobufCBuffer *buffer); -PgQuery__PartitionBoundSpec * - pg_query__partition_bound_spec__unpack +PgQuery__SelectStmt * + pg_query__select_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__partition_bound_spec__free_unpacked - (PgQuery__PartitionBoundSpec *message, +void pg_query__select_stmt__free_unpacked + (PgQuery__SelectStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__PartitionRangeDatum methods */ -void pg_query__partition_range_datum__init - (PgQuery__PartitionRangeDatum *message); -size_t pg_query__partition_range_datum__get_packed_size - (const PgQuery__PartitionRangeDatum *message); -size_t pg_query__partition_range_datum__pack - (const PgQuery__PartitionRangeDatum *message, +/* PgQuery__SetOperationStmt methods */ +void pg_query__set_operation_stmt__init + (PgQuery__SetOperationStmt *message); +size_t pg_query__set_operation_stmt__get_packed_size + (const PgQuery__SetOperationStmt *message); +size_t pg_query__set_operation_stmt__pack + (const PgQuery__SetOperationStmt *message, uint8_t *out); -size_t pg_query__partition_range_datum__pack_to_buffer - (const PgQuery__PartitionRangeDatum *message, +size_t pg_query__set_operation_stmt__pack_to_buffer + (const PgQuery__SetOperationStmt *message, ProtobufCBuffer *buffer); -PgQuery__PartitionRangeDatum * - pg_query__partition_range_datum__unpack +PgQuery__SetOperationStmt * + pg_query__set_operation_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__partition_range_datum__free_unpacked - (PgQuery__PartitionRangeDatum *message, +void pg_query__set_operation_stmt__free_unpacked + (PgQuery__SetOperationStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__SinglePartitionSpec methods */ -void pg_query__single_partition_spec__init - (PgQuery__SinglePartitionSpec *message); -size_t pg_query__single_partition_spec__get_packed_size - (const PgQuery__SinglePartitionSpec *message); -size_t pg_query__single_partition_spec__pack - (const PgQuery__SinglePartitionSpec *message, +/* PgQuery__ReturnStmt methods */ +void pg_query__return_stmt__init + (PgQuery__ReturnStmt *message); +size_t pg_query__return_stmt__get_packed_size + (const PgQuery__ReturnStmt *message); +size_t pg_query__return_stmt__pack + (const PgQuery__ReturnStmt *message, uint8_t *out); -size_t pg_query__single_partition_spec__pack_to_buffer - (const PgQuery__SinglePartitionSpec *message, +size_t pg_query__return_stmt__pack_to_buffer + (const PgQuery__ReturnStmt *message, ProtobufCBuffer *buffer); -PgQuery__SinglePartitionSpec * - pg_query__single_partition_spec__unpack +PgQuery__ReturnStmt * + pg_query__return_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__single_partition_spec__free_unpacked - (PgQuery__SinglePartitionSpec *message, +void pg_query__return_stmt__free_unpacked + (PgQuery__ReturnStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__PartitionCmd methods */ -void pg_query__partition_cmd__init - (PgQuery__PartitionCmd *message); -size_t pg_query__partition_cmd__get_packed_size - (const PgQuery__PartitionCmd *message); -size_t pg_query__partition_cmd__pack - (const PgQuery__PartitionCmd *message, +/* PgQuery__PLAssignStmt methods */ +void pg_query__plassign_stmt__init + (PgQuery__PLAssignStmt *message); +size_t pg_query__plassign_stmt__get_packed_size + (const PgQuery__PLAssignStmt *message); +size_t pg_query__plassign_stmt__pack + (const PgQuery__PLAssignStmt *message, uint8_t *out); -size_t pg_query__partition_cmd__pack_to_buffer - (const PgQuery__PartitionCmd *message, +size_t pg_query__plassign_stmt__pack_to_buffer + (const PgQuery__PLAssignStmt *message, ProtobufCBuffer *buffer); -PgQuery__PartitionCmd * - pg_query__partition_cmd__unpack +PgQuery__PLAssignStmt * + pg_query__plassign_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__partition_cmd__free_unpacked - (PgQuery__PartitionCmd *message, +void pg_query__plassign_stmt__free_unpacked + (PgQuery__PLAssignStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeTblEntry methods */ -void pg_query__range_tbl_entry__init - (PgQuery__RangeTblEntry *message); -size_t pg_query__range_tbl_entry__get_packed_size - (const PgQuery__RangeTblEntry *message); -size_t pg_query__range_tbl_entry__pack - (const PgQuery__RangeTblEntry *message, +/* PgQuery__CreateSchemaStmt methods */ +void pg_query__create_schema_stmt__init + (PgQuery__CreateSchemaStmt *message); +size_t pg_query__create_schema_stmt__get_packed_size + (const PgQuery__CreateSchemaStmt *message); +size_t pg_query__create_schema_stmt__pack + (const PgQuery__CreateSchemaStmt *message, uint8_t *out); -size_t pg_query__range_tbl_entry__pack_to_buffer - (const PgQuery__RangeTblEntry *message, +size_t pg_query__create_schema_stmt__pack_to_buffer + (const PgQuery__CreateSchemaStmt *message, ProtobufCBuffer *buffer); -PgQuery__RangeTblEntry * - pg_query__range_tbl_entry__unpack +PgQuery__CreateSchemaStmt * + pg_query__create_schema_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_tbl_entry__free_unpacked - (PgQuery__RangeTblEntry *message, +void pg_query__create_schema_stmt__free_unpacked + (PgQuery__CreateSchemaStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__RTEPermissionInfo methods */ -void pg_query__rtepermission_info__init - (PgQuery__RTEPermissionInfo *message); -size_t pg_query__rtepermission_info__get_packed_size - (const PgQuery__RTEPermissionInfo *message); -size_t pg_query__rtepermission_info__pack - (const PgQuery__RTEPermissionInfo *message, +/* PgQuery__AlterTableStmt methods */ +void pg_query__alter_table_stmt__init + (PgQuery__AlterTableStmt *message); +size_t pg_query__alter_table_stmt__get_packed_size + (const PgQuery__AlterTableStmt *message); +size_t pg_query__alter_table_stmt__pack + (const PgQuery__AlterTableStmt *message, uint8_t *out); -size_t pg_query__rtepermission_info__pack_to_buffer - (const PgQuery__RTEPermissionInfo *message, +size_t pg_query__alter_table_stmt__pack_to_buffer + (const PgQuery__AlterTableStmt *message, ProtobufCBuffer *buffer); -PgQuery__RTEPermissionInfo * - pg_query__rtepermission_info__unpack +PgQuery__AlterTableStmt * + pg_query__alter_table_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__rtepermission_info__free_unpacked - (PgQuery__RTEPermissionInfo *message, +void pg_query__alter_table_stmt__free_unpacked + (PgQuery__AlterTableStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__RangeTblFunction methods */ -void pg_query__range_tbl_function__init - (PgQuery__RangeTblFunction *message); -size_t pg_query__range_tbl_function__get_packed_size - (const PgQuery__RangeTblFunction *message); -size_t pg_query__range_tbl_function__pack - (const PgQuery__RangeTblFunction *message, +/* PgQuery__ReplicaIdentityStmt methods */ +void pg_query__replica_identity_stmt__init + (PgQuery__ReplicaIdentityStmt *message); +size_t pg_query__replica_identity_stmt__get_packed_size + (const PgQuery__ReplicaIdentityStmt *message); +size_t pg_query__replica_identity_stmt__pack + (const PgQuery__ReplicaIdentityStmt *message, uint8_t *out); -size_t pg_query__range_tbl_function__pack_to_buffer - (const PgQuery__RangeTblFunction *message, +size_t pg_query__replica_identity_stmt__pack_to_buffer + (const PgQuery__ReplicaIdentityStmt *message, ProtobufCBuffer *buffer); -PgQuery__RangeTblFunction * - pg_query__range_tbl_function__unpack +PgQuery__ReplicaIdentityStmt * + pg_query__replica_identity_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__range_tbl_function__free_unpacked - (PgQuery__RangeTblFunction *message, +void pg_query__replica_identity_stmt__free_unpacked + (PgQuery__ReplicaIdentityStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__TableSampleClause methods */ -void pg_query__table_sample_clause__init - (PgQuery__TableSampleClause *message); -size_t pg_query__table_sample_clause__get_packed_size - (const PgQuery__TableSampleClause *message); -size_t pg_query__table_sample_clause__pack - (const PgQuery__TableSampleClause *message, +/* PgQuery__AlterTableCmd methods */ +void pg_query__alter_table_cmd__init + (PgQuery__AlterTableCmd *message); +size_t pg_query__alter_table_cmd__get_packed_size + (const PgQuery__AlterTableCmd *message); +size_t pg_query__alter_table_cmd__pack + (const PgQuery__AlterTableCmd *message, uint8_t *out); -size_t pg_query__table_sample_clause__pack_to_buffer - (const PgQuery__TableSampleClause *message, +size_t pg_query__alter_table_cmd__pack_to_buffer + (const PgQuery__AlterTableCmd *message, ProtobufCBuffer *buffer); -PgQuery__TableSampleClause * - pg_query__table_sample_clause__unpack +PgQuery__AlterTableCmd * + pg_query__alter_table_cmd__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__table_sample_clause__free_unpacked - (PgQuery__TableSampleClause *message, +void pg_query__alter_table_cmd__free_unpacked + (PgQuery__AlterTableCmd *message, ProtobufCAllocator *allocator); -/* PgQuery__WithCheckOption methods */ -void pg_query__with_check_option__init - (PgQuery__WithCheckOption *message); -size_t pg_query__with_check_option__get_packed_size - (const PgQuery__WithCheckOption *message); -size_t pg_query__with_check_option__pack - (const PgQuery__WithCheckOption *message, +/* PgQuery__AlterCollationStmt methods */ +void pg_query__alter_collation_stmt__init + (PgQuery__AlterCollationStmt *message); +size_t pg_query__alter_collation_stmt__get_packed_size + (const PgQuery__AlterCollationStmt *message); +size_t pg_query__alter_collation_stmt__pack + (const PgQuery__AlterCollationStmt *message, uint8_t *out); -size_t pg_query__with_check_option__pack_to_buffer - (const PgQuery__WithCheckOption *message, +size_t pg_query__alter_collation_stmt__pack_to_buffer + (const PgQuery__AlterCollationStmt *message, ProtobufCBuffer *buffer); -PgQuery__WithCheckOption * - pg_query__with_check_option__unpack +PgQuery__AlterCollationStmt * + pg_query__alter_collation_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__with_check_option__free_unpacked - (PgQuery__WithCheckOption *message, +void pg_query__alter_collation_stmt__free_unpacked + (PgQuery__AlterCollationStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__SortGroupClause methods */ -void pg_query__sort_group_clause__init - (PgQuery__SortGroupClause *message); -size_t pg_query__sort_group_clause__get_packed_size - (const PgQuery__SortGroupClause *message); -size_t pg_query__sort_group_clause__pack - (const PgQuery__SortGroupClause *message, +/* PgQuery__AlterDomainStmt methods */ +void pg_query__alter_domain_stmt__init + (PgQuery__AlterDomainStmt *message); +size_t pg_query__alter_domain_stmt__get_packed_size + (const PgQuery__AlterDomainStmt *message); +size_t pg_query__alter_domain_stmt__pack + (const PgQuery__AlterDomainStmt *message, uint8_t *out); -size_t pg_query__sort_group_clause__pack_to_buffer - (const PgQuery__SortGroupClause *message, +size_t pg_query__alter_domain_stmt__pack_to_buffer + (const PgQuery__AlterDomainStmt *message, ProtobufCBuffer *buffer); -PgQuery__SortGroupClause * - pg_query__sort_group_clause__unpack +PgQuery__AlterDomainStmt * + pg_query__alter_domain_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__sort_group_clause__free_unpacked - (PgQuery__SortGroupClause *message, +void pg_query__alter_domain_stmt__free_unpacked + (PgQuery__AlterDomainStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__GroupingSet methods */ -void pg_query__grouping_set__init - (PgQuery__GroupingSet *message); -size_t pg_query__grouping_set__get_packed_size - (const PgQuery__GroupingSet *message); -size_t pg_query__grouping_set__pack - (const PgQuery__GroupingSet *message, +/* PgQuery__GrantStmt methods */ +void pg_query__grant_stmt__init + (PgQuery__GrantStmt *message); +size_t pg_query__grant_stmt__get_packed_size + (const PgQuery__GrantStmt *message); +size_t pg_query__grant_stmt__pack + (const PgQuery__GrantStmt *message, uint8_t *out); -size_t pg_query__grouping_set__pack_to_buffer - (const PgQuery__GroupingSet *message, +size_t pg_query__grant_stmt__pack_to_buffer + (const PgQuery__GrantStmt *message, ProtobufCBuffer *buffer); -PgQuery__GroupingSet * - pg_query__grouping_set__unpack +PgQuery__GrantStmt * + pg_query__grant_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__grouping_set__free_unpacked - (PgQuery__GroupingSet *message, +void pg_query__grant_stmt__free_unpacked + (PgQuery__GrantStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__WindowClause methods */ -void pg_query__window_clause__init - (PgQuery__WindowClause *message); -size_t pg_query__window_clause__get_packed_size - (const PgQuery__WindowClause *message); -size_t pg_query__window_clause__pack - (const PgQuery__WindowClause *message, +/* PgQuery__ObjectWithArgs methods */ +void pg_query__object_with_args__init + (PgQuery__ObjectWithArgs *message); +size_t pg_query__object_with_args__get_packed_size + (const PgQuery__ObjectWithArgs *message); +size_t pg_query__object_with_args__pack + (const PgQuery__ObjectWithArgs *message, uint8_t *out); -size_t pg_query__window_clause__pack_to_buffer - (const PgQuery__WindowClause *message, +size_t pg_query__object_with_args__pack_to_buffer + (const PgQuery__ObjectWithArgs *message, ProtobufCBuffer *buffer); -PgQuery__WindowClause * - pg_query__window_clause__unpack +PgQuery__ObjectWithArgs * + pg_query__object_with_args__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__window_clause__free_unpacked - (PgQuery__WindowClause *message, +void pg_query__object_with_args__free_unpacked + (PgQuery__ObjectWithArgs *message, ProtobufCAllocator *allocator); -/* PgQuery__RowMarkClause methods */ -void pg_query__row_mark_clause__init - (PgQuery__RowMarkClause *message); -size_t pg_query__row_mark_clause__get_packed_size - (const PgQuery__RowMarkClause *message); -size_t pg_query__row_mark_clause__pack - (const PgQuery__RowMarkClause *message, +/* PgQuery__AccessPriv methods */ +void pg_query__access_priv__init + (PgQuery__AccessPriv *message); +size_t pg_query__access_priv__get_packed_size + (const PgQuery__AccessPriv *message); +size_t pg_query__access_priv__pack + (const PgQuery__AccessPriv *message, uint8_t *out); -size_t pg_query__row_mark_clause__pack_to_buffer - (const PgQuery__RowMarkClause *message, +size_t pg_query__access_priv__pack_to_buffer + (const PgQuery__AccessPriv *message, ProtobufCBuffer *buffer); -PgQuery__RowMarkClause * - pg_query__row_mark_clause__unpack +PgQuery__AccessPriv * + pg_query__access_priv__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__row_mark_clause__free_unpacked - (PgQuery__RowMarkClause *message, +void pg_query__access_priv__free_unpacked + (PgQuery__AccessPriv *message, ProtobufCAllocator *allocator); -/* PgQuery__WithClause methods */ -void pg_query__with_clause__init - (PgQuery__WithClause *message); -size_t pg_query__with_clause__get_packed_size - (const PgQuery__WithClause *message); -size_t pg_query__with_clause__pack - (const PgQuery__WithClause *message, +/* PgQuery__GrantRoleStmt methods */ +void pg_query__grant_role_stmt__init + (PgQuery__GrantRoleStmt *message); +size_t pg_query__grant_role_stmt__get_packed_size + (const PgQuery__GrantRoleStmt *message); +size_t pg_query__grant_role_stmt__pack + (const PgQuery__GrantRoleStmt *message, uint8_t *out); -size_t pg_query__with_clause__pack_to_buffer - (const PgQuery__WithClause *message, +size_t pg_query__grant_role_stmt__pack_to_buffer + (const PgQuery__GrantRoleStmt *message, ProtobufCBuffer *buffer); -PgQuery__WithClause * - pg_query__with_clause__unpack +PgQuery__GrantRoleStmt * + pg_query__grant_role_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__with_clause__free_unpacked - (PgQuery__WithClause *message, +void pg_query__grant_role_stmt__free_unpacked + (PgQuery__GrantRoleStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__InferClause methods */ -void pg_query__infer_clause__init - (PgQuery__InferClause *message); -size_t pg_query__infer_clause__get_packed_size - (const PgQuery__InferClause *message); -size_t pg_query__infer_clause__pack - (const PgQuery__InferClause *message, +/* PgQuery__AlterDefaultPrivilegesStmt methods */ +void pg_query__alter_default_privileges_stmt__init + (PgQuery__AlterDefaultPrivilegesStmt *message); +size_t pg_query__alter_default_privileges_stmt__get_packed_size + (const PgQuery__AlterDefaultPrivilegesStmt *message); +size_t pg_query__alter_default_privileges_stmt__pack + (const PgQuery__AlterDefaultPrivilegesStmt *message, uint8_t *out); -size_t pg_query__infer_clause__pack_to_buffer - (const PgQuery__InferClause *message, +size_t pg_query__alter_default_privileges_stmt__pack_to_buffer + (const PgQuery__AlterDefaultPrivilegesStmt *message, ProtobufCBuffer *buffer); -PgQuery__InferClause * - pg_query__infer_clause__unpack +PgQuery__AlterDefaultPrivilegesStmt * + pg_query__alter_default_privileges_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__infer_clause__free_unpacked - (PgQuery__InferClause *message, +void pg_query__alter_default_privileges_stmt__free_unpacked + (PgQuery__AlterDefaultPrivilegesStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__OnConflictClause methods */ -void pg_query__on_conflict_clause__init - (PgQuery__OnConflictClause *message); -size_t pg_query__on_conflict_clause__get_packed_size - (const PgQuery__OnConflictClause *message); -size_t pg_query__on_conflict_clause__pack - (const PgQuery__OnConflictClause *message, +/* PgQuery__CopyStmt methods */ +void pg_query__copy_stmt__init + (PgQuery__CopyStmt *message); +size_t pg_query__copy_stmt__get_packed_size + (const PgQuery__CopyStmt *message); +size_t pg_query__copy_stmt__pack + (const PgQuery__CopyStmt *message, uint8_t *out); -size_t pg_query__on_conflict_clause__pack_to_buffer - (const PgQuery__OnConflictClause *message, +size_t pg_query__copy_stmt__pack_to_buffer + (const PgQuery__CopyStmt *message, ProtobufCBuffer *buffer); -PgQuery__OnConflictClause * - pg_query__on_conflict_clause__unpack +PgQuery__CopyStmt * + pg_query__copy_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__on_conflict_clause__free_unpacked - (PgQuery__OnConflictClause *message, +void pg_query__copy_stmt__free_unpacked + (PgQuery__CopyStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CTESearchClause methods */ -void pg_query__ctesearch_clause__init - (PgQuery__CTESearchClause *message); -size_t pg_query__ctesearch_clause__get_packed_size - (const PgQuery__CTESearchClause *message); -size_t pg_query__ctesearch_clause__pack - (const PgQuery__CTESearchClause *message, +/* PgQuery__VariableSetStmt methods */ +void pg_query__variable_set_stmt__init + (PgQuery__VariableSetStmt *message); +size_t pg_query__variable_set_stmt__get_packed_size + (const PgQuery__VariableSetStmt *message); +size_t pg_query__variable_set_stmt__pack + (const PgQuery__VariableSetStmt *message, uint8_t *out); -size_t pg_query__ctesearch_clause__pack_to_buffer - (const PgQuery__CTESearchClause *message, +size_t pg_query__variable_set_stmt__pack_to_buffer + (const PgQuery__VariableSetStmt *message, ProtobufCBuffer *buffer); -PgQuery__CTESearchClause * - pg_query__ctesearch_clause__unpack +PgQuery__VariableSetStmt * + pg_query__variable_set_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__ctesearch_clause__free_unpacked - (PgQuery__CTESearchClause *message, +void pg_query__variable_set_stmt__free_unpacked + (PgQuery__VariableSetStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CTECycleClause methods */ -void pg_query__ctecycle_clause__init - (PgQuery__CTECycleClause *message); -size_t pg_query__ctecycle_clause__get_packed_size - (const PgQuery__CTECycleClause *message); -size_t pg_query__ctecycle_clause__pack - (const PgQuery__CTECycleClause *message, +/* PgQuery__VariableShowStmt methods */ +void pg_query__variable_show_stmt__init + (PgQuery__VariableShowStmt *message); +size_t pg_query__variable_show_stmt__get_packed_size + (const PgQuery__VariableShowStmt *message); +size_t pg_query__variable_show_stmt__pack + (const PgQuery__VariableShowStmt *message, uint8_t *out); -size_t pg_query__ctecycle_clause__pack_to_buffer - (const PgQuery__CTECycleClause *message, +size_t pg_query__variable_show_stmt__pack_to_buffer + (const PgQuery__VariableShowStmt *message, ProtobufCBuffer *buffer); -PgQuery__CTECycleClause * - pg_query__ctecycle_clause__unpack +PgQuery__VariableShowStmt * + pg_query__variable_show_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__ctecycle_clause__free_unpacked - (PgQuery__CTECycleClause *message, +void pg_query__variable_show_stmt__free_unpacked + (PgQuery__VariableShowStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CommonTableExpr methods */ -void pg_query__common_table_expr__init - (PgQuery__CommonTableExpr *message); -size_t pg_query__common_table_expr__get_packed_size - (const PgQuery__CommonTableExpr *message); -size_t pg_query__common_table_expr__pack - (const PgQuery__CommonTableExpr *message, +/* PgQuery__CreateStmt methods */ +void pg_query__create_stmt__init + (PgQuery__CreateStmt *message); +size_t pg_query__create_stmt__get_packed_size + (const PgQuery__CreateStmt *message); +size_t pg_query__create_stmt__pack + (const PgQuery__CreateStmt *message, uint8_t *out); -size_t pg_query__common_table_expr__pack_to_buffer - (const PgQuery__CommonTableExpr *message, +size_t pg_query__create_stmt__pack_to_buffer + (const PgQuery__CreateStmt *message, ProtobufCBuffer *buffer); -PgQuery__CommonTableExpr * - pg_query__common_table_expr__unpack +PgQuery__CreateStmt * + pg_query__create_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__common_table_expr__free_unpacked - (PgQuery__CommonTableExpr *message, +void pg_query__create_stmt__free_unpacked + (PgQuery__CreateStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__MergeWhenClause methods */ -void pg_query__merge_when_clause__init - (PgQuery__MergeWhenClause *message); -size_t pg_query__merge_when_clause__get_packed_size - (const PgQuery__MergeWhenClause *message); -size_t pg_query__merge_when_clause__pack - (const PgQuery__MergeWhenClause *message, +/* PgQuery__Constraint methods */ +void pg_query__constraint__init + (PgQuery__Constraint *message); +size_t pg_query__constraint__get_packed_size + (const PgQuery__Constraint *message); +size_t pg_query__constraint__pack + (const PgQuery__Constraint *message, uint8_t *out); -size_t pg_query__merge_when_clause__pack_to_buffer - (const PgQuery__MergeWhenClause *message, +size_t pg_query__constraint__pack_to_buffer + (const PgQuery__Constraint *message, ProtobufCBuffer *buffer); -PgQuery__MergeWhenClause * - pg_query__merge_when_clause__unpack +PgQuery__Constraint * + pg_query__constraint__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__merge_when_clause__free_unpacked - (PgQuery__MergeWhenClause *message, +void pg_query__constraint__free_unpacked + (PgQuery__Constraint *message, ProtobufCAllocator *allocator); -/* PgQuery__TriggerTransition methods */ -void pg_query__trigger_transition__init - (PgQuery__TriggerTransition *message); -size_t pg_query__trigger_transition__get_packed_size - (const PgQuery__TriggerTransition *message); -size_t pg_query__trigger_transition__pack - (const PgQuery__TriggerTransition *message, +/* PgQuery__CreateTableSpaceStmt methods */ +void pg_query__create_table_space_stmt__init + (PgQuery__CreateTableSpaceStmt *message); +size_t pg_query__create_table_space_stmt__get_packed_size + (const PgQuery__CreateTableSpaceStmt *message); +size_t pg_query__create_table_space_stmt__pack + (const PgQuery__CreateTableSpaceStmt *message, uint8_t *out); -size_t pg_query__trigger_transition__pack_to_buffer - (const PgQuery__TriggerTransition *message, +size_t pg_query__create_table_space_stmt__pack_to_buffer + (const PgQuery__CreateTableSpaceStmt *message, ProtobufCBuffer *buffer); -PgQuery__TriggerTransition * - pg_query__trigger_transition__unpack +PgQuery__CreateTableSpaceStmt * + pg_query__create_table_space_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__trigger_transition__free_unpacked - (PgQuery__TriggerTransition *message, +void pg_query__create_table_space_stmt__free_unpacked + (PgQuery__CreateTableSpaceStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonOutput methods */ -void pg_query__json_output__init - (PgQuery__JsonOutput *message); -size_t pg_query__json_output__get_packed_size - (const PgQuery__JsonOutput *message); -size_t pg_query__json_output__pack - (const PgQuery__JsonOutput *message, +/* PgQuery__DropTableSpaceStmt methods */ +void pg_query__drop_table_space_stmt__init + (PgQuery__DropTableSpaceStmt *message); +size_t pg_query__drop_table_space_stmt__get_packed_size + (const PgQuery__DropTableSpaceStmt *message); +size_t pg_query__drop_table_space_stmt__pack + (const PgQuery__DropTableSpaceStmt *message, uint8_t *out); -size_t pg_query__json_output__pack_to_buffer - (const PgQuery__JsonOutput *message, +size_t pg_query__drop_table_space_stmt__pack_to_buffer + (const PgQuery__DropTableSpaceStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonOutput * - pg_query__json_output__unpack +PgQuery__DropTableSpaceStmt * + pg_query__drop_table_space_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_output__free_unpacked - (PgQuery__JsonOutput *message, - ProtobufCAllocator *allocator); -/* PgQuery__JsonArgument methods */ -void pg_query__json_argument__init - (PgQuery__JsonArgument *message); -size_t pg_query__json_argument__get_packed_size - (const PgQuery__JsonArgument *message); -size_t pg_query__json_argument__pack - (const PgQuery__JsonArgument *message, +void pg_query__drop_table_space_stmt__free_unpacked + (PgQuery__DropTableSpaceStmt *message, + ProtobufCAllocator *allocator); +/* PgQuery__AlterTableSpaceOptionsStmt methods */ +void pg_query__alter_table_space_options_stmt__init + (PgQuery__AlterTableSpaceOptionsStmt *message); +size_t pg_query__alter_table_space_options_stmt__get_packed_size + (const PgQuery__AlterTableSpaceOptionsStmt *message); +size_t pg_query__alter_table_space_options_stmt__pack + (const PgQuery__AlterTableSpaceOptionsStmt *message, uint8_t *out); -size_t pg_query__json_argument__pack_to_buffer - (const PgQuery__JsonArgument *message, +size_t pg_query__alter_table_space_options_stmt__pack_to_buffer + (const PgQuery__AlterTableSpaceOptionsStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonArgument * - pg_query__json_argument__unpack +PgQuery__AlterTableSpaceOptionsStmt * + pg_query__alter_table_space_options_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_argument__free_unpacked - (PgQuery__JsonArgument *message, +void pg_query__alter_table_space_options_stmt__free_unpacked + (PgQuery__AlterTableSpaceOptionsStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonFuncExpr methods */ -void pg_query__json_func_expr__init - (PgQuery__JsonFuncExpr *message); -size_t pg_query__json_func_expr__get_packed_size - (const PgQuery__JsonFuncExpr *message); -size_t pg_query__json_func_expr__pack - (const PgQuery__JsonFuncExpr *message, +/* PgQuery__AlterTableMoveAllStmt methods */ +void pg_query__alter_table_move_all_stmt__init + (PgQuery__AlterTableMoveAllStmt *message); +size_t pg_query__alter_table_move_all_stmt__get_packed_size + (const PgQuery__AlterTableMoveAllStmt *message); +size_t pg_query__alter_table_move_all_stmt__pack + (const PgQuery__AlterTableMoveAllStmt *message, uint8_t *out); -size_t pg_query__json_func_expr__pack_to_buffer - (const PgQuery__JsonFuncExpr *message, +size_t pg_query__alter_table_move_all_stmt__pack_to_buffer + (const PgQuery__AlterTableMoveAllStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonFuncExpr * - pg_query__json_func_expr__unpack +PgQuery__AlterTableMoveAllStmt * + pg_query__alter_table_move_all_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_func_expr__free_unpacked - (PgQuery__JsonFuncExpr *message, +void pg_query__alter_table_move_all_stmt__free_unpacked + (PgQuery__AlterTableMoveAllStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonTablePathSpec methods */ -void pg_query__json_table_path_spec__init - (PgQuery__JsonTablePathSpec *message); -size_t pg_query__json_table_path_spec__get_packed_size - (const PgQuery__JsonTablePathSpec *message); -size_t pg_query__json_table_path_spec__pack - (const PgQuery__JsonTablePathSpec *message, +/* PgQuery__CreateExtensionStmt methods */ +void pg_query__create_extension_stmt__init + (PgQuery__CreateExtensionStmt *message); +size_t pg_query__create_extension_stmt__get_packed_size + (const PgQuery__CreateExtensionStmt *message); +size_t pg_query__create_extension_stmt__pack + (const PgQuery__CreateExtensionStmt *message, uint8_t *out); -size_t pg_query__json_table_path_spec__pack_to_buffer - (const PgQuery__JsonTablePathSpec *message, +size_t pg_query__create_extension_stmt__pack_to_buffer + (const PgQuery__CreateExtensionStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonTablePathSpec * - pg_query__json_table_path_spec__unpack +PgQuery__CreateExtensionStmt * + pg_query__create_extension_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_table_path_spec__free_unpacked - (PgQuery__JsonTablePathSpec *message, +void pg_query__create_extension_stmt__free_unpacked + (PgQuery__CreateExtensionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonTable methods */ -void pg_query__json_table__init - (PgQuery__JsonTable *message); -size_t pg_query__json_table__get_packed_size - (const PgQuery__JsonTable *message); -size_t pg_query__json_table__pack - (const PgQuery__JsonTable *message, +/* PgQuery__AlterExtensionStmt methods */ +void pg_query__alter_extension_stmt__init + (PgQuery__AlterExtensionStmt *message); +size_t pg_query__alter_extension_stmt__get_packed_size + (const PgQuery__AlterExtensionStmt *message); +size_t pg_query__alter_extension_stmt__pack + (const PgQuery__AlterExtensionStmt *message, uint8_t *out); -size_t pg_query__json_table__pack_to_buffer - (const PgQuery__JsonTable *message, +size_t pg_query__alter_extension_stmt__pack_to_buffer + (const PgQuery__AlterExtensionStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonTable * - pg_query__json_table__unpack +PgQuery__AlterExtensionStmt * + pg_query__alter_extension_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_table__free_unpacked - (PgQuery__JsonTable *message, +void pg_query__alter_extension_stmt__free_unpacked + (PgQuery__AlterExtensionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonTableColumn methods */ -void pg_query__json_table_column__init - (PgQuery__JsonTableColumn *message); -size_t pg_query__json_table_column__get_packed_size - (const PgQuery__JsonTableColumn *message); -size_t pg_query__json_table_column__pack - (const PgQuery__JsonTableColumn *message, +/* PgQuery__AlterExtensionContentsStmt methods */ +void pg_query__alter_extension_contents_stmt__init + (PgQuery__AlterExtensionContentsStmt *message); +size_t pg_query__alter_extension_contents_stmt__get_packed_size + (const PgQuery__AlterExtensionContentsStmt *message); +size_t pg_query__alter_extension_contents_stmt__pack + (const PgQuery__AlterExtensionContentsStmt *message, uint8_t *out); -size_t pg_query__json_table_column__pack_to_buffer - (const PgQuery__JsonTableColumn *message, +size_t pg_query__alter_extension_contents_stmt__pack_to_buffer + (const PgQuery__AlterExtensionContentsStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonTableColumn * - pg_query__json_table_column__unpack +PgQuery__AlterExtensionContentsStmt * + pg_query__alter_extension_contents_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_table_column__free_unpacked - (PgQuery__JsonTableColumn *message, +void pg_query__alter_extension_contents_stmt__free_unpacked + (PgQuery__AlterExtensionContentsStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonKeyValue methods */ -void pg_query__json_key_value__init - (PgQuery__JsonKeyValue *message); -size_t pg_query__json_key_value__get_packed_size - (const PgQuery__JsonKeyValue *message); -size_t pg_query__json_key_value__pack - (const PgQuery__JsonKeyValue *message, +/* PgQuery__CreateFdwStmt methods */ +void pg_query__create_fdw_stmt__init + (PgQuery__CreateFdwStmt *message); +size_t pg_query__create_fdw_stmt__get_packed_size + (const PgQuery__CreateFdwStmt *message); +size_t pg_query__create_fdw_stmt__pack + (const PgQuery__CreateFdwStmt *message, uint8_t *out); -size_t pg_query__json_key_value__pack_to_buffer - (const PgQuery__JsonKeyValue *message, +size_t pg_query__create_fdw_stmt__pack_to_buffer + (const PgQuery__CreateFdwStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonKeyValue * - pg_query__json_key_value__unpack +PgQuery__CreateFdwStmt * + pg_query__create_fdw_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_key_value__free_unpacked - (PgQuery__JsonKeyValue *message, +void pg_query__create_fdw_stmt__free_unpacked + (PgQuery__CreateFdwStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonParseExpr methods */ -void pg_query__json_parse_expr__init - (PgQuery__JsonParseExpr *message); -size_t pg_query__json_parse_expr__get_packed_size - (const PgQuery__JsonParseExpr *message); -size_t pg_query__json_parse_expr__pack - (const PgQuery__JsonParseExpr *message, +/* PgQuery__AlterFdwStmt methods */ +void pg_query__alter_fdw_stmt__init + (PgQuery__AlterFdwStmt *message); +size_t pg_query__alter_fdw_stmt__get_packed_size + (const PgQuery__AlterFdwStmt *message); +size_t pg_query__alter_fdw_stmt__pack + (const PgQuery__AlterFdwStmt *message, uint8_t *out); -size_t pg_query__json_parse_expr__pack_to_buffer - (const PgQuery__JsonParseExpr *message, +size_t pg_query__alter_fdw_stmt__pack_to_buffer + (const PgQuery__AlterFdwStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonParseExpr * - pg_query__json_parse_expr__unpack +PgQuery__AlterFdwStmt * + pg_query__alter_fdw_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_parse_expr__free_unpacked - (PgQuery__JsonParseExpr *message, +void pg_query__alter_fdw_stmt__free_unpacked + (PgQuery__AlterFdwStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonScalarExpr methods */ -void pg_query__json_scalar_expr__init - (PgQuery__JsonScalarExpr *message); -size_t pg_query__json_scalar_expr__get_packed_size - (const PgQuery__JsonScalarExpr *message); -size_t pg_query__json_scalar_expr__pack - (const PgQuery__JsonScalarExpr *message, +/* PgQuery__CreateForeignServerStmt methods */ +void pg_query__create_foreign_server_stmt__init + (PgQuery__CreateForeignServerStmt *message); +size_t pg_query__create_foreign_server_stmt__get_packed_size + (const PgQuery__CreateForeignServerStmt *message); +size_t pg_query__create_foreign_server_stmt__pack + (const PgQuery__CreateForeignServerStmt *message, uint8_t *out); -size_t pg_query__json_scalar_expr__pack_to_buffer - (const PgQuery__JsonScalarExpr *message, +size_t pg_query__create_foreign_server_stmt__pack_to_buffer + (const PgQuery__CreateForeignServerStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonScalarExpr * - pg_query__json_scalar_expr__unpack +PgQuery__CreateForeignServerStmt * + pg_query__create_foreign_server_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_scalar_expr__free_unpacked - (PgQuery__JsonScalarExpr *message, +void pg_query__create_foreign_server_stmt__free_unpacked + (PgQuery__CreateForeignServerStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonSerializeExpr methods */ -void pg_query__json_serialize_expr__init - (PgQuery__JsonSerializeExpr *message); -size_t pg_query__json_serialize_expr__get_packed_size - (const PgQuery__JsonSerializeExpr *message); -size_t pg_query__json_serialize_expr__pack - (const PgQuery__JsonSerializeExpr *message, +/* PgQuery__AlterForeignServerStmt methods */ +void pg_query__alter_foreign_server_stmt__init + (PgQuery__AlterForeignServerStmt *message); +size_t pg_query__alter_foreign_server_stmt__get_packed_size + (const PgQuery__AlterForeignServerStmt *message); +size_t pg_query__alter_foreign_server_stmt__pack + (const PgQuery__AlterForeignServerStmt *message, uint8_t *out); -size_t pg_query__json_serialize_expr__pack_to_buffer - (const PgQuery__JsonSerializeExpr *message, +size_t pg_query__alter_foreign_server_stmt__pack_to_buffer + (const PgQuery__AlterForeignServerStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonSerializeExpr * - pg_query__json_serialize_expr__unpack +PgQuery__AlterForeignServerStmt * + pg_query__alter_foreign_server_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_serialize_expr__free_unpacked - (PgQuery__JsonSerializeExpr *message, +void pg_query__alter_foreign_server_stmt__free_unpacked + (PgQuery__AlterForeignServerStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonObjectConstructor methods */ -void pg_query__json_object_constructor__init - (PgQuery__JsonObjectConstructor *message); -size_t pg_query__json_object_constructor__get_packed_size - (const PgQuery__JsonObjectConstructor *message); -size_t pg_query__json_object_constructor__pack - (const PgQuery__JsonObjectConstructor *message, +/* PgQuery__CreateForeignTableStmt methods */ +void pg_query__create_foreign_table_stmt__init + (PgQuery__CreateForeignTableStmt *message); +size_t pg_query__create_foreign_table_stmt__get_packed_size + (const PgQuery__CreateForeignTableStmt *message); +size_t pg_query__create_foreign_table_stmt__pack + (const PgQuery__CreateForeignTableStmt *message, uint8_t *out); -size_t pg_query__json_object_constructor__pack_to_buffer - (const PgQuery__JsonObjectConstructor *message, +size_t pg_query__create_foreign_table_stmt__pack_to_buffer + (const PgQuery__CreateForeignTableStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonObjectConstructor * - pg_query__json_object_constructor__unpack +PgQuery__CreateForeignTableStmt * + pg_query__create_foreign_table_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_object_constructor__free_unpacked - (PgQuery__JsonObjectConstructor *message, +void pg_query__create_foreign_table_stmt__free_unpacked + (PgQuery__CreateForeignTableStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonArrayConstructor methods */ -void pg_query__json_array_constructor__init - (PgQuery__JsonArrayConstructor *message); -size_t pg_query__json_array_constructor__get_packed_size - (const PgQuery__JsonArrayConstructor *message); -size_t pg_query__json_array_constructor__pack - (const PgQuery__JsonArrayConstructor *message, +/* PgQuery__CreateUserMappingStmt methods */ +void pg_query__create_user_mapping_stmt__init + (PgQuery__CreateUserMappingStmt *message); +size_t pg_query__create_user_mapping_stmt__get_packed_size + (const PgQuery__CreateUserMappingStmt *message); +size_t pg_query__create_user_mapping_stmt__pack + (const PgQuery__CreateUserMappingStmt *message, uint8_t *out); -size_t pg_query__json_array_constructor__pack_to_buffer - (const PgQuery__JsonArrayConstructor *message, +size_t pg_query__create_user_mapping_stmt__pack_to_buffer + (const PgQuery__CreateUserMappingStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonArrayConstructor * - pg_query__json_array_constructor__unpack +PgQuery__CreateUserMappingStmt * + pg_query__create_user_mapping_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_array_constructor__free_unpacked - (PgQuery__JsonArrayConstructor *message, +void pg_query__create_user_mapping_stmt__free_unpacked + (PgQuery__CreateUserMappingStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonArrayQueryConstructor methods */ -void pg_query__json_array_query_constructor__init - (PgQuery__JsonArrayQueryConstructor *message); -size_t pg_query__json_array_query_constructor__get_packed_size - (const PgQuery__JsonArrayQueryConstructor *message); -size_t pg_query__json_array_query_constructor__pack - (const PgQuery__JsonArrayQueryConstructor *message, +/* PgQuery__AlterUserMappingStmt methods */ +void pg_query__alter_user_mapping_stmt__init + (PgQuery__AlterUserMappingStmt *message); +size_t pg_query__alter_user_mapping_stmt__get_packed_size + (const PgQuery__AlterUserMappingStmt *message); +size_t pg_query__alter_user_mapping_stmt__pack + (const PgQuery__AlterUserMappingStmt *message, uint8_t *out); -size_t pg_query__json_array_query_constructor__pack_to_buffer - (const PgQuery__JsonArrayQueryConstructor *message, +size_t pg_query__alter_user_mapping_stmt__pack_to_buffer + (const PgQuery__AlterUserMappingStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonArrayQueryConstructor * - pg_query__json_array_query_constructor__unpack +PgQuery__AlterUserMappingStmt * + pg_query__alter_user_mapping_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_array_query_constructor__free_unpacked - (PgQuery__JsonArrayQueryConstructor *message, +void pg_query__alter_user_mapping_stmt__free_unpacked + (PgQuery__AlterUserMappingStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonAggConstructor methods */ -void pg_query__json_agg_constructor__init - (PgQuery__JsonAggConstructor *message); -size_t pg_query__json_agg_constructor__get_packed_size - (const PgQuery__JsonAggConstructor *message); -size_t pg_query__json_agg_constructor__pack - (const PgQuery__JsonAggConstructor *message, +/* PgQuery__DropUserMappingStmt methods */ +void pg_query__drop_user_mapping_stmt__init + (PgQuery__DropUserMappingStmt *message); +size_t pg_query__drop_user_mapping_stmt__get_packed_size + (const PgQuery__DropUserMappingStmt *message); +size_t pg_query__drop_user_mapping_stmt__pack + (const PgQuery__DropUserMappingStmt *message, uint8_t *out); -size_t pg_query__json_agg_constructor__pack_to_buffer - (const PgQuery__JsonAggConstructor *message, +size_t pg_query__drop_user_mapping_stmt__pack_to_buffer + (const PgQuery__DropUserMappingStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonAggConstructor * - pg_query__json_agg_constructor__unpack +PgQuery__DropUserMappingStmt * + pg_query__drop_user_mapping_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_agg_constructor__free_unpacked - (PgQuery__JsonAggConstructor *message, +void pg_query__drop_user_mapping_stmt__free_unpacked + (PgQuery__DropUserMappingStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonObjectAgg methods */ -void pg_query__json_object_agg__init - (PgQuery__JsonObjectAgg *message); -size_t pg_query__json_object_agg__get_packed_size - (const PgQuery__JsonObjectAgg *message); -size_t pg_query__json_object_agg__pack - (const PgQuery__JsonObjectAgg *message, +/* PgQuery__ImportForeignSchemaStmt methods */ +void pg_query__import_foreign_schema_stmt__init + (PgQuery__ImportForeignSchemaStmt *message); +size_t pg_query__import_foreign_schema_stmt__get_packed_size + (const PgQuery__ImportForeignSchemaStmt *message); +size_t pg_query__import_foreign_schema_stmt__pack + (const PgQuery__ImportForeignSchemaStmt *message, uint8_t *out); -size_t pg_query__json_object_agg__pack_to_buffer - (const PgQuery__JsonObjectAgg *message, +size_t pg_query__import_foreign_schema_stmt__pack_to_buffer + (const PgQuery__ImportForeignSchemaStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonObjectAgg * - pg_query__json_object_agg__unpack +PgQuery__ImportForeignSchemaStmt * + pg_query__import_foreign_schema_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_object_agg__free_unpacked - (PgQuery__JsonObjectAgg *message, +void pg_query__import_foreign_schema_stmt__free_unpacked + (PgQuery__ImportForeignSchemaStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__JsonArrayAgg methods */ -void pg_query__json_array_agg__init - (PgQuery__JsonArrayAgg *message); -size_t pg_query__json_array_agg__get_packed_size - (const PgQuery__JsonArrayAgg *message); -size_t pg_query__json_array_agg__pack - (const PgQuery__JsonArrayAgg *message, +/* PgQuery__CreatePolicyStmt methods */ +void pg_query__create_policy_stmt__init + (PgQuery__CreatePolicyStmt *message); +size_t pg_query__create_policy_stmt__get_packed_size + (const PgQuery__CreatePolicyStmt *message); +size_t pg_query__create_policy_stmt__pack + (const PgQuery__CreatePolicyStmt *message, uint8_t *out); -size_t pg_query__json_array_agg__pack_to_buffer - (const PgQuery__JsonArrayAgg *message, +size_t pg_query__create_policy_stmt__pack_to_buffer + (const PgQuery__CreatePolicyStmt *message, ProtobufCBuffer *buffer); -PgQuery__JsonArrayAgg * - pg_query__json_array_agg__unpack +PgQuery__CreatePolicyStmt * + pg_query__create_policy_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__json_array_agg__free_unpacked - (PgQuery__JsonArrayAgg *message, +void pg_query__create_policy_stmt__free_unpacked + (PgQuery__CreatePolicyStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__RawStmt methods */ -void pg_query__raw_stmt__init - (PgQuery__RawStmt *message); -size_t pg_query__raw_stmt__get_packed_size - (const PgQuery__RawStmt *message); -size_t pg_query__raw_stmt__pack - (const PgQuery__RawStmt *message, +/* PgQuery__AlterPolicyStmt methods */ +void pg_query__alter_policy_stmt__init + (PgQuery__AlterPolicyStmt *message); +size_t pg_query__alter_policy_stmt__get_packed_size + (const PgQuery__AlterPolicyStmt *message); +size_t pg_query__alter_policy_stmt__pack + (const PgQuery__AlterPolicyStmt *message, uint8_t *out); -size_t pg_query__raw_stmt__pack_to_buffer - (const PgQuery__RawStmt *message, +size_t pg_query__alter_policy_stmt__pack_to_buffer + (const PgQuery__AlterPolicyStmt *message, ProtobufCBuffer *buffer); -PgQuery__RawStmt * - pg_query__raw_stmt__unpack +PgQuery__AlterPolicyStmt * + pg_query__alter_policy_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__raw_stmt__free_unpacked - (PgQuery__RawStmt *message, +void pg_query__alter_policy_stmt__free_unpacked + (PgQuery__AlterPolicyStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__InsertStmt methods */ -void pg_query__insert_stmt__init - (PgQuery__InsertStmt *message); -size_t pg_query__insert_stmt__get_packed_size - (const PgQuery__InsertStmt *message); -size_t pg_query__insert_stmt__pack - (const PgQuery__InsertStmt *message, +/* PgQuery__CreateAmStmt methods */ +void pg_query__create_am_stmt__init + (PgQuery__CreateAmStmt *message); +size_t pg_query__create_am_stmt__get_packed_size + (const PgQuery__CreateAmStmt *message); +size_t pg_query__create_am_stmt__pack + (const PgQuery__CreateAmStmt *message, uint8_t *out); -size_t pg_query__insert_stmt__pack_to_buffer - (const PgQuery__InsertStmt *message, +size_t pg_query__create_am_stmt__pack_to_buffer + (const PgQuery__CreateAmStmt *message, ProtobufCBuffer *buffer); -PgQuery__InsertStmt * - pg_query__insert_stmt__unpack +PgQuery__CreateAmStmt * + pg_query__create_am_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__insert_stmt__free_unpacked - (PgQuery__InsertStmt *message, +void pg_query__create_am_stmt__free_unpacked + (PgQuery__CreateAmStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DeleteStmt methods */ -void pg_query__delete_stmt__init - (PgQuery__DeleteStmt *message); -size_t pg_query__delete_stmt__get_packed_size - (const PgQuery__DeleteStmt *message); -size_t pg_query__delete_stmt__pack - (const PgQuery__DeleteStmt *message, +/* PgQuery__CreateTrigStmt methods */ +void pg_query__create_trig_stmt__init + (PgQuery__CreateTrigStmt *message); +size_t pg_query__create_trig_stmt__get_packed_size + (const PgQuery__CreateTrigStmt *message); +size_t pg_query__create_trig_stmt__pack + (const PgQuery__CreateTrigStmt *message, uint8_t *out); -size_t pg_query__delete_stmt__pack_to_buffer - (const PgQuery__DeleteStmt *message, +size_t pg_query__create_trig_stmt__pack_to_buffer + (const PgQuery__CreateTrigStmt *message, ProtobufCBuffer *buffer); -PgQuery__DeleteStmt * - pg_query__delete_stmt__unpack +PgQuery__CreateTrigStmt * + pg_query__create_trig_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__delete_stmt__free_unpacked - (PgQuery__DeleteStmt *message, +void pg_query__create_trig_stmt__free_unpacked + (PgQuery__CreateTrigStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__UpdateStmt methods */ -void pg_query__update_stmt__init - (PgQuery__UpdateStmt *message); -size_t pg_query__update_stmt__get_packed_size - (const PgQuery__UpdateStmt *message); -size_t pg_query__update_stmt__pack - (const PgQuery__UpdateStmt *message, +/* PgQuery__CreateEventTrigStmt methods */ +void pg_query__create_event_trig_stmt__init + (PgQuery__CreateEventTrigStmt *message); +size_t pg_query__create_event_trig_stmt__get_packed_size + (const PgQuery__CreateEventTrigStmt *message); +size_t pg_query__create_event_trig_stmt__pack + (const PgQuery__CreateEventTrigStmt *message, uint8_t *out); -size_t pg_query__update_stmt__pack_to_buffer - (const PgQuery__UpdateStmt *message, +size_t pg_query__create_event_trig_stmt__pack_to_buffer + (const PgQuery__CreateEventTrigStmt *message, ProtobufCBuffer *buffer); -PgQuery__UpdateStmt * - pg_query__update_stmt__unpack +PgQuery__CreateEventTrigStmt * + pg_query__create_event_trig_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__update_stmt__free_unpacked - (PgQuery__UpdateStmt *message, +void pg_query__create_event_trig_stmt__free_unpacked + (PgQuery__CreateEventTrigStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__MergeStmt methods */ -void pg_query__merge_stmt__init - (PgQuery__MergeStmt *message); -size_t pg_query__merge_stmt__get_packed_size - (const PgQuery__MergeStmt *message); -size_t pg_query__merge_stmt__pack - (const PgQuery__MergeStmt *message, +/* PgQuery__AlterEventTrigStmt methods */ +void pg_query__alter_event_trig_stmt__init + (PgQuery__AlterEventTrigStmt *message); +size_t pg_query__alter_event_trig_stmt__get_packed_size + (const PgQuery__AlterEventTrigStmt *message); +size_t pg_query__alter_event_trig_stmt__pack + (const PgQuery__AlterEventTrigStmt *message, uint8_t *out); -size_t pg_query__merge_stmt__pack_to_buffer - (const PgQuery__MergeStmt *message, +size_t pg_query__alter_event_trig_stmt__pack_to_buffer + (const PgQuery__AlterEventTrigStmt *message, ProtobufCBuffer *buffer); -PgQuery__MergeStmt * - pg_query__merge_stmt__unpack +PgQuery__AlterEventTrigStmt * + pg_query__alter_event_trig_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__merge_stmt__free_unpacked - (PgQuery__MergeStmt *message, +void pg_query__alter_event_trig_stmt__free_unpacked + (PgQuery__AlterEventTrigStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__SelectStmt methods */ -void pg_query__select_stmt__init - (PgQuery__SelectStmt *message); -size_t pg_query__select_stmt__get_packed_size - (const PgQuery__SelectStmt *message); -size_t pg_query__select_stmt__pack - (const PgQuery__SelectStmt *message, +/* PgQuery__CreatePLangStmt methods */ +void pg_query__create_plang_stmt__init + (PgQuery__CreatePLangStmt *message); +size_t pg_query__create_plang_stmt__get_packed_size + (const PgQuery__CreatePLangStmt *message); +size_t pg_query__create_plang_stmt__pack + (const PgQuery__CreatePLangStmt *message, uint8_t *out); -size_t pg_query__select_stmt__pack_to_buffer - (const PgQuery__SelectStmt *message, +size_t pg_query__create_plang_stmt__pack_to_buffer + (const PgQuery__CreatePLangStmt *message, ProtobufCBuffer *buffer); -PgQuery__SelectStmt * - pg_query__select_stmt__unpack +PgQuery__CreatePLangStmt * + pg_query__create_plang_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__select_stmt__free_unpacked - (PgQuery__SelectStmt *message, +void pg_query__create_plang_stmt__free_unpacked + (PgQuery__CreatePLangStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__SetOperationStmt methods */ -void pg_query__set_operation_stmt__init - (PgQuery__SetOperationStmt *message); -size_t pg_query__set_operation_stmt__get_packed_size - (const PgQuery__SetOperationStmt *message); -size_t pg_query__set_operation_stmt__pack - (const PgQuery__SetOperationStmt *message, +/* PgQuery__CreateRoleStmt methods */ +void pg_query__create_role_stmt__init + (PgQuery__CreateRoleStmt *message); +size_t pg_query__create_role_stmt__get_packed_size + (const PgQuery__CreateRoleStmt *message); +size_t pg_query__create_role_stmt__pack + (const PgQuery__CreateRoleStmt *message, uint8_t *out); -size_t pg_query__set_operation_stmt__pack_to_buffer - (const PgQuery__SetOperationStmt *message, +size_t pg_query__create_role_stmt__pack_to_buffer + (const PgQuery__CreateRoleStmt *message, ProtobufCBuffer *buffer); -PgQuery__SetOperationStmt * - pg_query__set_operation_stmt__unpack +PgQuery__CreateRoleStmt * + pg_query__create_role_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__set_operation_stmt__free_unpacked - (PgQuery__SetOperationStmt *message, +void pg_query__create_role_stmt__free_unpacked + (PgQuery__CreateRoleStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__ReturnStmt methods */ -void pg_query__return_stmt__init - (PgQuery__ReturnStmt *message); -size_t pg_query__return_stmt__get_packed_size - (const PgQuery__ReturnStmt *message); -size_t pg_query__return_stmt__pack - (const PgQuery__ReturnStmt *message, +/* PgQuery__AlterRoleStmt methods */ +void pg_query__alter_role_stmt__init + (PgQuery__AlterRoleStmt *message); +size_t pg_query__alter_role_stmt__get_packed_size + (const PgQuery__AlterRoleStmt *message); +size_t pg_query__alter_role_stmt__pack + (const PgQuery__AlterRoleStmt *message, uint8_t *out); -size_t pg_query__return_stmt__pack_to_buffer - (const PgQuery__ReturnStmt *message, +size_t pg_query__alter_role_stmt__pack_to_buffer + (const PgQuery__AlterRoleStmt *message, ProtobufCBuffer *buffer); -PgQuery__ReturnStmt * - pg_query__return_stmt__unpack +PgQuery__AlterRoleStmt * + pg_query__alter_role_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__return_stmt__free_unpacked - (PgQuery__ReturnStmt *message, +void pg_query__alter_role_stmt__free_unpacked + (PgQuery__AlterRoleStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__PLAssignStmt methods */ -void pg_query__plassign_stmt__init - (PgQuery__PLAssignStmt *message); -size_t pg_query__plassign_stmt__get_packed_size - (const PgQuery__PLAssignStmt *message); -size_t pg_query__plassign_stmt__pack - (const PgQuery__PLAssignStmt *message, +/* PgQuery__AlterRoleSetStmt methods */ +void pg_query__alter_role_set_stmt__init + (PgQuery__AlterRoleSetStmt *message); +size_t pg_query__alter_role_set_stmt__get_packed_size + (const PgQuery__AlterRoleSetStmt *message); +size_t pg_query__alter_role_set_stmt__pack + (const PgQuery__AlterRoleSetStmt *message, uint8_t *out); -size_t pg_query__plassign_stmt__pack_to_buffer - (const PgQuery__PLAssignStmt *message, +size_t pg_query__alter_role_set_stmt__pack_to_buffer + (const PgQuery__AlterRoleSetStmt *message, ProtobufCBuffer *buffer); -PgQuery__PLAssignStmt * - pg_query__plassign_stmt__unpack +PgQuery__AlterRoleSetStmt * + pg_query__alter_role_set_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__plassign_stmt__free_unpacked - (PgQuery__PLAssignStmt *message, +void pg_query__alter_role_set_stmt__free_unpacked + (PgQuery__AlterRoleSetStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateSchemaStmt methods */ -void pg_query__create_schema_stmt__init - (PgQuery__CreateSchemaStmt *message); -size_t pg_query__create_schema_stmt__get_packed_size - (const PgQuery__CreateSchemaStmt *message); -size_t pg_query__create_schema_stmt__pack - (const PgQuery__CreateSchemaStmt *message, +/* PgQuery__DropRoleStmt methods */ +void pg_query__drop_role_stmt__init + (PgQuery__DropRoleStmt *message); +size_t pg_query__drop_role_stmt__get_packed_size + (const PgQuery__DropRoleStmt *message); +size_t pg_query__drop_role_stmt__pack + (const PgQuery__DropRoleStmt *message, uint8_t *out); -size_t pg_query__create_schema_stmt__pack_to_buffer - (const PgQuery__CreateSchemaStmt *message, +size_t pg_query__drop_role_stmt__pack_to_buffer + (const PgQuery__DropRoleStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateSchemaStmt * - pg_query__create_schema_stmt__unpack +PgQuery__DropRoleStmt * + pg_query__drop_role_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_schema_stmt__free_unpacked - (PgQuery__CreateSchemaStmt *message, +void pg_query__drop_role_stmt__free_unpacked + (PgQuery__DropRoleStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTableStmt methods */ -void pg_query__alter_table_stmt__init - (PgQuery__AlterTableStmt *message); -size_t pg_query__alter_table_stmt__get_packed_size - (const PgQuery__AlterTableStmt *message); -size_t pg_query__alter_table_stmt__pack - (const PgQuery__AlterTableStmt *message, +/* PgQuery__CreateSeqStmt methods */ +void pg_query__create_seq_stmt__init + (PgQuery__CreateSeqStmt *message); +size_t pg_query__create_seq_stmt__get_packed_size + (const PgQuery__CreateSeqStmt *message); +size_t pg_query__create_seq_stmt__pack + (const PgQuery__CreateSeqStmt *message, uint8_t *out); -size_t pg_query__alter_table_stmt__pack_to_buffer - (const PgQuery__AlterTableStmt *message, +size_t pg_query__create_seq_stmt__pack_to_buffer + (const PgQuery__CreateSeqStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterTableStmt * - pg_query__alter_table_stmt__unpack +PgQuery__CreateSeqStmt * + pg_query__create_seq_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_table_stmt__free_unpacked - (PgQuery__AlterTableStmt *message, +void pg_query__create_seq_stmt__free_unpacked + (PgQuery__CreateSeqStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__ReplicaIdentityStmt methods */ -void pg_query__replica_identity_stmt__init - (PgQuery__ReplicaIdentityStmt *message); -size_t pg_query__replica_identity_stmt__get_packed_size - (const PgQuery__ReplicaIdentityStmt *message); -size_t pg_query__replica_identity_stmt__pack - (const PgQuery__ReplicaIdentityStmt *message, +/* PgQuery__AlterSeqStmt methods */ +void pg_query__alter_seq_stmt__init + (PgQuery__AlterSeqStmt *message); +size_t pg_query__alter_seq_stmt__get_packed_size + (const PgQuery__AlterSeqStmt *message); +size_t pg_query__alter_seq_stmt__pack + (const PgQuery__AlterSeqStmt *message, uint8_t *out); -size_t pg_query__replica_identity_stmt__pack_to_buffer - (const PgQuery__ReplicaIdentityStmt *message, +size_t pg_query__alter_seq_stmt__pack_to_buffer + (const PgQuery__AlterSeqStmt *message, ProtobufCBuffer *buffer); -PgQuery__ReplicaIdentityStmt * - pg_query__replica_identity_stmt__unpack +PgQuery__AlterSeqStmt * + pg_query__alter_seq_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__replica_identity_stmt__free_unpacked - (PgQuery__ReplicaIdentityStmt *message, +void pg_query__alter_seq_stmt__free_unpacked + (PgQuery__AlterSeqStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTableCmd methods */ -void pg_query__alter_table_cmd__init - (PgQuery__AlterTableCmd *message); -size_t pg_query__alter_table_cmd__get_packed_size - (const PgQuery__AlterTableCmd *message); -size_t pg_query__alter_table_cmd__pack - (const PgQuery__AlterTableCmd *message, +/* PgQuery__DefineStmt methods */ +void pg_query__define_stmt__init + (PgQuery__DefineStmt *message); +size_t pg_query__define_stmt__get_packed_size + (const PgQuery__DefineStmt *message); +size_t pg_query__define_stmt__pack + (const PgQuery__DefineStmt *message, uint8_t *out); -size_t pg_query__alter_table_cmd__pack_to_buffer - (const PgQuery__AlterTableCmd *message, +size_t pg_query__define_stmt__pack_to_buffer + (const PgQuery__DefineStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterTableCmd * - pg_query__alter_table_cmd__unpack +PgQuery__DefineStmt * + pg_query__define_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_table_cmd__free_unpacked - (PgQuery__AlterTableCmd *message, +void pg_query__define_stmt__free_unpacked + (PgQuery__DefineStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterCollationStmt methods */ -void pg_query__alter_collation_stmt__init - (PgQuery__AlterCollationStmt *message); -size_t pg_query__alter_collation_stmt__get_packed_size - (const PgQuery__AlterCollationStmt *message); -size_t pg_query__alter_collation_stmt__pack - (const PgQuery__AlterCollationStmt *message, +/* PgQuery__CreateDomainStmt methods */ +void pg_query__create_domain_stmt__init + (PgQuery__CreateDomainStmt *message); +size_t pg_query__create_domain_stmt__get_packed_size + (const PgQuery__CreateDomainStmt *message); +size_t pg_query__create_domain_stmt__pack + (const PgQuery__CreateDomainStmt *message, uint8_t *out); -size_t pg_query__alter_collation_stmt__pack_to_buffer - (const PgQuery__AlterCollationStmt *message, +size_t pg_query__create_domain_stmt__pack_to_buffer + (const PgQuery__CreateDomainStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterCollationStmt * - pg_query__alter_collation_stmt__unpack +PgQuery__CreateDomainStmt * + pg_query__create_domain_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_collation_stmt__free_unpacked - (PgQuery__AlterCollationStmt *message, +void pg_query__create_domain_stmt__free_unpacked + (PgQuery__CreateDomainStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterDomainStmt methods */ -void pg_query__alter_domain_stmt__init - (PgQuery__AlterDomainStmt *message); -size_t pg_query__alter_domain_stmt__get_packed_size - (const PgQuery__AlterDomainStmt *message); -size_t pg_query__alter_domain_stmt__pack - (const PgQuery__AlterDomainStmt *message, +/* PgQuery__CreateOpClassStmt methods */ +void pg_query__create_op_class_stmt__init + (PgQuery__CreateOpClassStmt *message); +size_t pg_query__create_op_class_stmt__get_packed_size + (const PgQuery__CreateOpClassStmt *message); +size_t pg_query__create_op_class_stmt__pack + (const PgQuery__CreateOpClassStmt *message, uint8_t *out); -size_t pg_query__alter_domain_stmt__pack_to_buffer - (const PgQuery__AlterDomainStmt *message, +size_t pg_query__create_op_class_stmt__pack_to_buffer + (const PgQuery__CreateOpClassStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterDomainStmt * - pg_query__alter_domain_stmt__unpack +PgQuery__CreateOpClassStmt * + pg_query__create_op_class_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_domain_stmt__free_unpacked - (PgQuery__AlterDomainStmt *message, +void pg_query__create_op_class_stmt__free_unpacked + (PgQuery__CreateOpClassStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__GrantStmt methods */ -void pg_query__grant_stmt__init - (PgQuery__GrantStmt *message); -size_t pg_query__grant_stmt__get_packed_size - (const PgQuery__GrantStmt *message); -size_t pg_query__grant_stmt__pack - (const PgQuery__GrantStmt *message, +/* PgQuery__CreateOpClassItem methods */ +void pg_query__create_op_class_item__init + (PgQuery__CreateOpClassItem *message); +size_t pg_query__create_op_class_item__get_packed_size + (const PgQuery__CreateOpClassItem *message); +size_t pg_query__create_op_class_item__pack + (const PgQuery__CreateOpClassItem *message, uint8_t *out); -size_t pg_query__grant_stmt__pack_to_buffer - (const PgQuery__GrantStmt *message, +size_t pg_query__create_op_class_item__pack_to_buffer + (const PgQuery__CreateOpClassItem *message, ProtobufCBuffer *buffer); -PgQuery__GrantStmt * - pg_query__grant_stmt__unpack +PgQuery__CreateOpClassItem * + pg_query__create_op_class_item__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__grant_stmt__free_unpacked - (PgQuery__GrantStmt *message, +void pg_query__create_op_class_item__free_unpacked + (PgQuery__CreateOpClassItem *message, ProtobufCAllocator *allocator); -/* PgQuery__ObjectWithArgs methods */ -void pg_query__object_with_args__init - (PgQuery__ObjectWithArgs *message); -size_t pg_query__object_with_args__get_packed_size - (const PgQuery__ObjectWithArgs *message); -size_t pg_query__object_with_args__pack - (const PgQuery__ObjectWithArgs *message, +/* PgQuery__CreateOpFamilyStmt methods */ +void pg_query__create_op_family_stmt__init + (PgQuery__CreateOpFamilyStmt *message); +size_t pg_query__create_op_family_stmt__get_packed_size + (const PgQuery__CreateOpFamilyStmt *message); +size_t pg_query__create_op_family_stmt__pack + (const PgQuery__CreateOpFamilyStmt *message, uint8_t *out); -size_t pg_query__object_with_args__pack_to_buffer - (const PgQuery__ObjectWithArgs *message, +size_t pg_query__create_op_family_stmt__pack_to_buffer + (const PgQuery__CreateOpFamilyStmt *message, ProtobufCBuffer *buffer); -PgQuery__ObjectWithArgs * - pg_query__object_with_args__unpack +PgQuery__CreateOpFamilyStmt * + pg_query__create_op_family_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__object_with_args__free_unpacked - (PgQuery__ObjectWithArgs *message, +void pg_query__create_op_family_stmt__free_unpacked + (PgQuery__CreateOpFamilyStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AccessPriv methods */ -void pg_query__access_priv__init - (PgQuery__AccessPriv *message); -size_t pg_query__access_priv__get_packed_size - (const PgQuery__AccessPriv *message); -size_t pg_query__access_priv__pack - (const PgQuery__AccessPriv *message, +/* PgQuery__AlterOpFamilyStmt methods */ +void pg_query__alter_op_family_stmt__init + (PgQuery__AlterOpFamilyStmt *message); +size_t pg_query__alter_op_family_stmt__get_packed_size + (const PgQuery__AlterOpFamilyStmt *message); +size_t pg_query__alter_op_family_stmt__pack + (const PgQuery__AlterOpFamilyStmt *message, uint8_t *out); -size_t pg_query__access_priv__pack_to_buffer - (const PgQuery__AccessPriv *message, +size_t pg_query__alter_op_family_stmt__pack_to_buffer + (const PgQuery__AlterOpFamilyStmt *message, ProtobufCBuffer *buffer); -PgQuery__AccessPriv * - pg_query__access_priv__unpack +PgQuery__AlterOpFamilyStmt * + pg_query__alter_op_family_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__access_priv__free_unpacked - (PgQuery__AccessPriv *message, +void pg_query__alter_op_family_stmt__free_unpacked + (PgQuery__AlterOpFamilyStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__GrantRoleStmt methods */ -void pg_query__grant_role_stmt__init - (PgQuery__GrantRoleStmt *message); -size_t pg_query__grant_role_stmt__get_packed_size - (const PgQuery__GrantRoleStmt *message); -size_t pg_query__grant_role_stmt__pack - (const PgQuery__GrantRoleStmt *message, +/* PgQuery__DropStmt methods */ +void pg_query__drop_stmt__init + (PgQuery__DropStmt *message); +size_t pg_query__drop_stmt__get_packed_size + (const PgQuery__DropStmt *message); +size_t pg_query__drop_stmt__pack + (const PgQuery__DropStmt *message, uint8_t *out); -size_t pg_query__grant_role_stmt__pack_to_buffer - (const PgQuery__GrantRoleStmt *message, +size_t pg_query__drop_stmt__pack_to_buffer + (const PgQuery__DropStmt *message, ProtobufCBuffer *buffer); -PgQuery__GrantRoleStmt * - pg_query__grant_role_stmt__unpack +PgQuery__DropStmt * + pg_query__drop_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__grant_role_stmt__free_unpacked - (PgQuery__GrantRoleStmt *message, +void pg_query__drop_stmt__free_unpacked + (PgQuery__DropStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterDefaultPrivilegesStmt methods */ -void pg_query__alter_default_privileges_stmt__init - (PgQuery__AlterDefaultPrivilegesStmt *message); -size_t pg_query__alter_default_privileges_stmt__get_packed_size - (const PgQuery__AlterDefaultPrivilegesStmt *message); -size_t pg_query__alter_default_privileges_stmt__pack - (const PgQuery__AlterDefaultPrivilegesStmt *message, +/* PgQuery__TruncateStmt methods */ +void pg_query__truncate_stmt__init + (PgQuery__TruncateStmt *message); +size_t pg_query__truncate_stmt__get_packed_size + (const PgQuery__TruncateStmt *message); +size_t pg_query__truncate_stmt__pack + (const PgQuery__TruncateStmt *message, uint8_t *out); -size_t pg_query__alter_default_privileges_stmt__pack_to_buffer - (const PgQuery__AlterDefaultPrivilegesStmt *message, +size_t pg_query__truncate_stmt__pack_to_buffer + (const PgQuery__TruncateStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterDefaultPrivilegesStmt * - pg_query__alter_default_privileges_stmt__unpack +PgQuery__TruncateStmt * + pg_query__truncate_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_default_privileges_stmt__free_unpacked - (PgQuery__AlterDefaultPrivilegesStmt *message, +void pg_query__truncate_stmt__free_unpacked + (PgQuery__TruncateStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CopyStmt methods */ -void pg_query__copy_stmt__init - (PgQuery__CopyStmt *message); -size_t pg_query__copy_stmt__get_packed_size - (const PgQuery__CopyStmt *message); -size_t pg_query__copy_stmt__pack - (const PgQuery__CopyStmt *message, +/* PgQuery__CommentStmt methods */ +void pg_query__comment_stmt__init + (PgQuery__CommentStmt *message); +size_t pg_query__comment_stmt__get_packed_size + (const PgQuery__CommentStmt *message); +size_t pg_query__comment_stmt__pack + (const PgQuery__CommentStmt *message, uint8_t *out); -size_t pg_query__copy_stmt__pack_to_buffer - (const PgQuery__CopyStmt *message, +size_t pg_query__comment_stmt__pack_to_buffer + (const PgQuery__CommentStmt *message, ProtobufCBuffer *buffer); -PgQuery__CopyStmt * - pg_query__copy_stmt__unpack +PgQuery__CommentStmt * + pg_query__comment_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__copy_stmt__free_unpacked - (PgQuery__CopyStmt *message, +void pg_query__comment_stmt__free_unpacked + (PgQuery__CommentStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__VariableSetStmt methods */ -void pg_query__variable_set_stmt__init - (PgQuery__VariableSetStmt *message); -size_t pg_query__variable_set_stmt__get_packed_size - (const PgQuery__VariableSetStmt *message); -size_t pg_query__variable_set_stmt__pack - (const PgQuery__VariableSetStmt *message, +/* PgQuery__SecLabelStmt methods */ +void pg_query__sec_label_stmt__init + (PgQuery__SecLabelStmt *message); +size_t pg_query__sec_label_stmt__get_packed_size + (const PgQuery__SecLabelStmt *message); +size_t pg_query__sec_label_stmt__pack + (const PgQuery__SecLabelStmt *message, uint8_t *out); -size_t pg_query__variable_set_stmt__pack_to_buffer - (const PgQuery__VariableSetStmt *message, +size_t pg_query__sec_label_stmt__pack_to_buffer + (const PgQuery__SecLabelStmt *message, ProtobufCBuffer *buffer); -PgQuery__VariableSetStmt * - pg_query__variable_set_stmt__unpack +PgQuery__SecLabelStmt * + pg_query__sec_label_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__variable_set_stmt__free_unpacked - (PgQuery__VariableSetStmt *message, +void pg_query__sec_label_stmt__free_unpacked + (PgQuery__SecLabelStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__VariableShowStmt methods */ -void pg_query__variable_show_stmt__init - (PgQuery__VariableShowStmt *message); -size_t pg_query__variable_show_stmt__get_packed_size - (const PgQuery__VariableShowStmt *message); -size_t pg_query__variable_show_stmt__pack - (const PgQuery__VariableShowStmt *message, +/* PgQuery__DeclareCursorStmt methods */ +void pg_query__declare_cursor_stmt__init + (PgQuery__DeclareCursorStmt *message); +size_t pg_query__declare_cursor_stmt__get_packed_size + (const PgQuery__DeclareCursorStmt *message); +size_t pg_query__declare_cursor_stmt__pack + (const PgQuery__DeclareCursorStmt *message, uint8_t *out); -size_t pg_query__variable_show_stmt__pack_to_buffer - (const PgQuery__VariableShowStmt *message, +size_t pg_query__declare_cursor_stmt__pack_to_buffer + (const PgQuery__DeclareCursorStmt *message, ProtobufCBuffer *buffer); -PgQuery__VariableShowStmt * - pg_query__variable_show_stmt__unpack +PgQuery__DeclareCursorStmt * + pg_query__declare_cursor_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__variable_show_stmt__free_unpacked - (PgQuery__VariableShowStmt *message, +void pg_query__declare_cursor_stmt__free_unpacked + (PgQuery__DeclareCursorStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateStmt methods */ -void pg_query__create_stmt__init - (PgQuery__CreateStmt *message); -size_t pg_query__create_stmt__get_packed_size - (const PgQuery__CreateStmt *message); -size_t pg_query__create_stmt__pack - (const PgQuery__CreateStmt *message, +/* PgQuery__ClosePortalStmt methods */ +void pg_query__close_portal_stmt__init + (PgQuery__ClosePortalStmt *message); +size_t pg_query__close_portal_stmt__get_packed_size + (const PgQuery__ClosePortalStmt *message); +size_t pg_query__close_portal_stmt__pack + (const PgQuery__ClosePortalStmt *message, uint8_t *out); -size_t pg_query__create_stmt__pack_to_buffer - (const PgQuery__CreateStmt *message, +size_t pg_query__close_portal_stmt__pack_to_buffer + (const PgQuery__ClosePortalStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateStmt * - pg_query__create_stmt__unpack +PgQuery__ClosePortalStmt * + pg_query__close_portal_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_stmt__free_unpacked - (PgQuery__CreateStmt *message, +void pg_query__close_portal_stmt__free_unpacked + (PgQuery__ClosePortalStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__Constraint methods */ -void pg_query__constraint__init - (PgQuery__Constraint *message); -size_t pg_query__constraint__get_packed_size - (const PgQuery__Constraint *message); -size_t pg_query__constraint__pack - (const PgQuery__Constraint *message, +/* PgQuery__FetchStmt methods */ +void pg_query__fetch_stmt__init + (PgQuery__FetchStmt *message); +size_t pg_query__fetch_stmt__get_packed_size + (const PgQuery__FetchStmt *message); +size_t pg_query__fetch_stmt__pack + (const PgQuery__FetchStmt *message, uint8_t *out); -size_t pg_query__constraint__pack_to_buffer - (const PgQuery__Constraint *message, +size_t pg_query__fetch_stmt__pack_to_buffer + (const PgQuery__FetchStmt *message, ProtobufCBuffer *buffer); -PgQuery__Constraint * - pg_query__constraint__unpack +PgQuery__FetchStmt * + pg_query__fetch_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__constraint__free_unpacked - (PgQuery__Constraint *message, +void pg_query__fetch_stmt__free_unpacked + (PgQuery__FetchStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateTableSpaceStmt methods */ -void pg_query__create_table_space_stmt__init - (PgQuery__CreateTableSpaceStmt *message); -size_t pg_query__create_table_space_stmt__get_packed_size - (const PgQuery__CreateTableSpaceStmt *message); -size_t pg_query__create_table_space_stmt__pack - (const PgQuery__CreateTableSpaceStmt *message, +/* PgQuery__IndexStmt methods */ +void pg_query__index_stmt__init + (PgQuery__IndexStmt *message); +size_t pg_query__index_stmt__get_packed_size + (const PgQuery__IndexStmt *message); +size_t pg_query__index_stmt__pack + (const PgQuery__IndexStmt *message, uint8_t *out); -size_t pg_query__create_table_space_stmt__pack_to_buffer - (const PgQuery__CreateTableSpaceStmt *message, +size_t pg_query__index_stmt__pack_to_buffer + (const PgQuery__IndexStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateTableSpaceStmt * - pg_query__create_table_space_stmt__unpack +PgQuery__IndexStmt * + pg_query__index_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_table_space_stmt__free_unpacked - (PgQuery__CreateTableSpaceStmt *message, +void pg_query__index_stmt__free_unpacked + (PgQuery__IndexStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DropTableSpaceStmt methods */ -void pg_query__drop_table_space_stmt__init - (PgQuery__DropTableSpaceStmt *message); -size_t pg_query__drop_table_space_stmt__get_packed_size - (const PgQuery__DropTableSpaceStmt *message); -size_t pg_query__drop_table_space_stmt__pack - (const PgQuery__DropTableSpaceStmt *message, +/* PgQuery__CreateStatsStmt methods */ +void pg_query__create_stats_stmt__init + (PgQuery__CreateStatsStmt *message); +size_t pg_query__create_stats_stmt__get_packed_size + (const PgQuery__CreateStatsStmt *message); +size_t pg_query__create_stats_stmt__pack + (const PgQuery__CreateStatsStmt *message, uint8_t *out); -size_t pg_query__drop_table_space_stmt__pack_to_buffer - (const PgQuery__DropTableSpaceStmt *message, +size_t pg_query__create_stats_stmt__pack_to_buffer + (const PgQuery__CreateStatsStmt *message, ProtobufCBuffer *buffer); -PgQuery__DropTableSpaceStmt * - pg_query__drop_table_space_stmt__unpack +PgQuery__CreateStatsStmt * + pg_query__create_stats_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__drop_table_space_stmt__free_unpacked - (PgQuery__DropTableSpaceStmt *message, +void pg_query__create_stats_stmt__free_unpacked + (PgQuery__CreateStatsStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTableSpaceOptionsStmt methods */ -void pg_query__alter_table_space_options_stmt__init - (PgQuery__AlterTableSpaceOptionsStmt *message); -size_t pg_query__alter_table_space_options_stmt__get_packed_size - (const PgQuery__AlterTableSpaceOptionsStmt *message); -size_t pg_query__alter_table_space_options_stmt__pack - (const PgQuery__AlterTableSpaceOptionsStmt *message, +/* PgQuery__StatsElem methods */ +void pg_query__stats_elem__init + (PgQuery__StatsElem *message); +size_t pg_query__stats_elem__get_packed_size + (const PgQuery__StatsElem *message); +size_t pg_query__stats_elem__pack + (const PgQuery__StatsElem *message, uint8_t *out); -size_t pg_query__alter_table_space_options_stmt__pack_to_buffer - (const PgQuery__AlterTableSpaceOptionsStmt *message, +size_t pg_query__stats_elem__pack_to_buffer + (const PgQuery__StatsElem *message, ProtobufCBuffer *buffer); -PgQuery__AlterTableSpaceOptionsStmt * - pg_query__alter_table_space_options_stmt__unpack +PgQuery__StatsElem * + pg_query__stats_elem__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_table_space_options_stmt__free_unpacked - (PgQuery__AlterTableSpaceOptionsStmt *message, +void pg_query__stats_elem__free_unpacked + (PgQuery__StatsElem *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTableMoveAllStmt methods */ -void pg_query__alter_table_move_all_stmt__init - (PgQuery__AlterTableMoveAllStmt *message); -size_t pg_query__alter_table_move_all_stmt__get_packed_size - (const PgQuery__AlterTableMoveAllStmt *message); -size_t pg_query__alter_table_move_all_stmt__pack - (const PgQuery__AlterTableMoveAllStmt *message, +/* PgQuery__AlterStatsStmt methods */ +void pg_query__alter_stats_stmt__init + (PgQuery__AlterStatsStmt *message); +size_t pg_query__alter_stats_stmt__get_packed_size + (const PgQuery__AlterStatsStmt *message); +size_t pg_query__alter_stats_stmt__pack + (const PgQuery__AlterStatsStmt *message, uint8_t *out); -size_t pg_query__alter_table_move_all_stmt__pack_to_buffer - (const PgQuery__AlterTableMoveAllStmt *message, +size_t pg_query__alter_stats_stmt__pack_to_buffer + (const PgQuery__AlterStatsStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterTableMoveAllStmt * - pg_query__alter_table_move_all_stmt__unpack +PgQuery__AlterStatsStmt * + pg_query__alter_stats_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_table_move_all_stmt__free_unpacked - (PgQuery__AlterTableMoveAllStmt *message, +void pg_query__alter_stats_stmt__free_unpacked + (PgQuery__AlterStatsStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateExtensionStmt methods */ -void pg_query__create_extension_stmt__init - (PgQuery__CreateExtensionStmt *message); -size_t pg_query__create_extension_stmt__get_packed_size - (const PgQuery__CreateExtensionStmt *message); -size_t pg_query__create_extension_stmt__pack - (const PgQuery__CreateExtensionStmt *message, +/* PgQuery__CreateFunctionStmt methods */ +void pg_query__create_function_stmt__init + (PgQuery__CreateFunctionStmt *message); +size_t pg_query__create_function_stmt__get_packed_size + (const PgQuery__CreateFunctionStmt *message); +size_t pg_query__create_function_stmt__pack + (const PgQuery__CreateFunctionStmt *message, uint8_t *out); -size_t pg_query__create_extension_stmt__pack_to_buffer - (const PgQuery__CreateExtensionStmt *message, +size_t pg_query__create_function_stmt__pack_to_buffer + (const PgQuery__CreateFunctionStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateExtensionStmt * - pg_query__create_extension_stmt__unpack +PgQuery__CreateFunctionStmt * + pg_query__create_function_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_extension_stmt__free_unpacked - (PgQuery__CreateExtensionStmt *message, +void pg_query__create_function_stmt__free_unpacked + (PgQuery__CreateFunctionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterExtensionStmt methods */ -void pg_query__alter_extension_stmt__init - (PgQuery__AlterExtensionStmt *message); -size_t pg_query__alter_extension_stmt__get_packed_size - (const PgQuery__AlterExtensionStmt *message); -size_t pg_query__alter_extension_stmt__pack - (const PgQuery__AlterExtensionStmt *message, +/* PgQuery__FunctionParameter methods */ +void pg_query__function_parameter__init + (PgQuery__FunctionParameter *message); +size_t pg_query__function_parameter__get_packed_size + (const PgQuery__FunctionParameter *message); +size_t pg_query__function_parameter__pack + (const PgQuery__FunctionParameter *message, uint8_t *out); -size_t pg_query__alter_extension_stmt__pack_to_buffer - (const PgQuery__AlterExtensionStmt *message, +size_t pg_query__function_parameter__pack_to_buffer + (const PgQuery__FunctionParameter *message, ProtobufCBuffer *buffer); -PgQuery__AlterExtensionStmt * - pg_query__alter_extension_stmt__unpack +PgQuery__FunctionParameter * + pg_query__function_parameter__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_extension_stmt__free_unpacked - (PgQuery__AlterExtensionStmt *message, +void pg_query__function_parameter__free_unpacked + (PgQuery__FunctionParameter *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterExtensionContentsStmt methods */ -void pg_query__alter_extension_contents_stmt__init - (PgQuery__AlterExtensionContentsStmt *message); -size_t pg_query__alter_extension_contents_stmt__get_packed_size - (const PgQuery__AlterExtensionContentsStmt *message); -size_t pg_query__alter_extension_contents_stmt__pack - (const PgQuery__AlterExtensionContentsStmt *message, +/* PgQuery__AlterFunctionStmt methods */ +void pg_query__alter_function_stmt__init + (PgQuery__AlterFunctionStmt *message); +size_t pg_query__alter_function_stmt__get_packed_size + (const PgQuery__AlterFunctionStmt *message); +size_t pg_query__alter_function_stmt__pack + (const PgQuery__AlterFunctionStmt *message, uint8_t *out); -size_t pg_query__alter_extension_contents_stmt__pack_to_buffer - (const PgQuery__AlterExtensionContentsStmt *message, +size_t pg_query__alter_function_stmt__pack_to_buffer + (const PgQuery__AlterFunctionStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterExtensionContentsStmt * - pg_query__alter_extension_contents_stmt__unpack +PgQuery__AlterFunctionStmt * + pg_query__alter_function_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_extension_contents_stmt__free_unpacked - (PgQuery__AlterExtensionContentsStmt *message, +void pg_query__alter_function_stmt__free_unpacked + (PgQuery__AlterFunctionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateFdwStmt methods */ -void pg_query__create_fdw_stmt__init - (PgQuery__CreateFdwStmt *message); -size_t pg_query__create_fdw_stmt__get_packed_size - (const PgQuery__CreateFdwStmt *message); -size_t pg_query__create_fdw_stmt__pack - (const PgQuery__CreateFdwStmt *message, +/* PgQuery__DoStmt methods */ +void pg_query__do_stmt__init + (PgQuery__DoStmt *message); +size_t pg_query__do_stmt__get_packed_size + (const PgQuery__DoStmt *message); +size_t pg_query__do_stmt__pack + (const PgQuery__DoStmt *message, uint8_t *out); -size_t pg_query__create_fdw_stmt__pack_to_buffer - (const PgQuery__CreateFdwStmt *message, +size_t pg_query__do_stmt__pack_to_buffer + (const PgQuery__DoStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateFdwStmt * - pg_query__create_fdw_stmt__unpack +PgQuery__DoStmt * + pg_query__do_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_fdw_stmt__free_unpacked - (PgQuery__CreateFdwStmt *message, +void pg_query__do_stmt__free_unpacked + (PgQuery__DoStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterFdwStmt methods */ -void pg_query__alter_fdw_stmt__init - (PgQuery__AlterFdwStmt *message); -size_t pg_query__alter_fdw_stmt__get_packed_size - (const PgQuery__AlterFdwStmt *message); -size_t pg_query__alter_fdw_stmt__pack - (const PgQuery__AlterFdwStmt *message, +/* PgQuery__InlineCodeBlock methods */ +void pg_query__inline_code_block__init + (PgQuery__InlineCodeBlock *message); +size_t pg_query__inline_code_block__get_packed_size + (const PgQuery__InlineCodeBlock *message); +size_t pg_query__inline_code_block__pack + (const PgQuery__InlineCodeBlock *message, uint8_t *out); -size_t pg_query__alter_fdw_stmt__pack_to_buffer - (const PgQuery__AlterFdwStmt *message, +size_t pg_query__inline_code_block__pack_to_buffer + (const PgQuery__InlineCodeBlock *message, ProtobufCBuffer *buffer); -PgQuery__AlterFdwStmt * - pg_query__alter_fdw_stmt__unpack +PgQuery__InlineCodeBlock * + pg_query__inline_code_block__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_fdw_stmt__free_unpacked - (PgQuery__AlterFdwStmt *message, +void pg_query__inline_code_block__free_unpacked + (PgQuery__InlineCodeBlock *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateForeignServerStmt methods */ -void pg_query__create_foreign_server_stmt__init - (PgQuery__CreateForeignServerStmt *message); -size_t pg_query__create_foreign_server_stmt__get_packed_size - (const PgQuery__CreateForeignServerStmt *message); -size_t pg_query__create_foreign_server_stmt__pack - (const PgQuery__CreateForeignServerStmt *message, +/* PgQuery__CallStmt methods */ +void pg_query__call_stmt__init + (PgQuery__CallStmt *message); +size_t pg_query__call_stmt__get_packed_size + (const PgQuery__CallStmt *message); +size_t pg_query__call_stmt__pack + (const PgQuery__CallStmt *message, uint8_t *out); -size_t pg_query__create_foreign_server_stmt__pack_to_buffer - (const PgQuery__CreateForeignServerStmt *message, +size_t pg_query__call_stmt__pack_to_buffer + (const PgQuery__CallStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateForeignServerStmt * - pg_query__create_foreign_server_stmt__unpack +PgQuery__CallStmt * + pg_query__call_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_foreign_server_stmt__free_unpacked - (PgQuery__CreateForeignServerStmt *message, +void pg_query__call_stmt__free_unpacked + (PgQuery__CallStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterForeignServerStmt methods */ -void pg_query__alter_foreign_server_stmt__init - (PgQuery__AlterForeignServerStmt *message); -size_t pg_query__alter_foreign_server_stmt__get_packed_size - (const PgQuery__AlterForeignServerStmt *message); -size_t pg_query__alter_foreign_server_stmt__pack - (const PgQuery__AlterForeignServerStmt *message, +/* PgQuery__CallContext methods */ +void pg_query__call_context__init + (PgQuery__CallContext *message); +size_t pg_query__call_context__get_packed_size + (const PgQuery__CallContext *message); +size_t pg_query__call_context__pack + (const PgQuery__CallContext *message, uint8_t *out); -size_t pg_query__alter_foreign_server_stmt__pack_to_buffer - (const PgQuery__AlterForeignServerStmt *message, +size_t pg_query__call_context__pack_to_buffer + (const PgQuery__CallContext *message, ProtobufCBuffer *buffer); -PgQuery__AlterForeignServerStmt * - pg_query__alter_foreign_server_stmt__unpack +PgQuery__CallContext * + pg_query__call_context__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_foreign_server_stmt__free_unpacked - (PgQuery__AlterForeignServerStmt *message, +void pg_query__call_context__free_unpacked + (PgQuery__CallContext *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateForeignTableStmt methods */ -void pg_query__create_foreign_table_stmt__init - (PgQuery__CreateForeignTableStmt *message); -size_t pg_query__create_foreign_table_stmt__get_packed_size - (const PgQuery__CreateForeignTableStmt *message); -size_t pg_query__create_foreign_table_stmt__pack - (const PgQuery__CreateForeignTableStmt *message, +/* PgQuery__RenameStmt methods */ +void pg_query__rename_stmt__init + (PgQuery__RenameStmt *message); +size_t pg_query__rename_stmt__get_packed_size + (const PgQuery__RenameStmt *message); +size_t pg_query__rename_stmt__pack + (const PgQuery__RenameStmt *message, uint8_t *out); -size_t pg_query__create_foreign_table_stmt__pack_to_buffer - (const PgQuery__CreateForeignTableStmt *message, +size_t pg_query__rename_stmt__pack_to_buffer + (const PgQuery__RenameStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateForeignTableStmt * - pg_query__create_foreign_table_stmt__unpack +PgQuery__RenameStmt * + pg_query__rename_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_foreign_table_stmt__free_unpacked - (PgQuery__CreateForeignTableStmt *message, +void pg_query__rename_stmt__free_unpacked + (PgQuery__RenameStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateUserMappingStmt methods */ -void pg_query__create_user_mapping_stmt__init - (PgQuery__CreateUserMappingStmt *message); -size_t pg_query__create_user_mapping_stmt__get_packed_size - (const PgQuery__CreateUserMappingStmt *message); -size_t pg_query__create_user_mapping_stmt__pack - (const PgQuery__CreateUserMappingStmt *message, +/* PgQuery__AlterObjectDependsStmt methods */ +void pg_query__alter_object_depends_stmt__init + (PgQuery__AlterObjectDependsStmt *message); +size_t pg_query__alter_object_depends_stmt__get_packed_size + (const PgQuery__AlterObjectDependsStmt *message); +size_t pg_query__alter_object_depends_stmt__pack + (const PgQuery__AlterObjectDependsStmt *message, uint8_t *out); -size_t pg_query__create_user_mapping_stmt__pack_to_buffer - (const PgQuery__CreateUserMappingStmt *message, +size_t pg_query__alter_object_depends_stmt__pack_to_buffer + (const PgQuery__AlterObjectDependsStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateUserMappingStmt * - pg_query__create_user_mapping_stmt__unpack +PgQuery__AlterObjectDependsStmt * + pg_query__alter_object_depends_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_user_mapping_stmt__free_unpacked - (PgQuery__CreateUserMappingStmt *message, +void pg_query__alter_object_depends_stmt__free_unpacked + (PgQuery__AlterObjectDependsStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterUserMappingStmt methods */ -void pg_query__alter_user_mapping_stmt__init - (PgQuery__AlterUserMappingStmt *message); -size_t pg_query__alter_user_mapping_stmt__get_packed_size - (const PgQuery__AlterUserMappingStmt *message); -size_t pg_query__alter_user_mapping_stmt__pack - (const PgQuery__AlterUserMappingStmt *message, +/* PgQuery__AlterObjectSchemaStmt methods */ +void pg_query__alter_object_schema_stmt__init + (PgQuery__AlterObjectSchemaStmt *message); +size_t pg_query__alter_object_schema_stmt__get_packed_size + (const PgQuery__AlterObjectSchemaStmt *message); +size_t pg_query__alter_object_schema_stmt__pack + (const PgQuery__AlterObjectSchemaStmt *message, uint8_t *out); -size_t pg_query__alter_user_mapping_stmt__pack_to_buffer - (const PgQuery__AlterUserMappingStmt *message, +size_t pg_query__alter_object_schema_stmt__pack_to_buffer + (const PgQuery__AlterObjectSchemaStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterUserMappingStmt * - pg_query__alter_user_mapping_stmt__unpack +PgQuery__AlterObjectSchemaStmt * + pg_query__alter_object_schema_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_user_mapping_stmt__free_unpacked - (PgQuery__AlterUserMappingStmt *message, +void pg_query__alter_object_schema_stmt__free_unpacked + (PgQuery__AlterObjectSchemaStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DropUserMappingStmt methods */ -void pg_query__drop_user_mapping_stmt__init - (PgQuery__DropUserMappingStmt *message); -size_t pg_query__drop_user_mapping_stmt__get_packed_size - (const PgQuery__DropUserMappingStmt *message); -size_t pg_query__drop_user_mapping_stmt__pack - (const PgQuery__DropUserMappingStmt *message, +/* PgQuery__AlterOwnerStmt methods */ +void pg_query__alter_owner_stmt__init + (PgQuery__AlterOwnerStmt *message); +size_t pg_query__alter_owner_stmt__get_packed_size + (const PgQuery__AlterOwnerStmt *message); +size_t pg_query__alter_owner_stmt__pack + (const PgQuery__AlterOwnerStmt *message, uint8_t *out); -size_t pg_query__drop_user_mapping_stmt__pack_to_buffer - (const PgQuery__DropUserMappingStmt *message, +size_t pg_query__alter_owner_stmt__pack_to_buffer + (const PgQuery__AlterOwnerStmt *message, ProtobufCBuffer *buffer); -PgQuery__DropUserMappingStmt * - pg_query__drop_user_mapping_stmt__unpack +PgQuery__AlterOwnerStmt * + pg_query__alter_owner_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__drop_user_mapping_stmt__free_unpacked - (PgQuery__DropUserMappingStmt *message, +void pg_query__alter_owner_stmt__free_unpacked + (PgQuery__AlterOwnerStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__ImportForeignSchemaStmt methods */ -void pg_query__import_foreign_schema_stmt__init - (PgQuery__ImportForeignSchemaStmt *message); -size_t pg_query__import_foreign_schema_stmt__get_packed_size - (const PgQuery__ImportForeignSchemaStmt *message); -size_t pg_query__import_foreign_schema_stmt__pack - (const PgQuery__ImportForeignSchemaStmt *message, +/* PgQuery__AlterOperatorStmt methods */ +void pg_query__alter_operator_stmt__init + (PgQuery__AlterOperatorStmt *message); +size_t pg_query__alter_operator_stmt__get_packed_size + (const PgQuery__AlterOperatorStmt *message); +size_t pg_query__alter_operator_stmt__pack + (const PgQuery__AlterOperatorStmt *message, uint8_t *out); -size_t pg_query__import_foreign_schema_stmt__pack_to_buffer - (const PgQuery__ImportForeignSchemaStmt *message, +size_t pg_query__alter_operator_stmt__pack_to_buffer + (const PgQuery__AlterOperatorStmt *message, ProtobufCBuffer *buffer); -PgQuery__ImportForeignSchemaStmt * - pg_query__import_foreign_schema_stmt__unpack +PgQuery__AlterOperatorStmt * + pg_query__alter_operator_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__import_foreign_schema_stmt__free_unpacked - (PgQuery__ImportForeignSchemaStmt *message, +void pg_query__alter_operator_stmt__free_unpacked + (PgQuery__AlterOperatorStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreatePolicyStmt methods */ -void pg_query__create_policy_stmt__init - (PgQuery__CreatePolicyStmt *message); -size_t pg_query__create_policy_stmt__get_packed_size - (const PgQuery__CreatePolicyStmt *message); -size_t pg_query__create_policy_stmt__pack - (const PgQuery__CreatePolicyStmt *message, +/* PgQuery__AlterTypeStmt methods */ +void pg_query__alter_type_stmt__init + (PgQuery__AlterTypeStmt *message); +size_t pg_query__alter_type_stmt__get_packed_size + (const PgQuery__AlterTypeStmt *message); +size_t pg_query__alter_type_stmt__pack + (const PgQuery__AlterTypeStmt *message, uint8_t *out); -size_t pg_query__create_policy_stmt__pack_to_buffer - (const PgQuery__CreatePolicyStmt *message, +size_t pg_query__alter_type_stmt__pack_to_buffer + (const PgQuery__AlterTypeStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreatePolicyStmt * - pg_query__create_policy_stmt__unpack +PgQuery__AlterTypeStmt * + pg_query__alter_type_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_policy_stmt__free_unpacked - (PgQuery__CreatePolicyStmt *message, +void pg_query__alter_type_stmt__free_unpacked + (PgQuery__AlterTypeStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterPolicyStmt methods */ -void pg_query__alter_policy_stmt__init - (PgQuery__AlterPolicyStmt *message); -size_t pg_query__alter_policy_stmt__get_packed_size - (const PgQuery__AlterPolicyStmt *message); -size_t pg_query__alter_policy_stmt__pack - (const PgQuery__AlterPolicyStmt *message, +/* PgQuery__RuleStmt methods */ +void pg_query__rule_stmt__init + (PgQuery__RuleStmt *message); +size_t pg_query__rule_stmt__get_packed_size + (const PgQuery__RuleStmt *message); +size_t pg_query__rule_stmt__pack + (const PgQuery__RuleStmt *message, uint8_t *out); -size_t pg_query__alter_policy_stmt__pack_to_buffer - (const PgQuery__AlterPolicyStmt *message, +size_t pg_query__rule_stmt__pack_to_buffer + (const PgQuery__RuleStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterPolicyStmt * - pg_query__alter_policy_stmt__unpack +PgQuery__RuleStmt * + pg_query__rule_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_policy_stmt__free_unpacked - (PgQuery__AlterPolicyStmt *message, +void pg_query__rule_stmt__free_unpacked + (PgQuery__RuleStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateAmStmt methods */ -void pg_query__create_am_stmt__init - (PgQuery__CreateAmStmt *message); -size_t pg_query__create_am_stmt__get_packed_size - (const PgQuery__CreateAmStmt *message); -size_t pg_query__create_am_stmt__pack - (const PgQuery__CreateAmStmt *message, +/* PgQuery__NotifyStmt methods */ +void pg_query__notify_stmt__init + (PgQuery__NotifyStmt *message); +size_t pg_query__notify_stmt__get_packed_size + (const PgQuery__NotifyStmt *message); +size_t pg_query__notify_stmt__pack + (const PgQuery__NotifyStmt *message, uint8_t *out); -size_t pg_query__create_am_stmt__pack_to_buffer - (const PgQuery__CreateAmStmt *message, +size_t pg_query__notify_stmt__pack_to_buffer + (const PgQuery__NotifyStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateAmStmt * - pg_query__create_am_stmt__unpack +PgQuery__NotifyStmt * + pg_query__notify_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_am_stmt__free_unpacked - (PgQuery__CreateAmStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateTrigStmt methods */ -void pg_query__create_trig_stmt__init - (PgQuery__CreateTrigStmt *message); -size_t pg_query__create_trig_stmt__get_packed_size - (const PgQuery__CreateTrigStmt *message); -size_t pg_query__create_trig_stmt__pack - (const PgQuery__CreateTrigStmt *message, +void pg_query__notify_stmt__free_unpacked + (PgQuery__NotifyStmt *message, + ProtobufCAllocator *allocator); +/* PgQuery__ListenStmt methods */ +void pg_query__listen_stmt__init + (PgQuery__ListenStmt *message); +size_t pg_query__listen_stmt__get_packed_size + (const PgQuery__ListenStmt *message); +size_t pg_query__listen_stmt__pack + (const PgQuery__ListenStmt *message, uint8_t *out); -size_t pg_query__create_trig_stmt__pack_to_buffer - (const PgQuery__CreateTrigStmt *message, +size_t pg_query__listen_stmt__pack_to_buffer + (const PgQuery__ListenStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateTrigStmt * - pg_query__create_trig_stmt__unpack +PgQuery__ListenStmt * + pg_query__listen_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_trig_stmt__free_unpacked - (PgQuery__CreateTrigStmt *message, +void pg_query__listen_stmt__free_unpacked + (PgQuery__ListenStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateEventTrigStmt methods */ -void pg_query__create_event_trig_stmt__init - (PgQuery__CreateEventTrigStmt *message); -size_t pg_query__create_event_trig_stmt__get_packed_size - (const PgQuery__CreateEventTrigStmt *message); -size_t pg_query__create_event_trig_stmt__pack - (const PgQuery__CreateEventTrigStmt *message, +/* PgQuery__UnlistenStmt methods */ +void pg_query__unlisten_stmt__init + (PgQuery__UnlistenStmt *message); +size_t pg_query__unlisten_stmt__get_packed_size + (const PgQuery__UnlistenStmt *message); +size_t pg_query__unlisten_stmt__pack + (const PgQuery__UnlistenStmt *message, uint8_t *out); -size_t pg_query__create_event_trig_stmt__pack_to_buffer - (const PgQuery__CreateEventTrigStmt *message, +size_t pg_query__unlisten_stmt__pack_to_buffer + (const PgQuery__UnlistenStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateEventTrigStmt * - pg_query__create_event_trig_stmt__unpack +PgQuery__UnlistenStmt * + pg_query__unlisten_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_event_trig_stmt__free_unpacked - (PgQuery__CreateEventTrigStmt *message, +void pg_query__unlisten_stmt__free_unpacked + (PgQuery__UnlistenStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterEventTrigStmt methods */ -void pg_query__alter_event_trig_stmt__init - (PgQuery__AlterEventTrigStmt *message); -size_t pg_query__alter_event_trig_stmt__get_packed_size - (const PgQuery__AlterEventTrigStmt *message); -size_t pg_query__alter_event_trig_stmt__pack - (const PgQuery__AlterEventTrigStmt *message, +/* PgQuery__TransactionStmt methods */ +void pg_query__transaction_stmt__init + (PgQuery__TransactionStmt *message); +size_t pg_query__transaction_stmt__get_packed_size + (const PgQuery__TransactionStmt *message); +size_t pg_query__transaction_stmt__pack + (const PgQuery__TransactionStmt *message, uint8_t *out); -size_t pg_query__alter_event_trig_stmt__pack_to_buffer - (const PgQuery__AlterEventTrigStmt *message, +size_t pg_query__transaction_stmt__pack_to_buffer + (const PgQuery__TransactionStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterEventTrigStmt * - pg_query__alter_event_trig_stmt__unpack +PgQuery__TransactionStmt * + pg_query__transaction_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_event_trig_stmt__free_unpacked - (PgQuery__AlterEventTrigStmt *message, +void pg_query__transaction_stmt__free_unpacked + (PgQuery__TransactionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreatePLangStmt methods */ -void pg_query__create_plang_stmt__init - (PgQuery__CreatePLangStmt *message); -size_t pg_query__create_plang_stmt__get_packed_size - (const PgQuery__CreatePLangStmt *message); -size_t pg_query__create_plang_stmt__pack - (const PgQuery__CreatePLangStmt *message, +/* PgQuery__CompositeTypeStmt methods */ +void pg_query__composite_type_stmt__init + (PgQuery__CompositeTypeStmt *message); +size_t pg_query__composite_type_stmt__get_packed_size + (const PgQuery__CompositeTypeStmt *message); +size_t pg_query__composite_type_stmt__pack + (const PgQuery__CompositeTypeStmt *message, uint8_t *out); -size_t pg_query__create_plang_stmt__pack_to_buffer - (const PgQuery__CreatePLangStmt *message, +size_t pg_query__composite_type_stmt__pack_to_buffer + (const PgQuery__CompositeTypeStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreatePLangStmt * - pg_query__create_plang_stmt__unpack +PgQuery__CompositeTypeStmt * + pg_query__composite_type_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_plang_stmt__free_unpacked - (PgQuery__CreatePLangStmt *message, +void pg_query__composite_type_stmt__free_unpacked + (PgQuery__CompositeTypeStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateRoleStmt methods */ -void pg_query__create_role_stmt__init - (PgQuery__CreateRoleStmt *message); -size_t pg_query__create_role_stmt__get_packed_size - (const PgQuery__CreateRoleStmt *message); -size_t pg_query__create_role_stmt__pack - (const PgQuery__CreateRoleStmt *message, +/* PgQuery__CreateEnumStmt methods */ +void pg_query__create_enum_stmt__init + (PgQuery__CreateEnumStmt *message); +size_t pg_query__create_enum_stmt__get_packed_size + (const PgQuery__CreateEnumStmt *message); +size_t pg_query__create_enum_stmt__pack + (const PgQuery__CreateEnumStmt *message, uint8_t *out); -size_t pg_query__create_role_stmt__pack_to_buffer - (const PgQuery__CreateRoleStmt *message, +size_t pg_query__create_enum_stmt__pack_to_buffer + (const PgQuery__CreateEnumStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateRoleStmt * - pg_query__create_role_stmt__unpack +PgQuery__CreateEnumStmt * + pg_query__create_enum_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_role_stmt__free_unpacked - (PgQuery__CreateRoleStmt *message, +void pg_query__create_enum_stmt__free_unpacked + (PgQuery__CreateEnumStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterRoleStmt methods */ -void pg_query__alter_role_stmt__init - (PgQuery__AlterRoleStmt *message); -size_t pg_query__alter_role_stmt__get_packed_size - (const PgQuery__AlterRoleStmt *message); -size_t pg_query__alter_role_stmt__pack - (const PgQuery__AlterRoleStmt *message, +/* PgQuery__CreateRangeStmt methods */ +void pg_query__create_range_stmt__init + (PgQuery__CreateRangeStmt *message); +size_t pg_query__create_range_stmt__get_packed_size + (const PgQuery__CreateRangeStmt *message); +size_t pg_query__create_range_stmt__pack + (const PgQuery__CreateRangeStmt *message, uint8_t *out); -size_t pg_query__alter_role_stmt__pack_to_buffer - (const PgQuery__AlterRoleStmt *message, +size_t pg_query__create_range_stmt__pack_to_buffer + (const PgQuery__CreateRangeStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterRoleStmt * - pg_query__alter_role_stmt__unpack +PgQuery__CreateRangeStmt * + pg_query__create_range_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_role_stmt__free_unpacked - (PgQuery__AlterRoleStmt *message, +void pg_query__create_range_stmt__free_unpacked + (PgQuery__CreateRangeStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterRoleSetStmt methods */ -void pg_query__alter_role_set_stmt__init - (PgQuery__AlterRoleSetStmt *message); -size_t pg_query__alter_role_set_stmt__get_packed_size - (const PgQuery__AlterRoleSetStmt *message); -size_t pg_query__alter_role_set_stmt__pack - (const PgQuery__AlterRoleSetStmt *message, +/* PgQuery__AlterEnumStmt methods */ +void pg_query__alter_enum_stmt__init + (PgQuery__AlterEnumStmt *message); +size_t pg_query__alter_enum_stmt__get_packed_size + (const PgQuery__AlterEnumStmt *message); +size_t pg_query__alter_enum_stmt__pack + (const PgQuery__AlterEnumStmt *message, uint8_t *out); -size_t pg_query__alter_role_set_stmt__pack_to_buffer - (const PgQuery__AlterRoleSetStmt *message, +size_t pg_query__alter_enum_stmt__pack_to_buffer + (const PgQuery__AlterEnumStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterRoleSetStmt * - pg_query__alter_role_set_stmt__unpack +PgQuery__AlterEnumStmt * + pg_query__alter_enum_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_role_set_stmt__free_unpacked - (PgQuery__AlterRoleSetStmt *message, +void pg_query__alter_enum_stmt__free_unpacked + (PgQuery__AlterEnumStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DropRoleStmt methods */ -void pg_query__drop_role_stmt__init - (PgQuery__DropRoleStmt *message); -size_t pg_query__drop_role_stmt__get_packed_size - (const PgQuery__DropRoleStmt *message); -size_t pg_query__drop_role_stmt__pack - (const PgQuery__DropRoleStmt *message, +/* PgQuery__ViewStmt methods */ +void pg_query__view_stmt__init + (PgQuery__ViewStmt *message); +size_t pg_query__view_stmt__get_packed_size + (const PgQuery__ViewStmt *message); +size_t pg_query__view_stmt__pack + (const PgQuery__ViewStmt *message, uint8_t *out); -size_t pg_query__drop_role_stmt__pack_to_buffer - (const PgQuery__DropRoleStmt *message, +size_t pg_query__view_stmt__pack_to_buffer + (const PgQuery__ViewStmt *message, ProtobufCBuffer *buffer); -PgQuery__DropRoleStmt * - pg_query__drop_role_stmt__unpack +PgQuery__ViewStmt * + pg_query__view_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__drop_role_stmt__free_unpacked - (PgQuery__DropRoleStmt *message, +void pg_query__view_stmt__free_unpacked + (PgQuery__ViewStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateSeqStmt methods */ -void pg_query__create_seq_stmt__init - (PgQuery__CreateSeqStmt *message); -size_t pg_query__create_seq_stmt__get_packed_size - (const PgQuery__CreateSeqStmt *message); -size_t pg_query__create_seq_stmt__pack - (const PgQuery__CreateSeqStmt *message, +/* PgQuery__LoadStmt methods */ +void pg_query__load_stmt__init + (PgQuery__LoadStmt *message); +size_t pg_query__load_stmt__get_packed_size + (const PgQuery__LoadStmt *message); +size_t pg_query__load_stmt__pack + (const PgQuery__LoadStmt *message, uint8_t *out); -size_t pg_query__create_seq_stmt__pack_to_buffer - (const PgQuery__CreateSeqStmt *message, +size_t pg_query__load_stmt__pack_to_buffer + (const PgQuery__LoadStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateSeqStmt * - pg_query__create_seq_stmt__unpack +PgQuery__LoadStmt * + pg_query__load_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_seq_stmt__free_unpacked - (PgQuery__CreateSeqStmt *message, +void pg_query__load_stmt__free_unpacked + (PgQuery__LoadStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterSeqStmt methods */ -void pg_query__alter_seq_stmt__init - (PgQuery__AlterSeqStmt *message); -size_t pg_query__alter_seq_stmt__get_packed_size - (const PgQuery__AlterSeqStmt *message); -size_t pg_query__alter_seq_stmt__pack - (const PgQuery__AlterSeqStmt *message, +/* PgQuery__CreatedbStmt methods */ +void pg_query__createdb_stmt__init + (PgQuery__CreatedbStmt *message); +size_t pg_query__createdb_stmt__get_packed_size + (const PgQuery__CreatedbStmt *message); +size_t pg_query__createdb_stmt__pack + (const PgQuery__CreatedbStmt *message, uint8_t *out); -size_t pg_query__alter_seq_stmt__pack_to_buffer - (const PgQuery__AlterSeqStmt *message, +size_t pg_query__createdb_stmt__pack_to_buffer + (const PgQuery__CreatedbStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterSeqStmt * - pg_query__alter_seq_stmt__unpack +PgQuery__CreatedbStmt * + pg_query__createdb_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_seq_stmt__free_unpacked - (PgQuery__AlterSeqStmt *message, +void pg_query__createdb_stmt__free_unpacked + (PgQuery__CreatedbStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DefineStmt methods */ -void pg_query__define_stmt__init - (PgQuery__DefineStmt *message); -size_t pg_query__define_stmt__get_packed_size - (const PgQuery__DefineStmt *message); -size_t pg_query__define_stmt__pack - (const PgQuery__DefineStmt *message, +/* PgQuery__AlterDatabaseStmt methods */ +void pg_query__alter_database_stmt__init + (PgQuery__AlterDatabaseStmt *message); +size_t pg_query__alter_database_stmt__get_packed_size + (const PgQuery__AlterDatabaseStmt *message); +size_t pg_query__alter_database_stmt__pack + (const PgQuery__AlterDatabaseStmt *message, uint8_t *out); -size_t pg_query__define_stmt__pack_to_buffer - (const PgQuery__DefineStmt *message, +size_t pg_query__alter_database_stmt__pack_to_buffer + (const PgQuery__AlterDatabaseStmt *message, ProtobufCBuffer *buffer); -PgQuery__DefineStmt * - pg_query__define_stmt__unpack +PgQuery__AlterDatabaseStmt * + pg_query__alter_database_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__define_stmt__free_unpacked - (PgQuery__DefineStmt *message, +void pg_query__alter_database_stmt__free_unpacked + (PgQuery__AlterDatabaseStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateDomainStmt methods */ -void pg_query__create_domain_stmt__init - (PgQuery__CreateDomainStmt *message); -size_t pg_query__create_domain_stmt__get_packed_size - (const PgQuery__CreateDomainStmt *message); -size_t pg_query__create_domain_stmt__pack - (const PgQuery__CreateDomainStmt *message, +/* PgQuery__AlterDatabaseRefreshCollStmt methods */ +void pg_query__alter_database_refresh_coll_stmt__init + (PgQuery__AlterDatabaseRefreshCollStmt *message); +size_t pg_query__alter_database_refresh_coll_stmt__get_packed_size + (const PgQuery__AlterDatabaseRefreshCollStmt *message); +size_t pg_query__alter_database_refresh_coll_stmt__pack + (const PgQuery__AlterDatabaseRefreshCollStmt *message, uint8_t *out); -size_t pg_query__create_domain_stmt__pack_to_buffer - (const PgQuery__CreateDomainStmt *message, +size_t pg_query__alter_database_refresh_coll_stmt__pack_to_buffer + (const PgQuery__AlterDatabaseRefreshCollStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateDomainStmt * - pg_query__create_domain_stmt__unpack +PgQuery__AlterDatabaseRefreshCollStmt * + pg_query__alter_database_refresh_coll_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_domain_stmt__free_unpacked - (PgQuery__CreateDomainStmt *message, +void pg_query__alter_database_refresh_coll_stmt__free_unpacked + (PgQuery__AlterDatabaseRefreshCollStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateOpClassStmt methods */ -void pg_query__create_op_class_stmt__init - (PgQuery__CreateOpClassStmt *message); -size_t pg_query__create_op_class_stmt__get_packed_size - (const PgQuery__CreateOpClassStmt *message); -size_t pg_query__create_op_class_stmt__pack - (const PgQuery__CreateOpClassStmt *message, +/* PgQuery__AlterDatabaseSetStmt methods */ +void pg_query__alter_database_set_stmt__init + (PgQuery__AlterDatabaseSetStmt *message); +size_t pg_query__alter_database_set_stmt__get_packed_size + (const PgQuery__AlterDatabaseSetStmt *message); +size_t pg_query__alter_database_set_stmt__pack + (const PgQuery__AlterDatabaseSetStmt *message, uint8_t *out); -size_t pg_query__create_op_class_stmt__pack_to_buffer - (const PgQuery__CreateOpClassStmt *message, +size_t pg_query__alter_database_set_stmt__pack_to_buffer + (const PgQuery__AlterDatabaseSetStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateOpClassStmt * - pg_query__create_op_class_stmt__unpack +PgQuery__AlterDatabaseSetStmt * + pg_query__alter_database_set_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_op_class_stmt__free_unpacked - (PgQuery__CreateOpClassStmt *message, +void pg_query__alter_database_set_stmt__free_unpacked + (PgQuery__AlterDatabaseSetStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateOpClassItem methods */ -void pg_query__create_op_class_item__init - (PgQuery__CreateOpClassItem *message); -size_t pg_query__create_op_class_item__get_packed_size - (const PgQuery__CreateOpClassItem *message); -size_t pg_query__create_op_class_item__pack - (const PgQuery__CreateOpClassItem *message, +/* PgQuery__DropdbStmt methods */ +void pg_query__dropdb_stmt__init + (PgQuery__DropdbStmt *message); +size_t pg_query__dropdb_stmt__get_packed_size + (const PgQuery__DropdbStmt *message); +size_t pg_query__dropdb_stmt__pack + (const PgQuery__DropdbStmt *message, uint8_t *out); -size_t pg_query__create_op_class_item__pack_to_buffer - (const PgQuery__CreateOpClassItem *message, +size_t pg_query__dropdb_stmt__pack_to_buffer + (const PgQuery__DropdbStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateOpClassItem * - pg_query__create_op_class_item__unpack +PgQuery__DropdbStmt * + pg_query__dropdb_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_op_class_item__free_unpacked - (PgQuery__CreateOpClassItem *message, +void pg_query__dropdb_stmt__free_unpacked + (PgQuery__DropdbStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateOpFamilyStmt methods */ -void pg_query__create_op_family_stmt__init - (PgQuery__CreateOpFamilyStmt *message); -size_t pg_query__create_op_family_stmt__get_packed_size - (const PgQuery__CreateOpFamilyStmt *message); -size_t pg_query__create_op_family_stmt__pack - (const PgQuery__CreateOpFamilyStmt *message, +/* PgQuery__AlterSystemStmt methods */ +void pg_query__alter_system_stmt__init + (PgQuery__AlterSystemStmt *message); +size_t pg_query__alter_system_stmt__get_packed_size + (const PgQuery__AlterSystemStmt *message); +size_t pg_query__alter_system_stmt__pack + (const PgQuery__AlterSystemStmt *message, uint8_t *out); -size_t pg_query__create_op_family_stmt__pack_to_buffer - (const PgQuery__CreateOpFamilyStmt *message, +size_t pg_query__alter_system_stmt__pack_to_buffer + (const PgQuery__AlterSystemStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateOpFamilyStmt * - pg_query__create_op_family_stmt__unpack +PgQuery__AlterSystemStmt * + pg_query__alter_system_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_op_family_stmt__free_unpacked - (PgQuery__CreateOpFamilyStmt *message, +void pg_query__alter_system_stmt__free_unpacked + (PgQuery__AlterSystemStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterOpFamilyStmt methods */ -void pg_query__alter_op_family_stmt__init - (PgQuery__AlterOpFamilyStmt *message); -size_t pg_query__alter_op_family_stmt__get_packed_size - (const PgQuery__AlterOpFamilyStmt *message); -size_t pg_query__alter_op_family_stmt__pack - (const PgQuery__AlterOpFamilyStmt *message, +/* PgQuery__ClusterStmt methods */ +void pg_query__cluster_stmt__init + (PgQuery__ClusterStmt *message); +size_t pg_query__cluster_stmt__get_packed_size + (const PgQuery__ClusterStmt *message); +size_t pg_query__cluster_stmt__pack + (const PgQuery__ClusterStmt *message, uint8_t *out); -size_t pg_query__alter_op_family_stmt__pack_to_buffer - (const PgQuery__AlterOpFamilyStmt *message, +size_t pg_query__cluster_stmt__pack_to_buffer + (const PgQuery__ClusterStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterOpFamilyStmt * - pg_query__alter_op_family_stmt__unpack +PgQuery__ClusterStmt * + pg_query__cluster_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_op_family_stmt__free_unpacked - (PgQuery__AlterOpFamilyStmt *message, +void pg_query__cluster_stmt__free_unpacked + (PgQuery__ClusterStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DropStmt methods */ -void pg_query__drop_stmt__init - (PgQuery__DropStmt *message); -size_t pg_query__drop_stmt__get_packed_size - (const PgQuery__DropStmt *message); -size_t pg_query__drop_stmt__pack - (const PgQuery__DropStmt *message, +/* PgQuery__VacuumStmt methods */ +void pg_query__vacuum_stmt__init + (PgQuery__VacuumStmt *message); +size_t pg_query__vacuum_stmt__get_packed_size + (const PgQuery__VacuumStmt *message); +size_t pg_query__vacuum_stmt__pack + (const PgQuery__VacuumStmt *message, uint8_t *out); -size_t pg_query__drop_stmt__pack_to_buffer - (const PgQuery__DropStmt *message, +size_t pg_query__vacuum_stmt__pack_to_buffer + (const PgQuery__VacuumStmt *message, ProtobufCBuffer *buffer); -PgQuery__DropStmt * - pg_query__drop_stmt__unpack +PgQuery__VacuumStmt * + pg_query__vacuum_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__drop_stmt__free_unpacked - (PgQuery__DropStmt *message, +void pg_query__vacuum_stmt__free_unpacked + (PgQuery__VacuumStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__TruncateStmt methods */ -void pg_query__truncate_stmt__init - (PgQuery__TruncateStmt *message); -size_t pg_query__truncate_stmt__get_packed_size - (const PgQuery__TruncateStmt *message); -size_t pg_query__truncate_stmt__pack - (const PgQuery__TruncateStmt *message, +/* PgQuery__VacuumRelation methods */ +void pg_query__vacuum_relation__init + (PgQuery__VacuumRelation *message); +size_t pg_query__vacuum_relation__get_packed_size + (const PgQuery__VacuumRelation *message); +size_t pg_query__vacuum_relation__pack + (const PgQuery__VacuumRelation *message, uint8_t *out); -size_t pg_query__truncate_stmt__pack_to_buffer - (const PgQuery__TruncateStmt *message, +size_t pg_query__vacuum_relation__pack_to_buffer + (const PgQuery__VacuumRelation *message, ProtobufCBuffer *buffer); -PgQuery__TruncateStmt * - pg_query__truncate_stmt__unpack +PgQuery__VacuumRelation * + pg_query__vacuum_relation__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__truncate_stmt__free_unpacked - (PgQuery__TruncateStmt *message, +void pg_query__vacuum_relation__free_unpacked + (PgQuery__VacuumRelation *message, ProtobufCAllocator *allocator); -/* PgQuery__CommentStmt methods */ -void pg_query__comment_stmt__init - (PgQuery__CommentStmt *message); -size_t pg_query__comment_stmt__get_packed_size - (const PgQuery__CommentStmt *message); -size_t pg_query__comment_stmt__pack - (const PgQuery__CommentStmt *message, +/* PgQuery__ExplainStmt methods */ +void pg_query__explain_stmt__init + (PgQuery__ExplainStmt *message); +size_t pg_query__explain_stmt__get_packed_size + (const PgQuery__ExplainStmt *message); +size_t pg_query__explain_stmt__pack + (const PgQuery__ExplainStmt *message, uint8_t *out); -size_t pg_query__comment_stmt__pack_to_buffer - (const PgQuery__CommentStmt *message, +size_t pg_query__explain_stmt__pack_to_buffer + (const PgQuery__ExplainStmt *message, ProtobufCBuffer *buffer); -PgQuery__CommentStmt * - pg_query__comment_stmt__unpack +PgQuery__ExplainStmt * + pg_query__explain_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__comment_stmt__free_unpacked - (PgQuery__CommentStmt *message, +void pg_query__explain_stmt__free_unpacked + (PgQuery__ExplainStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__SecLabelStmt methods */ -void pg_query__sec_label_stmt__init - (PgQuery__SecLabelStmt *message); -size_t pg_query__sec_label_stmt__get_packed_size - (const PgQuery__SecLabelStmt *message); -size_t pg_query__sec_label_stmt__pack - (const PgQuery__SecLabelStmt *message, +/* PgQuery__CreateTableAsStmt methods */ +void pg_query__create_table_as_stmt__init + (PgQuery__CreateTableAsStmt *message); +size_t pg_query__create_table_as_stmt__get_packed_size + (const PgQuery__CreateTableAsStmt *message); +size_t pg_query__create_table_as_stmt__pack + (const PgQuery__CreateTableAsStmt *message, uint8_t *out); -size_t pg_query__sec_label_stmt__pack_to_buffer - (const PgQuery__SecLabelStmt *message, +size_t pg_query__create_table_as_stmt__pack_to_buffer + (const PgQuery__CreateTableAsStmt *message, ProtobufCBuffer *buffer); -PgQuery__SecLabelStmt * - pg_query__sec_label_stmt__unpack +PgQuery__CreateTableAsStmt * + pg_query__create_table_as_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__sec_label_stmt__free_unpacked - (PgQuery__SecLabelStmt *message, +void pg_query__create_table_as_stmt__free_unpacked + (PgQuery__CreateTableAsStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DeclareCursorStmt methods */ -void pg_query__declare_cursor_stmt__init - (PgQuery__DeclareCursorStmt *message); -size_t pg_query__declare_cursor_stmt__get_packed_size - (const PgQuery__DeclareCursorStmt *message); -size_t pg_query__declare_cursor_stmt__pack - (const PgQuery__DeclareCursorStmt *message, +/* PgQuery__RefreshMatViewStmt methods */ +void pg_query__refresh_mat_view_stmt__init + (PgQuery__RefreshMatViewStmt *message); +size_t pg_query__refresh_mat_view_stmt__get_packed_size + (const PgQuery__RefreshMatViewStmt *message); +size_t pg_query__refresh_mat_view_stmt__pack + (const PgQuery__RefreshMatViewStmt *message, uint8_t *out); -size_t pg_query__declare_cursor_stmt__pack_to_buffer - (const PgQuery__DeclareCursorStmt *message, +size_t pg_query__refresh_mat_view_stmt__pack_to_buffer + (const PgQuery__RefreshMatViewStmt *message, ProtobufCBuffer *buffer); -PgQuery__DeclareCursorStmt * - pg_query__declare_cursor_stmt__unpack +PgQuery__RefreshMatViewStmt * + pg_query__refresh_mat_view_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__declare_cursor_stmt__free_unpacked - (PgQuery__DeclareCursorStmt *message, +void pg_query__refresh_mat_view_stmt__free_unpacked + (PgQuery__RefreshMatViewStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__ClosePortalStmt methods */ -void pg_query__close_portal_stmt__init - (PgQuery__ClosePortalStmt *message); -size_t pg_query__close_portal_stmt__get_packed_size - (const PgQuery__ClosePortalStmt *message); -size_t pg_query__close_portal_stmt__pack - (const PgQuery__ClosePortalStmt *message, +/* PgQuery__CheckPointStmt methods */ +void pg_query__check_point_stmt__init + (PgQuery__CheckPointStmt *message); +size_t pg_query__check_point_stmt__get_packed_size + (const PgQuery__CheckPointStmt *message); +size_t pg_query__check_point_stmt__pack + (const PgQuery__CheckPointStmt *message, uint8_t *out); -size_t pg_query__close_portal_stmt__pack_to_buffer - (const PgQuery__ClosePortalStmt *message, +size_t pg_query__check_point_stmt__pack_to_buffer + (const PgQuery__CheckPointStmt *message, ProtobufCBuffer *buffer); -PgQuery__ClosePortalStmt * - pg_query__close_portal_stmt__unpack +PgQuery__CheckPointStmt * + pg_query__check_point_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__close_portal_stmt__free_unpacked - (PgQuery__ClosePortalStmt *message, +void pg_query__check_point_stmt__free_unpacked + (PgQuery__CheckPointStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__FetchStmt methods */ -void pg_query__fetch_stmt__init - (PgQuery__FetchStmt *message); -size_t pg_query__fetch_stmt__get_packed_size - (const PgQuery__FetchStmt *message); -size_t pg_query__fetch_stmt__pack - (const PgQuery__FetchStmt *message, +/* PgQuery__DiscardStmt methods */ +void pg_query__discard_stmt__init + (PgQuery__DiscardStmt *message); +size_t pg_query__discard_stmt__get_packed_size + (const PgQuery__DiscardStmt *message); +size_t pg_query__discard_stmt__pack + (const PgQuery__DiscardStmt *message, uint8_t *out); -size_t pg_query__fetch_stmt__pack_to_buffer - (const PgQuery__FetchStmt *message, +size_t pg_query__discard_stmt__pack_to_buffer + (const PgQuery__DiscardStmt *message, ProtobufCBuffer *buffer); -PgQuery__FetchStmt * - pg_query__fetch_stmt__unpack +PgQuery__DiscardStmt * + pg_query__discard_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__fetch_stmt__free_unpacked - (PgQuery__FetchStmt *message, +void pg_query__discard_stmt__free_unpacked + (PgQuery__DiscardStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__IndexStmt methods */ -void pg_query__index_stmt__init - (PgQuery__IndexStmt *message); -size_t pg_query__index_stmt__get_packed_size - (const PgQuery__IndexStmt *message); -size_t pg_query__index_stmt__pack - (const PgQuery__IndexStmt *message, +/* PgQuery__LockStmt methods */ +void pg_query__lock_stmt__init + (PgQuery__LockStmt *message); +size_t pg_query__lock_stmt__get_packed_size + (const PgQuery__LockStmt *message); +size_t pg_query__lock_stmt__pack + (const PgQuery__LockStmt *message, uint8_t *out); -size_t pg_query__index_stmt__pack_to_buffer - (const PgQuery__IndexStmt *message, +size_t pg_query__lock_stmt__pack_to_buffer + (const PgQuery__LockStmt *message, ProtobufCBuffer *buffer); -PgQuery__IndexStmt * - pg_query__index_stmt__unpack +PgQuery__LockStmt * + pg_query__lock_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__index_stmt__free_unpacked - (PgQuery__IndexStmt *message, +void pg_query__lock_stmt__free_unpacked + (PgQuery__LockStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateStatsStmt methods */ -void pg_query__create_stats_stmt__init - (PgQuery__CreateStatsStmt *message); -size_t pg_query__create_stats_stmt__get_packed_size - (const PgQuery__CreateStatsStmt *message); -size_t pg_query__create_stats_stmt__pack - (const PgQuery__CreateStatsStmt *message, +/* PgQuery__ConstraintsSetStmt methods */ +void pg_query__constraints_set_stmt__init + (PgQuery__ConstraintsSetStmt *message); +size_t pg_query__constraints_set_stmt__get_packed_size + (const PgQuery__ConstraintsSetStmt *message); +size_t pg_query__constraints_set_stmt__pack + (const PgQuery__ConstraintsSetStmt *message, uint8_t *out); -size_t pg_query__create_stats_stmt__pack_to_buffer - (const PgQuery__CreateStatsStmt *message, +size_t pg_query__constraints_set_stmt__pack_to_buffer + (const PgQuery__ConstraintsSetStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateStatsStmt * - pg_query__create_stats_stmt__unpack +PgQuery__ConstraintsSetStmt * + pg_query__constraints_set_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_stats_stmt__free_unpacked - (PgQuery__CreateStatsStmt *message, +void pg_query__constraints_set_stmt__free_unpacked + (PgQuery__ConstraintsSetStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__StatsElem methods */ -void pg_query__stats_elem__init - (PgQuery__StatsElem *message); -size_t pg_query__stats_elem__get_packed_size - (const PgQuery__StatsElem *message); -size_t pg_query__stats_elem__pack - (const PgQuery__StatsElem *message, +/* PgQuery__ReindexStmt methods */ +void pg_query__reindex_stmt__init + (PgQuery__ReindexStmt *message); +size_t pg_query__reindex_stmt__get_packed_size + (const PgQuery__ReindexStmt *message); +size_t pg_query__reindex_stmt__pack + (const PgQuery__ReindexStmt *message, uint8_t *out); -size_t pg_query__stats_elem__pack_to_buffer - (const PgQuery__StatsElem *message, +size_t pg_query__reindex_stmt__pack_to_buffer + (const PgQuery__ReindexStmt *message, ProtobufCBuffer *buffer); -PgQuery__StatsElem * - pg_query__stats_elem__unpack +PgQuery__ReindexStmt * + pg_query__reindex_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__stats_elem__free_unpacked - (PgQuery__StatsElem *message, +void pg_query__reindex_stmt__free_unpacked + (PgQuery__ReindexStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterStatsStmt methods */ -void pg_query__alter_stats_stmt__init - (PgQuery__AlterStatsStmt *message); -size_t pg_query__alter_stats_stmt__get_packed_size - (const PgQuery__AlterStatsStmt *message); -size_t pg_query__alter_stats_stmt__pack - (const PgQuery__AlterStatsStmt *message, +/* PgQuery__CreateConversionStmt methods */ +void pg_query__create_conversion_stmt__init + (PgQuery__CreateConversionStmt *message); +size_t pg_query__create_conversion_stmt__get_packed_size + (const PgQuery__CreateConversionStmt *message); +size_t pg_query__create_conversion_stmt__pack + (const PgQuery__CreateConversionStmt *message, uint8_t *out); -size_t pg_query__alter_stats_stmt__pack_to_buffer - (const PgQuery__AlterStatsStmt *message, +size_t pg_query__create_conversion_stmt__pack_to_buffer + (const PgQuery__CreateConversionStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterStatsStmt * - pg_query__alter_stats_stmt__unpack +PgQuery__CreateConversionStmt * + pg_query__create_conversion_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_stats_stmt__free_unpacked - (PgQuery__AlterStatsStmt *message, +void pg_query__create_conversion_stmt__free_unpacked + (PgQuery__CreateConversionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateFunctionStmt methods */ -void pg_query__create_function_stmt__init - (PgQuery__CreateFunctionStmt *message); -size_t pg_query__create_function_stmt__get_packed_size - (const PgQuery__CreateFunctionStmt *message); -size_t pg_query__create_function_stmt__pack - (const PgQuery__CreateFunctionStmt *message, +/* PgQuery__CreateCastStmt methods */ +void pg_query__create_cast_stmt__init + (PgQuery__CreateCastStmt *message); +size_t pg_query__create_cast_stmt__get_packed_size + (const PgQuery__CreateCastStmt *message); +size_t pg_query__create_cast_stmt__pack + (const PgQuery__CreateCastStmt *message, uint8_t *out); -size_t pg_query__create_function_stmt__pack_to_buffer - (const PgQuery__CreateFunctionStmt *message, +size_t pg_query__create_cast_stmt__pack_to_buffer + (const PgQuery__CreateCastStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateFunctionStmt * - pg_query__create_function_stmt__unpack +PgQuery__CreateCastStmt * + pg_query__create_cast_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_function_stmt__free_unpacked - (PgQuery__CreateFunctionStmt *message, +void pg_query__create_cast_stmt__free_unpacked + (PgQuery__CreateCastStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__FunctionParameter methods */ -void pg_query__function_parameter__init - (PgQuery__FunctionParameter *message); -size_t pg_query__function_parameter__get_packed_size - (const PgQuery__FunctionParameter *message); -size_t pg_query__function_parameter__pack - (const PgQuery__FunctionParameter *message, +/* PgQuery__CreateTransformStmt methods */ +void pg_query__create_transform_stmt__init + (PgQuery__CreateTransformStmt *message); +size_t pg_query__create_transform_stmt__get_packed_size + (const PgQuery__CreateTransformStmt *message); +size_t pg_query__create_transform_stmt__pack + (const PgQuery__CreateTransformStmt *message, uint8_t *out); -size_t pg_query__function_parameter__pack_to_buffer - (const PgQuery__FunctionParameter *message, +size_t pg_query__create_transform_stmt__pack_to_buffer + (const PgQuery__CreateTransformStmt *message, ProtobufCBuffer *buffer); -PgQuery__FunctionParameter * - pg_query__function_parameter__unpack +PgQuery__CreateTransformStmt * + pg_query__create_transform_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__function_parameter__free_unpacked - (PgQuery__FunctionParameter *message, +void pg_query__create_transform_stmt__free_unpacked + (PgQuery__CreateTransformStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterFunctionStmt methods */ -void pg_query__alter_function_stmt__init - (PgQuery__AlterFunctionStmt *message); -size_t pg_query__alter_function_stmt__get_packed_size - (const PgQuery__AlterFunctionStmt *message); -size_t pg_query__alter_function_stmt__pack - (const PgQuery__AlterFunctionStmt *message, +/* PgQuery__PrepareStmt methods */ +void pg_query__prepare_stmt__init + (PgQuery__PrepareStmt *message); +size_t pg_query__prepare_stmt__get_packed_size + (const PgQuery__PrepareStmt *message); +size_t pg_query__prepare_stmt__pack + (const PgQuery__PrepareStmt *message, uint8_t *out); -size_t pg_query__alter_function_stmt__pack_to_buffer - (const PgQuery__AlterFunctionStmt *message, +size_t pg_query__prepare_stmt__pack_to_buffer + (const PgQuery__PrepareStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterFunctionStmt * - pg_query__alter_function_stmt__unpack +PgQuery__PrepareStmt * + pg_query__prepare_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_function_stmt__free_unpacked - (PgQuery__AlterFunctionStmt *message, +void pg_query__prepare_stmt__free_unpacked + (PgQuery__PrepareStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__DoStmt methods */ -void pg_query__do_stmt__init - (PgQuery__DoStmt *message); -size_t pg_query__do_stmt__get_packed_size - (const PgQuery__DoStmt *message); -size_t pg_query__do_stmt__pack - (const PgQuery__DoStmt *message, +/* PgQuery__ExecuteStmt methods */ +void pg_query__execute_stmt__init + (PgQuery__ExecuteStmt *message); +size_t pg_query__execute_stmt__get_packed_size + (const PgQuery__ExecuteStmt *message); +size_t pg_query__execute_stmt__pack + (const PgQuery__ExecuteStmt *message, uint8_t *out); -size_t pg_query__do_stmt__pack_to_buffer - (const PgQuery__DoStmt *message, +size_t pg_query__execute_stmt__pack_to_buffer + (const PgQuery__ExecuteStmt *message, ProtobufCBuffer *buffer); -PgQuery__DoStmt * - pg_query__do_stmt__unpack +PgQuery__ExecuteStmt * + pg_query__execute_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__do_stmt__free_unpacked - (PgQuery__DoStmt *message, +void pg_query__execute_stmt__free_unpacked + (PgQuery__ExecuteStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__InlineCodeBlock methods */ -void pg_query__inline_code_block__init - (PgQuery__InlineCodeBlock *message); -size_t pg_query__inline_code_block__get_packed_size - (const PgQuery__InlineCodeBlock *message); -size_t pg_query__inline_code_block__pack - (const PgQuery__InlineCodeBlock *message, +/* PgQuery__DeallocateStmt methods */ +void pg_query__deallocate_stmt__init + (PgQuery__DeallocateStmt *message); +size_t pg_query__deallocate_stmt__get_packed_size + (const PgQuery__DeallocateStmt *message); +size_t pg_query__deallocate_stmt__pack + (const PgQuery__DeallocateStmt *message, uint8_t *out); -size_t pg_query__inline_code_block__pack_to_buffer - (const PgQuery__InlineCodeBlock *message, +size_t pg_query__deallocate_stmt__pack_to_buffer + (const PgQuery__DeallocateStmt *message, ProtobufCBuffer *buffer); -PgQuery__InlineCodeBlock * - pg_query__inline_code_block__unpack +PgQuery__DeallocateStmt * + pg_query__deallocate_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__inline_code_block__free_unpacked - (PgQuery__InlineCodeBlock *message, +void pg_query__deallocate_stmt__free_unpacked + (PgQuery__DeallocateStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CallStmt methods */ -void pg_query__call_stmt__init - (PgQuery__CallStmt *message); -size_t pg_query__call_stmt__get_packed_size - (const PgQuery__CallStmt *message); -size_t pg_query__call_stmt__pack - (const PgQuery__CallStmt *message, +/* PgQuery__DropOwnedStmt methods */ +void pg_query__drop_owned_stmt__init + (PgQuery__DropOwnedStmt *message); +size_t pg_query__drop_owned_stmt__get_packed_size + (const PgQuery__DropOwnedStmt *message); +size_t pg_query__drop_owned_stmt__pack + (const PgQuery__DropOwnedStmt *message, uint8_t *out); -size_t pg_query__call_stmt__pack_to_buffer - (const PgQuery__CallStmt *message, +size_t pg_query__drop_owned_stmt__pack_to_buffer + (const PgQuery__DropOwnedStmt *message, ProtobufCBuffer *buffer); -PgQuery__CallStmt * - pg_query__call_stmt__unpack +PgQuery__DropOwnedStmt * + pg_query__drop_owned_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__call_stmt__free_unpacked - (PgQuery__CallStmt *message, +void pg_query__drop_owned_stmt__free_unpacked + (PgQuery__DropOwnedStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CallContext methods */ -void pg_query__call_context__init - (PgQuery__CallContext *message); -size_t pg_query__call_context__get_packed_size - (const PgQuery__CallContext *message); -size_t pg_query__call_context__pack - (const PgQuery__CallContext *message, +/* PgQuery__ReassignOwnedStmt methods */ +void pg_query__reassign_owned_stmt__init + (PgQuery__ReassignOwnedStmt *message); +size_t pg_query__reassign_owned_stmt__get_packed_size + (const PgQuery__ReassignOwnedStmt *message); +size_t pg_query__reassign_owned_stmt__pack + (const PgQuery__ReassignOwnedStmt *message, uint8_t *out); -size_t pg_query__call_context__pack_to_buffer - (const PgQuery__CallContext *message, +size_t pg_query__reassign_owned_stmt__pack_to_buffer + (const PgQuery__ReassignOwnedStmt *message, ProtobufCBuffer *buffer); -PgQuery__CallContext * - pg_query__call_context__unpack +PgQuery__ReassignOwnedStmt * + pg_query__reassign_owned_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__call_context__free_unpacked - (PgQuery__CallContext *message, +void pg_query__reassign_owned_stmt__free_unpacked + (PgQuery__ReassignOwnedStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__RenameStmt methods */ -void pg_query__rename_stmt__init - (PgQuery__RenameStmt *message); -size_t pg_query__rename_stmt__get_packed_size - (const PgQuery__RenameStmt *message); -size_t pg_query__rename_stmt__pack - (const PgQuery__RenameStmt *message, +/* PgQuery__AlterTSDictionaryStmt methods */ +void pg_query__alter_tsdictionary_stmt__init + (PgQuery__AlterTSDictionaryStmt *message); +size_t pg_query__alter_tsdictionary_stmt__get_packed_size + (const PgQuery__AlterTSDictionaryStmt *message); +size_t pg_query__alter_tsdictionary_stmt__pack + (const PgQuery__AlterTSDictionaryStmt *message, uint8_t *out); -size_t pg_query__rename_stmt__pack_to_buffer - (const PgQuery__RenameStmt *message, +size_t pg_query__alter_tsdictionary_stmt__pack_to_buffer + (const PgQuery__AlterTSDictionaryStmt *message, ProtobufCBuffer *buffer); -PgQuery__RenameStmt * - pg_query__rename_stmt__unpack +PgQuery__AlterTSDictionaryStmt * + pg_query__alter_tsdictionary_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__rename_stmt__free_unpacked - (PgQuery__RenameStmt *message, +void pg_query__alter_tsdictionary_stmt__free_unpacked + (PgQuery__AlterTSDictionaryStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterObjectDependsStmt methods */ -void pg_query__alter_object_depends_stmt__init - (PgQuery__AlterObjectDependsStmt *message); -size_t pg_query__alter_object_depends_stmt__get_packed_size - (const PgQuery__AlterObjectDependsStmt *message); -size_t pg_query__alter_object_depends_stmt__pack - (const PgQuery__AlterObjectDependsStmt *message, +/* PgQuery__AlterTSConfigurationStmt methods */ +void pg_query__alter_tsconfiguration_stmt__init + (PgQuery__AlterTSConfigurationStmt *message); +size_t pg_query__alter_tsconfiguration_stmt__get_packed_size + (const PgQuery__AlterTSConfigurationStmt *message); +size_t pg_query__alter_tsconfiguration_stmt__pack + (const PgQuery__AlterTSConfigurationStmt *message, uint8_t *out); -size_t pg_query__alter_object_depends_stmt__pack_to_buffer - (const PgQuery__AlterObjectDependsStmt *message, +size_t pg_query__alter_tsconfiguration_stmt__pack_to_buffer + (const PgQuery__AlterTSConfigurationStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterObjectDependsStmt * - pg_query__alter_object_depends_stmt__unpack +PgQuery__AlterTSConfigurationStmt * + pg_query__alter_tsconfiguration_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_object_depends_stmt__free_unpacked - (PgQuery__AlterObjectDependsStmt *message, +void pg_query__alter_tsconfiguration_stmt__free_unpacked + (PgQuery__AlterTSConfigurationStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterObjectSchemaStmt methods */ -void pg_query__alter_object_schema_stmt__init - (PgQuery__AlterObjectSchemaStmt *message); -size_t pg_query__alter_object_schema_stmt__get_packed_size - (const PgQuery__AlterObjectSchemaStmt *message); -size_t pg_query__alter_object_schema_stmt__pack - (const PgQuery__AlterObjectSchemaStmt *message, +/* PgQuery__PublicationTable methods */ +void pg_query__publication_table__init + (PgQuery__PublicationTable *message); +size_t pg_query__publication_table__get_packed_size + (const PgQuery__PublicationTable *message); +size_t pg_query__publication_table__pack + (const PgQuery__PublicationTable *message, uint8_t *out); -size_t pg_query__alter_object_schema_stmt__pack_to_buffer - (const PgQuery__AlterObjectSchemaStmt *message, +size_t pg_query__publication_table__pack_to_buffer + (const PgQuery__PublicationTable *message, ProtobufCBuffer *buffer); -PgQuery__AlterObjectSchemaStmt * - pg_query__alter_object_schema_stmt__unpack +PgQuery__PublicationTable * + pg_query__publication_table__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_object_schema_stmt__free_unpacked - (PgQuery__AlterObjectSchemaStmt *message, +void pg_query__publication_table__free_unpacked + (PgQuery__PublicationTable *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterOwnerStmt methods */ -void pg_query__alter_owner_stmt__init - (PgQuery__AlterOwnerStmt *message); -size_t pg_query__alter_owner_stmt__get_packed_size - (const PgQuery__AlterOwnerStmt *message); -size_t pg_query__alter_owner_stmt__pack - (const PgQuery__AlterOwnerStmt *message, +/* PgQuery__PublicationObjSpec methods */ +void pg_query__publication_obj_spec__init + (PgQuery__PublicationObjSpec *message); +size_t pg_query__publication_obj_spec__get_packed_size + (const PgQuery__PublicationObjSpec *message); +size_t pg_query__publication_obj_spec__pack + (const PgQuery__PublicationObjSpec *message, uint8_t *out); -size_t pg_query__alter_owner_stmt__pack_to_buffer - (const PgQuery__AlterOwnerStmt *message, +size_t pg_query__publication_obj_spec__pack_to_buffer + (const PgQuery__PublicationObjSpec *message, ProtobufCBuffer *buffer); -PgQuery__AlterOwnerStmt * - pg_query__alter_owner_stmt__unpack +PgQuery__PublicationObjSpec * + pg_query__publication_obj_spec__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_owner_stmt__free_unpacked - (PgQuery__AlterOwnerStmt *message, +void pg_query__publication_obj_spec__free_unpacked + (PgQuery__PublicationObjSpec *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterOperatorStmt methods */ -void pg_query__alter_operator_stmt__init - (PgQuery__AlterOperatorStmt *message); -size_t pg_query__alter_operator_stmt__get_packed_size - (const PgQuery__AlterOperatorStmt *message); -size_t pg_query__alter_operator_stmt__pack - (const PgQuery__AlterOperatorStmt *message, +/* PgQuery__CreatePublicationStmt methods */ +void pg_query__create_publication_stmt__init + (PgQuery__CreatePublicationStmt *message); +size_t pg_query__create_publication_stmt__get_packed_size + (const PgQuery__CreatePublicationStmt *message); +size_t pg_query__create_publication_stmt__pack + (const PgQuery__CreatePublicationStmt *message, uint8_t *out); -size_t pg_query__alter_operator_stmt__pack_to_buffer - (const PgQuery__AlterOperatorStmt *message, +size_t pg_query__create_publication_stmt__pack_to_buffer + (const PgQuery__CreatePublicationStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterOperatorStmt * - pg_query__alter_operator_stmt__unpack +PgQuery__CreatePublicationStmt * + pg_query__create_publication_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_operator_stmt__free_unpacked - (PgQuery__AlterOperatorStmt *message, +void pg_query__create_publication_stmt__free_unpacked + (PgQuery__CreatePublicationStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTypeStmt methods */ -void pg_query__alter_type_stmt__init - (PgQuery__AlterTypeStmt *message); -size_t pg_query__alter_type_stmt__get_packed_size - (const PgQuery__AlterTypeStmt *message); -size_t pg_query__alter_type_stmt__pack - (const PgQuery__AlterTypeStmt *message, +/* PgQuery__AlterPublicationStmt methods */ +void pg_query__alter_publication_stmt__init + (PgQuery__AlterPublicationStmt *message); +size_t pg_query__alter_publication_stmt__get_packed_size + (const PgQuery__AlterPublicationStmt *message); +size_t pg_query__alter_publication_stmt__pack + (const PgQuery__AlterPublicationStmt *message, uint8_t *out); -size_t pg_query__alter_type_stmt__pack_to_buffer - (const PgQuery__AlterTypeStmt *message, +size_t pg_query__alter_publication_stmt__pack_to_buffer + (const PgQuery__AlterPublicationStmt *message, ProtobufCBuffer *buffer); -PgQuery__AlterTypeStmt * - pg_query__alter_type_stmt__unpack +PgQuery__AlterPublicationStmt * + pg_query__alter_publication_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_type_stmt__free_unpacked - (PgQuery__AlterTypeStmt *message, +void pg_query__alter_publication_stmt__free_unpacked + (PgQuery__AlterPublicationStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__RuleStmt methods */ -void pg_query__rule_stmt__init - (PgQuery__RuleStmt *message); -size_t pg_query__rule_stmt__get_packed_size - (const PgQuery__RuleStmt *message); -size_t pg_query__rule_stmt__pack - (const PgQuery__RuleStmt *message, +/* PgQuery__CreateSubscriptionStmt methods */ +void pg_query__create_subscription_stmt__init + (PgQuery__CreateSubscriptionStmt *message); +size_t pg_query__create_subscription_stmt__get_packed_size + (const PgQuery__CreateSubscriptionStmt *message); +size_t pg_query__create_subscription_stmt__pack + (const PgQuery__CreateSubscriptionStmt *message, uint8_t *out); -size_t pg_query__rule_stmt__pack_to_buffer - (const PgQuery__RuleStmt *message, +size_t pg_query__create_subscription_stmt__pack_to_buffer + (const PgQuery__CreateSubscriptionStmt *message, ProtobufCBuffer *buffer); -PgQuery__RuleStmt * - pg_query__rule_stmt__unpack +PgQuery__CreateSubscriptionStmt * + pg_query__create_subscription_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__rule_stmt__free_unpacked - (PgQuery__RuleStmt *message, +void pg_query__create_subscription_stmt__free_unpacked + (PgQuery__CreateSubscriptionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__NotifyStmt methods */ -void pg_query__notify_stmt__init - (PgQuery__NotifyStmt *message); -size_t pg_query__notify_stmt__get_packed_size - (const PgQuery__NotifyStmt *message); -size_t pg_query__notify_stmt__pack - (const PgQuery__NotifyStmt *message, +/* PgQuery__AlterSubscriptionStmt methods */ +void pg_query__alter_subscription_stmt__init + (PgQuery__AlterSubscriptionStmt *message); +size_t pg_query__alter_subscription_stmt__get_packed_size + (const PgQuery__AlterSubscriptionStmt *message); +size_t pg_query__alter_subscription_stmt__pack + (const PgQuery__AlterSubscriptionStmt *message, uint8_t *out); -size_t pg_query__notify_stmt__pack_to_buffer - (const PgQuery__NotifyStmt *message, +size_t pg_query__alter_subscription_stmt__pack_to_buffer + (const PgQuery__AlterSubscriptionStmt *message, ProtobufCBuffer *buffer); -PgQuery__NotifyStmt * - pg_query__notify_stmt__unpack +PgQuery__AlterSubscriptionStmt * + pg_query__alter_subscription_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__notify_stmt__free_unpacked - (PgQuery__NotifyStmt *message, +void pg_query__alter_subscription_stmt__free_unpacked + (PgQuery__AlterSubscriptionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__ListenStmt methods */ -void pg_query__listen_stmt__init - (PgQuery__ListenStmt *message); -size_t pg_query__listen_stmt__get_packed_size - (const PgQuery__ListenStmt *message); -size_t pg_query__listen_stmt__pack - (const PgQuery__ListenStmt *message, +/* PgQuery__DropSubscriptionStmt methods */ +void pg_query__drop_subscription_stmt__init + (PgQuery__DropSubscriptionStmt *message); +size_t pg_query__drop_subscription_stmt__get_packed_size + (const PgQuery__DropSubscriptionStmt *message); +size_t pg_query__drop_subscription_stmt__pack + (const PgQuery__DropSubscriptionStmt *message, uint8_t *out); -size_t pg_query__listen_stmt__pack_to_buffer - (const PgQuery__ListenStmt *message, +size_t pg_query__drop_subscription_stmt__pack_to_buffer + (const PgQuery__DropSubscriptionStmt *message, ProtobufCBuffer *buffer); -PgQuery__ListenStmt * - pg_query__listen_stmt__unpack +PgQuery__DropSubscriptionStmt * + pg_query__drop_subscription_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__listen_stmt__free_unpacked - (PgQuery__ListenStmt *message, +void pg_query__drop_subscription_stmt__free_unpacked + (PgQuery__DropSubscriptionStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__UnlistenStmt methods */ -void pg_query__unlisten_stmt__init - (PgQuery__UnlistenStmt *message); -size_t pg_query__unlisten_stmt__get_packed_size - (const PgQuery__UnlistenStmt *message); -size_t pg_query__unlisten_stmt__pack - (const PgQuery__UnlistenStmt *message, +/* PgQuery__ScanToken methods */ +void pg_query__scan_token__init + (PgQuery__ScanToken *message); +size_t pg_query__scan_token__get_packed_size + (const PgQuery__ScanToken *message); +size_t pg_query__scan_token__pack + (const PgQuery__ScanToken *message, uint8_t *out); -size_t pg_query__unlisten_stmt__pack_to_buffer - (const PgQuery__UnlistenStmt *message, +size_t pg_query__scan_token__pack_to_buffer + (const PgQuery__ScanToken *message, ProtobufCBuffer *buffer); -PgQuery__UnlistenStmt * - pg_query__unlisten_stmt__unpack +PgQuery__ScanToken * + pg_query__scan_token__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__unlisten_stmt__free_unpacked - (PgQuery__UnlistenStmt *message, +void pg_query__scan_token__free_unpacked + (PgQuery__ScanToken *message, ProtobufCAllocator *allocator); -/* PgQuery__TransactionStmt methods */ -void pg_query__transaction_stmt__init - (PgQuery__TransactionStmt *message); -size_t pg_query__transaction_stmt__get_packed_size - (const PgQuery__TransactionStmt *message); -size_t pg_query__transaction_stmt__pack - (const PgQuery__TransactionStmt *message, +/* PgQuery__SummaryResult__Table methods */ +void pg_query__summary_result__table__init + (PgQuery__SummaryResult__Table *message); +/* PgQuery__SummaryResult__AliasesEntry methods */ +void pg_query__summary_result__aliases_entry__init + (PgQuery__SummaryResult__AliasesEntry *message); +/* PgQuery__SummaryResult__Function methods */ +void pg_query__summary_result__function__init + (PgQuery__SummaryResult__Function *message); +/* PgQuery__SummaryResult__FilterColumn methods */ +void pg_query__summary_result__filter_column__init + (PgQuery__SummaryResult__FilterColumn *message); +/* PgQuery__SummaryResult methods */ +void pg_query__summary_result__init + (PgQuery__SummaryResult *message); +size_t pg_query__summary_result__get_packed_size + (const PgQuery__SummaryResult *message); +size_t pg_query__summary_result__pack + (const PgQuery__SummaryResult *message, uint8_t *out); -size_t pg_query__transaction_stmt__pack_to_buffer - (const PgQuery__TransactionStmt *message, +size_t pg_query__summary_result__pack_to_buffer + (const PgQuery__SummaryResult *message, ProtobufCBuffer *buffer); -PgQuery__TransactionStmt * - pg_query__transaction_stmt__unpack +PgQuery__SummaryResult * + pg_query__summary_result__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__transaction_stmt__free_unpacked - (PgQuery__TransactionStmt *message, +void pg_query__summary_result__free_unpacked + (PgQuery__SummaryResult *message, ProtobufCAllocator *allocator); -/* PgQuery__CompositeTypeStmt methods */ -void pg_query__composite_type_stmt__init - (PgQuery__CompositeTypeStmt *message); -size_t pg_query__composite_type_stmt__get_packed_size - (const PgQuery__CompositeTypeStmt *message); -size_t pg_query__composite_type_stmt__pack - (const PgQuery__CompositeTypeStmt *message, +/* PgQuery__PLpgSQLParseResult methods */ +void pg_query__plpg_sqlparse_result__init + (PgQuery__PLpgSQLParseResult *message); +size_t pg_query__plpg_sqlparse_result__get_packed_size + (const PgQuery__PLpgSQLParseResult *message); +size_t pg_query__plpg_sqlparse_result__pack + (const PgQuery__PLpgSQLParseResult *message, uint8_t *out); -size_t pg_query__composite_type_stmt__pack_to_buffer - (const PgQuery__CompositeTypeStmt *message, +size_t pg_query__plpg_sqlparse_result__pack_to_buffer + (const PgQuery__PLpgSQLParseResult *message, ProtobufCBuffer *buffer); -PgQuery__CompositeTypeStmt * - pg_query__composite_type_stmt__unpack +PgQuery__PLpgSQLParseResult * + pg_query__plpg_sqlparse_result__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__composite_type_stmt__free_unpacked - (PgQuery__CompositeTypeStmt *message, +void pg_query__plpg_sqlparse_result__free_unpacked + (PgQuery__PLpgSQLParseResult *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateEnumStmt methods */ -void pg_query__create_enum_stmt__init - (PgQuery__CreateEnumStmt *message); -size_t pg_query__create_enum_stmt__get_packed_size - (const PgQuery__CreateEnumStmt *message); -size_t pg_query__create_enum_stmt__pack - (const PgQuery__CreateEnumStmt *message, +/* PgQuery__PLpgSQLStmt methods */ +void pg_query__plpg_sql_stmt__init + (PgQuery__PLpgSQLStmt *message); +size_t pg_query__plpg_sql_stmt__get_packed_size + (const PgQuery__PLpgSQLStmt *message); +size_t pg_query__plpg_sql_stmt__pack + (const PgQuery__PLpgSQLStmt *message, uint8_t *out); -size_t pg_query__create_enum_stmt__pack_to_buffer - (const PgQuery__CreateEnumStmt *message, +size_t pg_query__plpg_sql_stmt__pack_to_buffer + (const PgQuery__PLpgSQLStmt *message, ProtobufCBuffer *buffer); -PgQuery__CreateEnumStmt * - pg_query__create_enum_stmt__unpack +PgQuery__PLpgSQLStmt * + pg_query__plpg_sql_stmt__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_enum_stmt__free_unpacked - (PgQuery__CreateEnumStmt *message, +void pg_query__plpg_sql_stmt__free_unpacked + (PgQuery__PLpgSQLStmt *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateRangeStmt methods */ -void pg_query__create_range_stmt__init - (PgQuery__CreateRangeStmt *message); -size_t pg_query__create_range_stmt__get_packed_size - (const PgQuery__CreateRangeStmt *message); -size_t pg_query__create_range_stmt__pack - (const PgQuery__CreateRangeStmt *message, +/* PgQuery__PLpgSQLDatum methods */ +void pg_query__plpg_sql_datum__init + (PgQuery__PLpgSQLDatum *message); +size_t pg_query__plpg_sql_datum__get_packed_size + (const PgQuery__PLpgSQLDatum *message); +size_t pg_query__plpg_sql_datum__pack + (const PgQuery__PLpgSQLDatum *message, uint8_t *out); -size_t pg_query__create_range_stmt__pack_to_buffer - (const PgQuery__CreateRangeStmt *message, +size_t pg_query__plpg_sql_datum__pack_to_buffer + (const PgQuery__PLpgSQLDatum *message, ProtobufCBuffer *buffer); -PgQuery__CreateRangeStmt * - pg_query__create_range_stmt__unpack +PgQuery__PLpgSQLDatum * + pg_query__plpg_sql_datum__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_range_stmt__free_unpacked - (PgQuery__CreateRangeStmt *message, +void pg_query__plpg_sql_datum__free_unpacked + (PgQuery__PLpgSQLDatum *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterEnumStmt methods */ -void pg_query__alter_enum_stmt__init - (PgQuery__AlterEnumStmt *message); -size_t pg_query__alter_enum_stmt__get_packed_size - (const PgQuery__AlterEnumStmt *message); -size_t pg_query__alter_enum_stmt__pack - (const PgQuery__AlterEnumStmt *message, +/* PgQuery__PLpgSQLType methods */ +void pg_query__plpg_sql_type__init + (PgQuery__PLpgSQLType *message); +size_t pg_query__plpg_sql_type__get_packed_size + (const PgQuery__PLpgSQLType *message); +size_t pg_query__plpg_sql_type__pack + (const PgQuery__PLpgSQLType *message, uint8_t *out); -size_t pg_query__alter_enum_stmt__pack_to_buffer - (const PgQuery__AlterEnumStmt *message, +size_t pg_query__plpg_sql_type__pack_to_buffer + (const PgQuery__PLpgSQLType *message, ProtobufCBuffer *buffer); -PgQuery__AlterEnumStmt * - pg_query__alter_enum_stmt__unpack +PgQuery__PLpgSQLType * + pg_query__plpg_sql_type__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_enum_stmt__free_unpacked - (PgQuery__AlterEnumStmt *message, +void pg_query__plpg_sql_type__free_unpacked + (PgQuery__PLpgSQLType *message, ProtobufCAllocator *allocator); -/* PgQuery__ViewStmt methods */ -void pg_query__view_stmt__init - (PgQuery__ViewStmt *message); -size_t pg_query__view_stmt__get_packed_size - (const PgQuery__ViewStmt *message); -size_t pg_query__view_stmt__pack - (const PgQuery__ViewStmt *message, +/* PgQuery__PLpgSQLExpr methods */ +void pg_query__plpg_sql_expr__init + (PgQuery__PLpgSQLExpr *message); +size_t pg_query__plpg_sql_expr__get_packed_size + (const PgQuery__PLpgSQLExpr *message); +size_t pg_query__plpg_sql_expr__pack + (const PgQuery__PLpgSQLExpr *message, uint8_t *out); -size_t pg_query__view_stmt__pack_to_buffer - (const PgQuery__ViewStmt *message, +size_t pg_query__plpg_sql_expr__pack_to_buffer + (const PgQuery__PLpgSQLExpr *message, ProtobufCBuffer *buffer); -PgQuery__ViewStmt * - pg_query__view_stmt__unpack +PgQuery__PLpgSQLExpr * + pg_query__plpg_sql_expr__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__view_stmt__free_unpacked - (PgQuery__ViewStmt *message, +void pg_query__plpg_sql_expr__free_unpacked + (PgQuery__PLpgSQLExpr *message, ProtobufCAllocator *allocator); -/* PgQuery__LoadStmt methods */ -void pg_query__load_stmt__init - (PgQuery__LoadStmt *message); -size_t pg_query__load_stmt__get_packed_size - (const PgQuery__LoadStmt *message); -size_t pg_query__load_stmt__pack - (const PgQuery__LoadStmt *message, +/* PgQuery__PLpgSQLVar methods */ +void pg_query__plpg_sql_var__init + (PgQuery__PLpgSQLVar *message); +size_t pg_query__plpg_sql_var__get_packed_size + (const PgQuery__PLpgSQLVar *message); +size_t pg_query__plpg_sql_var__pack + (const PgQuery__PLpgSQLVar *message, uint8_t *out); -size_t pg_query__load_stmt__pack_to_buffer - (const PgQuery__LoadStmt *message, +size_t pg_query__plpg_sql_var__pack_to_buffer + (const PgQuery__PLpgSQLVar *message, ProtobufCBuffer *buffer); -PgQuery__LoadStmt * - pg_query__load_stmt__unpack +PgQuery__PLpgSQLVar * + pg_query__plpg_sql_var__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__load_stmt__free_unpacked - (PgQuery__LoadStmt *message, +void pg_query__plpg_sql_var__free_unpacked + (PgQuery__PLpgSQLVar *message, ProtobufCAllocator *allocator); -/* PgQuery__CreatedbStmt methods */ -void pg_query__createdb_stmt__init - (PgQuery__CreatedbStmt *message); -size_t pg_query__createdb_stmt__get_packed_size - (const PgQuery__CreatedbStmt *message); -size_t pg_query__createdb_stmt__pack - (const PgQuery__CreatedbStmt *message, +/* PgQuery__PLpgSQLRow methods */ +void pg_query__plpg_sql_row__init + (PgQuery__PLpgSQLRow *message); +size_t pg_query__plpg_sql_row__get_packed_size + (const PgQuery__PLpgSQLRow *message); +size_t pg_query__plpg_sql_row__pack + (const PgQuery__PLpgSQLRow *message, uint8_t *out); -size_t pg_query__createdb_stmt__pack_to_buffer - (const PgQuery__CreatedbStmt *message, +size_t pg_query__plpg_sql_row__pack_to_buffer + (const PgQuery__PLpgSQLRow *message, ProtobufCBuffer *buffer); -PgQuery__CreatedbStmt * - pg_query__createdb_stmt__unpack +PgQuery__PLpgSQLRow * + pg_query__plpg_sql_row__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__createdb_stmt__free_unpacked - (PgQuery__CreatedbStmt *message, +void pg_query__plpg_sql_row__free_unpacked + (PgQuery__PLpgSQLRow *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterDatabaseStmt methods */ -void pg_query__alter_database_stmt__init - (PgQuery__AlterDatabaseStmt *message); -size_t pg_query__alter_database_stmt__get_packed_size - (const PgQuery__AlterDatabaseStmt *message); -size_t pg_query__alter_database_stmt__pack - (const PgQuery__AlterDatabaseStmt *message, +/* PgQuery__PLpgSQLRec methods */ +void pg_query__plpg_sql_rec__init + (PgQuery__PLpgSQLRec *message); +size_t pg_query__plpg_sql_rec__get_packed_size + (const PgQuery__PLpgSQLRec *message); +size_t pg_query__plpg_sql_rec__pack + (const PgQuery__PLpgSQLRec *message, + uint8_t *out); +size_t pg_query__plpg_sql_rec__pack_to_buffer + (const PgQuery__PLpgSQLRec *message, + ProtobufCBuffer *buffer); +PgQuery__PLpgSQLRec * + pg_query__plpg_sql_rec__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__plpg_sql_rec__free_unpacked + (PgQuery__PLpgSQLRec *message, + ProtobufCAllocator *allocator); +/* PgQuery__PLpgSQLRecfield methods */ +void pg_query__plpg_sql_recfield__init + (PgQuery__PLpgSQLRecfield *message); +size_t pg_query__plpg_sql_recfield__get_packed_size + (const PgQuery__PLpgSQLRecfield *message); +size_t pg_query__plpg_sql_recfield__pack + (const PgQuery__PLpgSQLRecfield *message, uint8_t *out); -size_t pg_query__alter_database_stmt__pack_to_buffer - (const PgQuery__AlterDatabaseStmt *message, +size_t pg_query__plpg_sql_recfield__pack_to_buffer + (const PgQuery__PLpgSQLRecfield *message, ProtobufCBuffer *buffer); -PgQuery__AlterDatabaseStmt * - pg_query__alter_database_stmt__unpack +PgQuery__PLpgSQLRecfield * + pg_query__plpg_sql_recfield__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_database_stmt__free_unpacked - (PgQuery__AlterDatabaseStmt *message, +void pg_query__plpg_sql_recfield__free_unpacked + (PgQuery__PLpgSQLRecfield *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterDatabaseRefreshCollStmt methods */ -void pg_query__alter_database_refresh_coll_stmt__init - (PgQuery__AlterDatabaseRefreshCollStmt *message); -size_t pg_query__alter_database_refresh_coll_stmt__get_packed_size - (const PgQuery__AlterDatabaseRefreshCollStmt *message); -size_t pg_query__alter_database_refresh_coll_stmt__pack - (const PgQuery__AlterDatabaseRefreshCollStmt *message, +/* PgQuery__PLpgSQLCondition methods */ +void pg_query__plpg_sql_condition__init + (PgQuery__PLpgSQLCondition *message); +size_t pg_query__plpg_sql_condition__get_packed_size + (const PgQuery__PLpgSQLCondition *message); +size_t pg_query__plpg_sql_condition__pack + (const PgQuery__PLpgSQLCondition *message, uint8_t *out); -size_t pg_query__alter_database_refresh_coll_stmt__pack_to_buffer - (const PgQuery__AlterDatabaseRefreshCollStmt *message, +size_t pg_query__plpg_sql_condition__pack_to_buffer + (const PgQuery__PLpgSQLCondition *message, ProtobufCBuffer *buffer); -PgQuery__AlterDatabaseRefreshCollStmt * - pg_query__alter_database_refresh_coll_stmt__unpack +PgQuery__PLpgSQLCondition * + pg_query__plpg_sql_condition__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_database_refresh_coll_stmt__free_unpacked - (PgQuery__AlterDatabaseRefreshCollStmt *message, +void pg_query__plpg_sql_condition__free_unpacked + (PgQuery__PLpgSQLCondition *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterDatabaseSetStmt methods */ -void pg_query__alter_database_set_stmt__init - (PgQuery__AlterDatabaseSetStmt *message); -size_t pg_query__alter_database_set_stmt__get_packed_size - (const PgQuery__AlterDatabaseSetStmt *message); -size_t pg_query__alter_database_set_stmt__pack - (const PgQuery__AlterDatabaseSetStmt *message, +/* PgQuery__PLpgSQLExceptionBlock methods */ +void pg_query__plpg_sql_exception_block__init + (PgQuery__PLpgSQLExceptionBlock *message); +size_t pg_query__plpg_sql_exception_block__get_packed_size + (const PgQuery__PLpgSQLExceptionBlock *message); +size_t pg_query__plpg_sql_exception_block__pack + (const PgQuery__PLpgSQLExceptionBlock *message, uint8_t *out); -size_t pg_query__alter_database_set_stmt__pack_to_buffer - (const PgQuery__AlterDatabaseSetStmt *message, +size_t pg_query__plpg_sql_exception_block__pack_to_buffer + (const PgQuery__PLpgSQLExceptionBlock *message, ProtobufCBuffer *buffer); -PgQuery__AlterDatabaseSetStmt * - pg_query__alter_database_set_stmt__unpack +PgQuery__PLpgSQLExceptionBlock * + pg_query__plpg_sql_exception_block__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_database_set_stmt__free_unpacked - (PgQuery__AlterDatabaseSetStmt *message, +void pg_query__plpg_sql_exception_block__free_unpacked + (PgQuery__PLpgSQLExceptionBlock *message, ProtobufCAllocator *allocator); -/* PgQuery__DropdbStmt methods */ -void pg_query__dropdb_stmt__init - (PgQuery__DropdbStmt *message); -size_t pg_query__dropdb_stmt__get_packed_size - (const PgQuery__DropdbStmt *message); -size_t pg_query__dropdb_stmt__pack - (const PgQuery__DropdbStmt *message, +/* PgQuery__PLpgSQLException methods */ +void pg_query__plpg_sql_exception__init + (PgQuery__PLpgSQLException *message); +size_t pg_query__plpg_sql_exception__get_packed_size + (const PgQuery__PLpgSQLException *message); +size_t pg_query__plpg_sql_exception__pack + (const PgQuery__PLpgSQLException *message, uint8_t *out); -size_t pg_query__dropdb_stmt__pack_to_buffer - (const PgQuery__DropdbStmt *message, +size_t pg_query__plpg_sql_exception__pack_to_buffer + (const PgQuery__PLpgSQLException *message, ProtobufCBuffer *buffer); -PgQuery__DropdbStmt * - pg_query__dropdb_stmt__unpack +PgQuery__PLpgSQLException * + pg_query__plpg_sql_exception__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__dropdb_stmt__free_unpacked - (PgQuery__DropdbStmt *message, +void pg_query__plpg_sql_exception__free_unpacked + (PgQuery__PLpgSQLException *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterSystemStmt methods */ -void pg_query__alter_system_stmt__init - (PgQuery__AlterSystemStmt *message); -size_t pg_query__alter_system_stmt__get_packed_size - (const PgQuery__AlterSystemStmt *message); -size_t pg_query__alter_system_stmt__pack - (const PgQuery__AlterSystemStmt *message, +/* PgQuery__PLpgSQLStmtBlock methods */ +void pg_query__plpg_sql_stmt_block__init + (PgQuery__PLpgSQLStmtBlock *message); +size_t pg_query__plpg_sql_stmt_block__get_packed_size + (const PgQuery__PLpgSQLStmtBlock *message); +size_t pg_query__plpg_sql_stmt_block__pack + (const PgQuery__PLpgSQLStmtBlock *message, uint8_t *out); -size_t pg_query__alter_system_stmt__pack_to_buffer - (const PgQuery__AlterSystemStmt *message, +size_t pg_query__plpg_sql_stmt_block__pack_to_buffer + (const PgQuery__PLpgSQLStmtBlock *message, ProtobufCBuffer *buffer); -PgQuery__AlterSystemStmt * - pg_query__alter_system_stmt__unpack +PgQuery__PLpgSQLStmtBlock * + pg_query__plpg_sql_stmt_block__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_system_stmt__free_unpacked - (PgQuery__AlterSystemStmt *message, +void pg_query__plpg_sql_stmt_block__free_unpacked + (PgQuery__PLpgSQLStmtBlock *message, ProtobufCAllocator *allocator); -/* PgQuery__ClusterStmt methods */ -void pg_query__cluster_stmt__init - (PgQuery__ClusterStmt *message); -size_t pg_query__cluster_stmt__get_packed_size - (const PgQuery__ClusterStmt *message); -size_t pg_query__cluster_stmt__pack - (const PgQuery__ClusterStmt *message, +/* PgQuery__PLpgSQLStmtAssign methods */ +void pg_query__plpg_sql_stmt_assign__init + (PgQuery__PLpgSQLStmtAssign *message); +size_t pg_query__plpg_sql_stmt_assign__get_packed_size + (const PgQuery__PLpgSQLStmtAssign *message); +size_t pg_query__plpg_sql_stmt_assign__pack + (const PgQuery__PLpgSQLStmtAssign *message, uint8_t *out); -size_t pg_query__cluster_stmt__pack_to_buffer - (const PgQuery__ClusterStmt *message, +size_t pg_query__plpg_sql_stmt_assign__pack_to_buffer + (const PgQuery__PLpgSQLStmtAssign *message, ProtobufCBuffer *buffer); -PgQuery__ClusterStmt * - pg_query__cluster_stmt__unpack +PgQuery__PLpgSQLStmtAssign * + pg_query__plpg_sql_stmt_assign__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__cluster_stmt__free_unpacked - (PgQuery__ClusterStmt *message, +void pg_query__plpg_sql_stmt_assign__free_unpacked + (PgQuery__PLpgSQLStmtAssign *message, ProtobufCAllocator *allocator); -/* PgQuery__VacuumStmt methods */ -void pg_query__vacuum_stmt__init - (PgQuery__VacuumStmt *message); -size_t pg_query__vacuum_stmt__get_packed_size - (const PgQuery__VacuumStmt *message); -size_t pg_query__vacuum_stmt__pack - (const PgQuery__VacuumStmt *message, +/* PgQuery__PLpgSQLStmtPerform methods */ +void pg_query__plpg_sql_stmt_perform__init + (PgQuery__PLpgSQLStmtPerform *message); +size_t pg_query__plpg_sql_stmt_perform__get_packed_size + (const PgQuery__PLpgSQLStmtPerform *message); +size_t pg_query__plpg_sql_stmt_perform__pack + (const PgQuery__PLpgSQLStmtPerform *message, uint8_t *out); -size_t pg_query__vacuum_stmt__pack_to_buffer - (const PgQuery__VacuumStmt *message, +size_t pg_query__plpg_sql_stmt_perform__pack_to_buffer + (const PgQuery__PLpgSQLStmtPerform *message, ProtobufCBuffer *buffer); -PgQuery__VacuumStmt * - pg_query__vacuum_stmt__unpack +PgQuery__PLpgSQLStmtPerform * + pg_query__plpg_sql_stmt_perform__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__vacuum_stmt__free_unpacked - (PgQuery__VacuumStmt *message, +void pg_query__plpg_sql_stmt_perform__free_unpacked + (PgQuery__PLpgSQLStmtPerform *message, ProtobufCAllocator *allocator); -/* PgQuery__VacuumRelation methods */ -void pg_query__vacuum_relation__init - (PgQuery__VacuumRelation *message); -size_t pg_query__vacuum_relation__get_packed_size - (const PgQuery__VacuumRelation *message); -size_t pg_query__vacuum_relation__pack - (const PgQuery__VacuumRelation *message, +/* PgQuery__PLpgSQLStmtCall methods */ +void pg_query__plpg_sql_stmt_call__init + (PgQuery__PLpgSQLStmtCall *message); +size_t pg_query__plpg_sql_stmt_call__get_packed_size + (const PgQuery__PLpgSQLStmtCall *message); +size_t pg_query__plpg_sql_stmt_call__pack + (const PgQuery__PLpgSQLStmtCall *message, uint8_t *out); -size_t pg_query__vacuum_relation__pack_to_buffer - (const PgQuery__VacuumRelation *message, +size_t pg_query__plpg_sql_stmt_call__pack_to_buffer + (const PgQuery__PLpgSQLStmtCall *message, ProtobufCBuffer *buffer); -PgQuery__VacuumRelation * - pg_query__vacuum_relation__unpack +PgQuery__PLpgSQLStmtCall * + pg_query__plpg_sql_stmt_call__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__vacuum_relation__free_unpacked - (PgQuery__VacuumRelation *message, +void pg_query__plpg_sql_stmt_call__free_unpacked + (PgQuery__PLpgSQLStmtCall *message, ProtobufCAllocator *allocator); -/* PgQuery__ExplainStmt methods */ -void pg_query__explain_stmt__init - (PgQuery__ExplainStmt *message); -size_t pg_query__explain_stmt__get_packed_size - (const PgQuery__ExplainStmt *message); -size_t pg_query__explain_stmt__pack - (const PgQuery__ExplainStmt *message, +/* PgQuery__PLpgSQLStmtCommit methods */ +void pg_query__plpg_sql_stmt_commit__init + (PgQuery__PLpgSQLStmtCommit *message); +size_t pg_query__plpg_sql_stmt_commit__get_packed_size + (const PgQuery__PLpgSQLStmtCommit *message); +size_t pg_query__plpg_sql_stmt_commit__pack + (const PgQuery__PLpgSQLStmtCommit *message, uint8_t *out); -size_t pg_query__explain_stmt__pack_to_buffer - (const PgQuery__ExplainStmt *message, +size_t pg_query__plpg_sql_stmt_commit__pack_to_buffer + (const PgQuery__PLpgSQLStmtCommit *message, ProtobufCBuffer *buffer); -PgQuery__ExplainStmt * - pg_query__explain_stmt__unpack +PgQuery__PLpgSQLStmtCommit * + pg_query__plpg_sql_stmt_commit__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__explain_stmt__free_unpacked - (PgQuery__ExplainStmt *message, +void pg_query__plpg_sql_stmt_commit__free_unpacked + (PgQuery__PLpgSQLStmtCommit *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateTableAsStmt methods */ -void pg_query__create_table_as_stmt__init - (PgQuery__CreateTableAsStmt *message); -size_t pg_query__create_table_as_stmt__get_packed_size - (const PgQuery__CreateTableAsStmt *message); -size_t pg_query__create_table_as_stmt__pack - (const PgQuery__CreateTableAsStmt *message, +/* PgQuery__PLpgSQLStmtRollback methods */ +void pg_query__plpg_sql_stmt_rollback__init + (PgQuery__PLpgSQLStmtRollback *message); +size_t pg_query__plpg_sql_stmt_rollback__get_packed_size + (const PgQuery__PLpgSQLStmtRollback *message); +size_t pg_query__plpg_sql_stmt_rollback__pack + (const PgQuery__PLpgSQLStmtRollback *message, uint8_t *out); -size_t pg_query__create_table_as_stmt__pack_to_buffer - (const PgQuery__CreateTableAsStmt *message, +size_t pg_query__plpg_sql_stmt_rollback__pack_to_buffer + (const PgQuery__PLpgSQLStmtRollback *message, ProtobufCBuffer *buffer); -PgQuery__CreateTableAsStmt * - pg_query__create_table_as_stmt__unpack +PgQuery__PLpgSQLStmtRollback * + pg_query__plpg_sql_stmt_rollback__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_table_as_stmt__free_unpacked - (PgQuery__CreateTableAsStmt *message, +void pg_query__plpg_sql_stmt_rollback__free_unpacked + (PgQuery__PLpgSQLStmtRollback *message, ProtobufCAllocator *allocator); -/* PgQuery__RefreshMatViewStmt methods */ -void pg_query__refresh_mat_view_stmt__init - (PgQuery__RefreshMatViewStmt *message); -size_t pg_query__refresh_mat_view_stmt__get_packed_size - (const PgQuery__RefreshMatViewStmt *message); -size_t pg_query__refresh_mat_view_stmt__pack - (const PgQuery__RefreshMatViewStmt *message, +/* PgQuery__PLpgSQLDiagItem methods */ +void pg_query__plpg_sql_diag_item__init + (PgQuery__PLpgSQLDiagItem *message); +size_t pg_query__plpg_sql_diag_item__get_packed_size + (const PgQuery__PLpgSQLDiagItem *message); +size_t pg_query__plpg_sql_diag_item__pack + (const PgQuery__PLpgSQLDiagItem *message, uint8_t *out); -size_t pg_query__refresh_mat_view_stmt__pack_to_buffer - (const PgQuery__RefreshMatViewStmt *message, +size_t pg_query__plpg_sql_diag_item__pack_to_buffer + (const PgQuery__PLpgSQLDiagItem *message, ProtobufCBuffer *buffer); -PgQuery__RefreshMatViewStmt * - pg_query__refresh_mat_view_stmt__unpack +PgQuery__PLpgSQLDiagItem * + pg_query__plpg_sql_diag_item__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__refresh_mat_view_stmt__free_unpacked - (PgQuery__RefreshMatViewStmt *message, +void pg_query__plpg_sql_diag_item__free_unpacked + (PgQuery__PLpgSQLDiagItem *message, ProtobufCAllocator *allocator); -/* PgQuery__CheckPointStmt methods */ -void pg_query__check_point_stmt__init - (PgQuery__CheckPointStmt *message); -size_t pg_query__check_point_stmt__get_packed_size - (const PgQuery__CheckPointStmt *message); -size_t pg_query__check_point_stmt__pack - (const PgQuery__CheckPointStmt *message, +/* PgQuery__PLpgSQLStmtGetdiag methods */ +void pg_query__plpg_sql_stmt_getdiag__init + (PgQuery__PLpgSQLStmtGetdiag *message); +size_t pg_query__plpg_sql_stmt_getdiag__get_packed_size + (const PgQuery__PLpgSQLStmtGetdiag *message); +size_t pg_query__plpg_sql_stmt_getdiag__pack + (const PgQuery__PLpgSQLStmtGetdiag *message, uint8_t *out); -size_t pg_query__check_point_stmt__pack_to_buffer - (const PgQuery__CheckPointStmt *message, +size_t pg_query__plpg_sql_stmt_getdiag__pack_to_buffer + (const PgQuery__PLpgSQLStmtGetdiag *message, ProtobufCBuffer *buffer); -PgQuery__CheckPointStmt * - pg_query__check_point_stmt__unpack +PgQuery__PLpgSQLStmtGetdiag * + pg_query__plpg_sql_stmt_getdiag__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__check_point_stmt__free_unpacked - (PgQuery__CheckPointStmt *message, +void pg_query__plpg_sql_stmt_getdiag__free_unpacked + (PgQuery__PLpgSQLStmtGetdiag *message, ProtobufCAllocator *allocator); -/* PgQuery__DiscardStmt methods */ -void pg_query__discard_stmt__init - (PgQuery__DiscardStmt *message); -size_t pg_query__discard_stmt__get_packed_size - (const PgQuery__DiscardStmt *message); -size_t pg_query__discard_stmt__pack - (const PgQuery__DiscardStmt *message, +/* PgQuery__PLpgSQLStmtIf methods */ +void pg_query__plpg_sql_stmt_if__init + (PgQuery__PLpgSQLStmtIf *message); +size_t pg_query__plpg_sql_stmt_if__get_packed_size + (const PgQuery__PLpgSQLStmtIf *message); +size_t pg_query__plpg_sql_stmt_if__pack + (const PgQuery__PLpgSQLStmtIf *message, uint8_t *out); -size_t pg_query__discard_stmt__pack_to_buffer - (const PgQuery__DiscardStmt *message, +size_t pg_query__plpg_sql_stmt_if__pack_to_buffer + (const PgQuery__PLpgSQLStmtIf *message, ProtobufCBuffer *buffer); -PgQuery__DiscardStmt * - pg_query__discard_stmt__unpack +PgQuery__PLpgSQLStmtIf * + pg_query__plpg_sql_stmt_if__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__discard_stmt__free_unpacked - (PgQuery__DiscardStmt *message, +void pg_query__plpg_sql_stmt_if__free_unpacked + (PgQuery__PLpgSQLStmtIf *message, ProtobufCAllocator *allocator); -/* PgQuery__LockStmt methods */ -void pg_query__lock_stmt__init - (PgQuery__LockStmt *message); -size_t pg_query__lock_stmt__get_packed_size - (const PgQuery__LockStmt *message); -size_t pg_query__lock_stmt__pack - (const PgQuery__LockStmt *message, +/* PgQuery__PLpgSQLIfElsif methods */ +void pg_query__plpg_sql_if_elsif__init + (PgQuery__PLpgSQLIfElsif *message); +size_t pg_query__plpg_sql_if_elsif__get_packed_size + (const PgQuery__PLpgSQLIfElsif *message); +size_t pg_query__plpg_sql_if_elsif__pack + (const PgQuery__PLpgSQLIfElsif *message, uint8_t *out); -size_t pg_query__lock_stmt__pack_to_buffer - (const PgQuery__LockStmt *message, +size_t pg_query__plpg_sql_if_elsif__pack_to_buffer + (const PgQuery__PLpgSQLIfElsif *message, ProtobufCBuffer *buffer); -PgQuery__LockStmt * - pg_query__lock_stmt__unpack +PgQuery__PLpgSQLIfElsif * + pg_query__plpg_sql_if_elsif__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__lock_stmt__free_unpacked - (PgQuery__LockStmt *message, +void pg_query__plpg_sql_if_elsif__free_unpacked + (PgQuery__PLpgSQLIfElsif *message, ProtobufCAllocator *allocator); -/* PgQuery__ConstraintsSetStmt methods */ -void pg_query__constraints_set_stmt__init - (PgQuery__ConstraintsSetStmt *message); -size_t pg_query__constraints_set_stmt__get_packed_size - (const PgQuery__ConstraintsSetStmt *message); -size_t pg_query__constraints_set_stmt__pack - (const PgQuery__ConstraintsSetStmt *message, +/* PgQuery__PLpgSQLStmtCase methods */ +void pg_query__plpg_sql_stmt_case__init + (PgQuery__PLpgSQLStmtCase *message); +size_t pg_query__plpg_sql_stmt_case__get_packed_size + (const PgQuery__PLpgSQLStmtCase *message); +size_t pg_query__plpg_sql_stmt_case__pack + (const PgQuery__PLpgSQLStmtCase *message, uint8_t *out); -size_t pg_query__constraints_set_stmt__pack_to_buffer - (const PgQuery__ConstraintsSetStmt *message, +size_t pg_query__plpg_sql_stmt_case__pack_to_buffer + (const PgQuery__PLpgSQLStmtCase *message, ProtobufCBuffer *buffer); -PgQuery__ConstraintsSetStmt * - pg_query__constraints_set_stmt__unpack +PgQuery__PLpgSQLStmtCase * + pg_query__plpg_sql_stmt_case__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__constraints_set_stmt__free_unpacked - (PgQuery__ConstraintsSetStmt *message, +void pg_query__plpg_sql_stmt_case__free_unpacked + (PgQuery__PLpgSQLStmtCase *message, ProtobufCAllocator *allocator); -/* PgQuery__ReindexStmt methods */ -void pg_query__reindex_stmt__init - (PgQuery__ReindexStmt *message); -size_t pg_query__reindex_stmt__get_packed_size - (const PgQuery__ReindexStmt *message); -size_t pg_query__reindex_stmt__pack - (const PgQuery__ReindexStmt *message, +/* PgQuery__PLpgSQLCaseWhen methods */ +void pg_query__plpg_sql_case_when__init + (PgQuery__PLpgSQLCaseWhen *message); +size_t pg_query__plpg_sql_case_when__get_packed_size + (const PgQuery__PLpgSQLCaseWhen *message); +size_t pg_query__plpg_sql_case_when__pack + (const PgQuery__PLpgSQLCaseWhen *message, uint8_t *out); -size_t pg_query__reindex_stmt__pack_to_buffer - (const PgQuery__ReindexStmt *message, +size_t pg_query__plpg_sql_case_when__pack_to_buffer + (const PgQuery__PLpgSQLCaseWhen *message, ProtobufCBuffer *buffer); -PgQuery__ReindexStmt * - pg_query__reindex_stmt__unpack +PgQuery__PLpgSQLCaseWhen * + pg_query__plpg_sql_case_when__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__reindex_stmt__free_unpacked - (PgQuery__ReindexStmt *message, +void pg_query__plpg_sql_case_when__free_unpacked + (PgQuery__PLpgSQLCaseWhen *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateConversionStmt methods */ -void pg_query__create_conversion_stmt__init - (PgQuery__CreateConversionStmt *message); -size_t pg_query__create_conversion_stmt__get_packed_size - (const PgQuery__CreateConversionStmt *message); -size_t pg_query__create_conversion_stmt__pack - (const PgQuery__CreateConversionStmt *message, +/* PgQuery__PLpgSQLStmtLoop methods */ +void pg_query__plpg_sql_stmt_loop__init + (PgQuery__PLpgSQLStmtLoop *message); +size_t pg_query__plpg_sql_stmt_loop__get_packed_size + (const PgQuery__PLpgSQLStmtLoop *message); +size_t pg_query__plpg_sql_stmt_loop__pack + (const PgQuery__PLpgSQLStmtLoop *message, uint8_t *out); -size_t pg_query__create_conversion_stmt__pack_to_buffer - (const PgQuery__CreateConversionStmt *message, +size_t pg_query__plpg_sql_stmt_loop__pack_to_buffer + (const PgQuery__PLpgSQLStmtLoop *message, ProtobufCBuffer *buffer); -PgQuery__CreateConversionStmt * - pg_query__create_conversion_stmt__unpack +PgQuery__PLpgSQLStmtLoop * + pg_query__plpg_sql_stmt_loop__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_conversion_stmt__free_unpacked - (PgQuery__CreateConversionStmt *message, +void pg_query__plpg_sql_stmt_loop__free_unpacked + (PgQuery__PLpgSQLStmtLoop *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateCastStmt methods */ -void pg_query__create_cast_stmt__init - (PgQuery__CreateCastStmt *message); -size_t pg_query__create_cast_stmt__get_packed_size - (const PgQuery__CreateCastStmt *message); -size_t pg_query__create_cast_stmt__pack - (const PgQuery__CreateCastStmt *message, +/* PgQuery__PLpgSQLStmtWhile methods */ +void pg_query__plpg_sql_stmt_while__init + (PgQuery__PLpgSQLStmtWhile *message); +size_t pg_query__plpg_sql_stmt_while__get_packed_size + (const PgQuery__PLpgSQLStmtWhile *message); +size_t pg_query__plpg_sql_stmt_while__pack + (const PgQuery__PLpgSQLStmtWhile *message, uint8_t *out); -size_t pg_query__create_cast_stmt__pack_to_buffer - (const PgQuery__CreateCastStmt *message, +size_t pg_query__plpg_sql_stmt_while__pack_to_buffer + (const PgQuery__PLpgSQLStmtWhile *message, ProtobufCBuffer *buffer); -PgQuery__CreateCastStmt * - pg_query__create_cast_stmt__unpack +PgQuery__PLpgSQLStmtWhile * + pg_query__plpg_sql_stmt_while__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_cast_stmt__free_unpacked - (PgQuery__CreateCastStmt *message, +void pg_query__plpg_sql_stmt_while__free_unpacked + (PgQuery__PLpgSQLStmtWhile *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateTransformStmt methods */ -void pg_query__create_transform_stmt__init - (PgQuery__CreateTransformStmt *message); -size_t pg_query__create_transform_stmt__get_packed_size - (const PgQuery__CreateTransformStmt *message); -size_t pg_query__create_transform_stmt__pack - (const PgQuery__CreateTransformStmt *message, +/* PgQuery__PLpgSQLStmtFori methods */ +void pg_query__plpg_sql_stmt_fori__init + (PgQuery__PLpgSQLStmtFori *message); +size_t pg_query__plpg_sql_stmt_fori__get_packed_size + (const PgQuery__PLpgSQLStmtFori *message); +size_t pg_query__plpg_sql_stmt_fori__pack + (const PgQuery__PLpgSQLStmtFori *message, uint8_t *out); -size_t pg_query__create_transform_stmt__pack_to_buffer - (const PgQuery__CreateTransformStmt *message, +size_t pg_query__plpg_sql_stmt_fori__pack_to_buffer + (const PgQuery__PLpgSQLStmtFori *message, ProtobufCBuffer *buffer); -PgQuery__CreateTransformStmt * - pg_query__create_transform_stmt__unpack +PgQuery__PLpgSQLStmtFori * + pg_query__plpg_sql_stmt_fori__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_transform_stmt__free_unpacked - (PgQuery__CreateTransformStmt *message, +void pg_query__plpg_sql_stmt_fori__free_unpacked + (PgQuery__PLpgSQLStmtFori *message, ProtobufCAllocator *allocator); -/* PgQuery__PrepareStmt methods */ -void pg_query__prepare_stmt__init - (PgQuery__PrepareStmt *message); -size_t pg_query__prepare_stmt__get_packed_size - (const PgQuery__PrepareStmt *message); -size_t pg_query__prepare_stmt__pack - (const PgQuery__PrepareStmt *message, +/* PgQuery__PLpgSQLStmtFors methods */ +void pg_query__plpg_sql_stmt_fors__init + (PgQuery__PLpgSQLStmtFors *message); +size_t pg_query__plpg_sql_stmt_fors__get_packed_size + (const PgQuery__PLpgSQLStmtFors *message); +size_t pg_query__plpg_sql_stmt_fors__pack + (const PgQuery__PLpgSQLStmtFors *message, uint8_t *out); -size_t pg_query__prepare_stmt__pack_to_buffer - (const PgQuery__PrepareStmt *message, +size_t pg_query__plpg_sql_stmt_fors__pack_to_buffer + (const PgQuery__PLpgSQLStmtFors *message, + ProtobufCBuffer *buffer); +PgQuery__PLpgSQLStmtFors * + pg_query__plpg_sql_stmt_fors__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void pg_query__plpg_sql_stmt_fors__free_unpacked + (PgQuery__PLpgSQLStmtFors *message, + ProtobufCAllocator *allocator); +/* PgQuery__PLpgSQLStmtForc methods */ +void pg_query__plpg_sql_stmt_forc__init + (PgQuery__PLpgSQLStmtForc *message); +size_t pg_query__plpg_sql_stmt_forc__get_packed_size + (const PgQuery__PLpgSQLStmtForc *message); +size_t pg_query__plpg_sql_stmt_forc__pack + (const PgQuery__PLpgSQLStmtForc *message, + uint8_t *out); +size_t pg_query__plpg_sql_stmt_forc__pack_to_buffer + (const PgQuery__PLpgSQLStmtForc *message, ProtobufCBuffer *buffer); -PgQuery__PrepareStmt * - pg_query__prepare_stmt__unpack +PgQuery__PLpgSQLStmtForc * + pg_query__plpg_sql_stmt_forc__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__prepare_stmt__free_unpacked - (PgQuery__PrepareStmt *message, +void pg_query__plpg_sql_stmt_forc__free_unpacked + (PgQuery__PLpgSQLStmtForc *message, ProtobufCAllocator *allocator); -/* PgQuery__ExecuteStmt methods */ -void pg_query__execute_stmt__init - (PgQuery__ExecuteStmt *message); -size_t pg_query__execute_stmt__get_packed_size - (const PgQuery__ExecuteStmt *message); -size_t pg_query__execute_stmt__pack - (const PgQuery__ExecuteStmt *message, +/* PgQuery__PLpgSQLStmtDynfors methods */ +void pg_query__plpg_sql_stmt_dynfors__init + (PgQuery__PLpgSQLStmtDynfors *message); +size_t pg_query__plpg_sql_stmt_dynfors__get_packed_size + (const PgQuery__PLpgSQLStmtDynfors *message); +size_t pg_query__plpg_sql_stmt_dynfors__pack + (const PgQuery__PLpgSQLStmtDynfors *message, uint8_t *out); -size_t pg_query__execute_stmt__pack_to_buffer - (const PgQuery__ExecuteStmt *message, +size_t pg_query__plpg_sql_stmt_dynfors__pack_to_buffer + (const PgQuery__PLpgSQLStmtDynfors *message, ProtobufCBuffer *buffer); -PgQuery__ExecuteStmt * - pg_query__execute_stmt__unpack +PgQuery__PLpgSQLStmtDynfors * + pg_query__plpg_sql_stmt_dynfors__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__execute_stmt__free_unpacked - (PgQuery__ExecuteStmt *message, +void pg_query__plpg_sql_stmt_dynfors__free_unpacked + (PgQuery__PLpgSQLStmtDynfors *message, ProtobufCAllocator *allocator); -/* PgQuery__DeallocateStmt methods */ -void pg_query__deallocate_stmt__init - (PgQuery__DeallocateStmt *message); -size_t pg_query__deallocate_stmt__get_packed_size - (const PgQuery__DeallocateStmt *message); -size_t pg_query__deallocate_stmt__pack - (const PgQuery__DeallocateStmt *message, +/* PgQuery__PLpgSQLStmtForeachA methods */ +void pg_query__plpg_sql_stmt_foreach_a__init + (PgQuery__PLpgSQLStmtForeachA *message); +size_t pg_query__plpg_sql_stmt_foreach_a__get_packed_size + (const PgQuery__PLpgSQLStmtForeachA *message); +size_t pg_query__plpg_sql_stmt_foreach_a__pack + (const PgQuery__PLpgSQLStmtForeachA *message, uint8_t *out); -size_t pg_query__deallocate_stmt__pack_to_buffer - (const PgQuery__DeallocateStmt *message, +size_t pg_query__plpg_sql_stmt_foreach_a__pack_to_buffer + (const PgQuery__PLpgSQLStmtForeachA *message, ProtobufCBuffer *buffer); -PgQuery__DeallocateStmt * - pg_query__deallocate_stmt__unpack +PgQuery__PLpgSQLStmtForeachA * + pg_query__plpg_sql_stmt_foreach_a__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__deallocate_stmt__free_unpacked - (PgQuery__DeallocateStmt *message, +void pg_query__plpg_sql_stmt_foreach_a__free_unpacked + (PgQuery__PLpgSQLStmtForeachA *message, ProtobufCAllocator *allocator); -/* PgQuery__DropOwnedStmt methods */ -void pg_query__drop_owned_stmt__init - (PgQuery__DropOwnedStmt *message); -size_t pg_query__drop_owned_stmt__get_packed_size - (const PgQuery__DropOwnedStmt *message); -size_t pg_query__drop_owned_stmt__pack - (const PgQuery__DropOwnedStmt *message, +/* PgQuery__PLpgSQLStmtOpen methods */ +void pg_query__plpg_sql_stmt_open__init + (PgQuery__PLpgSQLStmtOpen *message); +size_t pg_query__plpg_sql_stmt_open__get_packed_size + (const PgQuery__PLpgSQLStmtOpen *message); +size_t pg_query__plpg_sql_stmt_open__pack + (const PgQuery__PLpgSQLStmtOpen *message, uint8_t *out); -size_t pg_query__drop_owned_stmt__pack_to_buffer - (const PgQuery__DropOwnedStmt *message, +size_t pg_query__plpg_sql_stmt_open__pack_to_buffer + (const PgQuery__PLpgSQLStmtOpen *message, ProtobufCBuffer *buffer); -PgQuery__DropOwnedStmt * - pg_query__drop_owned_stmt__unpack +PgQuery__PLpgSQLStmtOpen * + pg_query__plpg_sql_stmt_open__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__drop_owned_stmt__free_unpacked - (PgQuery__DropOwnedStmt *message, +void pg_query__plpg_sql_stmt_open__free_unpacked + (PgQuery__PLpgSQLStmtOpen *message, ProtobufCAllocator *allocator); -/* PgQuery__ReassignOwnedStmt methods */ -void pg_query__reassign_owned_stmt__init - (PgQuery__ReassignOwnedStmt *message); -size_t pg_query__reassign_owned_stmt__get_packed_size - (const PgQuery__ReassignOwnedStmt *message); -size_t pg_query__reassign_owned_stmt__pack - (const PgQuery__ReassignOwnedStmt *message, +/* PgQuery__PLpgSQLStmtFetch methods */ +void pg_query__plpg_sql_stmt_fetch__init + (PgQuery__PLpgSQLStmtFetch *message); +size_t pg_query__plpg_sql_stmt_fetch__get_packed_size + (const PgQuery__PLpgSQLStmtFetch *message); +size_t pg_query__plpg_sql_stmt_fetch__pack + (const PgQuery__PLpgSQLStmtFetch *message, uint8_t *out); -size_t pg_query__reassign_owned_stmt__pack_to_buffer - (const PgQuery__ReassignOwnedStmt *message, +size_t pg_query__plpg_sql_stmt_fetch__pack_to_buffer + (const PgQuery__PLpgSQLStmtFetch *message, ProtobufCBuffer *buffer); -PgQuery__ReassignOwnedStmt * - pg_query__reassign_owned_stmt__unpack +PgQuery__PLpgSQLStmtFetch * + pg_query__plpg_sql_stmt_fetch__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__reassign_owned_stmt__free_unpacked - (PgQuery__ReassignOwnedStmt *message, +void pg_query__plpg_sql_stmt_fetch__free_unpacked + (PgQuery__PLpgSQLStmtFetch *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTSDictionaryStmt methods */ -void pg_query__alter_tsdictionary_stmt__init - (PgQuery__AlterTSDictionaryStmt *message); -size_t pg_query__alter_tsdictionary_stmt__get_packed_size - (const PgQuery__AlterTSDictionaryStmt *message); -size_t pg_query__alter_tsdictionary_stmt__pack - (const PgQuery__AlterTSDictionaryStmt *message, +/* PgQuery__PLpgSQLStmtClose methods */ +void pg_query__plpg_sql_stmt_close__init + (PgQuery__PLpgSQLStmtClose *message); +size_t pg_query__plpg_sql_stmt_close__get_packed_size + (const PgQuery__PLpgSQLStmtClose *message); +size_t pg_query__plpg_sql_stmt_close__pack + (const PgQuery__PLpgSQLStmtClose *message, uint8_t *out); -size_t pg_query__alter_tsdictionary_stmt__pack_to_buffer - (const PgQuery__AlterTSDictionaryStmt *message, +size_t pg_query__plpg_sql_stmt_close__pack_to_buffer + (const PgQuery__PLpgSQLStmtClose *message, ProtobufCBuffer *buffer); -PgQuery__AlterTSDictionaryStmt * - pg_query__alter_tsdictionary_stmt__unpack +PgQuery__PLpgSQLStmtClose * + pg_query__plpg_sql_stmt_close__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_tsdictionary_stmt__free_unpacked - (PgQuery__AlterTSDictionaryStmt *message, +void pg_query__plpg_sql_stmt_close__free_unpacked + (PgQuery__PLpgSQLStmtClose *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterTSConfigurationStmt methods */ -void pg_query__alter_tsconfiguration_stmt__init - (PgQuery__AlterTSConfigurationStmt *message); -size_t pg_query__alter_tsconfiguration_stmt__get_packed_size - (const PgQuery__AlterTSConfigurationStmt *message); -size_t pg_query__alter_tsconfiguration_stmt__pack - (const PgQuery__AlterTSConfigurationStmt *message, +/* PgQuery__PLpgSQLStmtExit methods */ +void pg_query__plpg_sql_stmt_exit__init + (PgQuery__PLpgSQLStmtExit *message); +size_t pg_query__plpg_sql_stmt_exit__get_packed_size + (const PgQuery__PLpgSQLStmtExit *message); +size_t pg_query__plpg_sql_stmt_exit__pack + (const PgQuery__PLpgSQLStmtExit *message, uint8_t *out); -size_t pg_query__alter_tsconfiguration_stmt__pack_to_buffer - (const PgQuery__AlterTSConfigurationStmt *message, +size_t pg_query__plpg_sql_stmt_exit__pack_to_buffer + (const PgQuery__PLpgSQLStmtExit *message, ProtobufCBuffer *buffer); -PgQuery__AlterTSConfigurationStmt * - pg_query__alter_tsconfiguration_stmt__unpack +PgQuery__PLpgSQLStmtExit * + pg_query__plpg_sql_stmt_exit__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_tsconfiguration_stmt__free_unpacked - (PgQuery__AlterTSConfigurationStmt *message, +void pg_query__plpg_sql_stmt_exit__free_unpacked + (PgQuery__PLpgSQLStmtExit *message, ProtobufCAllocator *allocator); -/* PgQuery__PublicationTable methods */ -void pg_query__publication_table__init - (PgQuery__PublicationTable *message); -size_t pg_query__publication_table__get_packed_size - (const PgQuery__PublicationTable *message); -size_t pg_query__publication_table__pack - (const PgQuery__PublicationTable *message, +/* PgQuery__PLpgSQLStmtReturn methods */ +void pg_query__plpg_sql_stmt_return__init + (PgQuery__PLpgSQLStmtReturn *message); +size_t pg_query__plpg_sql_stmt_return__get_packed_size + (const PgQuery__PLpgSQLStmtReturn *message); +size_t pg_query__plpg_sql_stmt_return__pack + (const PgQuery__PLpgSQLStmtReturn *message, uint8_t *out); -size_t pg_query__publication_table__pack_to_buffer - (const PgQuery__PublicationTable *message, +size_t pg_query__plpg_sql_stmt_return__pack_to_buffer + (const PgQuery__PLpgSQLStmtReturn *message, ProtobufCBuffer *buffer); -PgQuery__PublicationTable * - pg_query__publication_table__unpack +PgQuery__PLpgSQLStmtReturn * + pg_query__plpg_sql_stmt_return__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__publication_table__free_unpacked - (PgQuery__PublicationTable *message, +void pg_query__plpg_sql_stmt_return__free_unpacked + (PgQuery__PLpgSQLStmtReturn *message, ProtobufCAllocator *allocator); -/* PgQuery__PublicationObjSpec methods */ -void pg_query__publication_obj_spec__init - (PgQuery__PublicationObjSpec *message); -size_t pg_query__publication_obj_spec__get_packed_size - (const PgQuery__PublicationObjSpec *message); -size_t pg_query__publication_obj_spec__pack - (const PgQuery__PublicationObjSpec *message, +/* PgQuery__PLpgSQLStmtReturnNext methods */ +void pg_query__plpg_sql_stmt_return_next__init + (PgQuery__PLpgSQLStmtReturnNext *message); +size_t pg_query__plpg_sql_stmt_return_next__get_packed_size + (const PgQuery__PLpgSQLStmtReturnNext *message); +size_t pg_query__plpg_sql_stmt_return_next__pack + (const PgQuery__PLpgSQLStmtReturnNext *message, uint8_t *out); -size_t pg_query__publication_obj_spec__pack_to_buffer - (const PgQuery__PublicationObjSpec *message, +size_t pg_query__plpg_sql_stmt_return_next__pack_to_buffer + (const PgQuery__PLpgSQLStmtReturnNext *message, ProtobufCBuffer *buffer); -PgQuery__PublicationObjSpec * - pg_query__publication_obj_spec__unpack +PgQuery__PLpgSQLStmtReturnNext * + pg_query__plpg_sql_stmt_return_next__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__publication_obj_spec__free_unpacked - (PgQuery__PublicationObjSpec *message, +void pg_query__plpg_sql_stmt_return_next__free_unpacked + (PgQuery__PLpgSQLStmtReturnNext *message, ProtobufCAllocator *allocator); -/* PgQuery__CreatePublicationStmt methods */ -void pg_query__create_publication_stmt__init - (PgQuery__CreatePublicationStmt *message); -size_t pg_query__create_publication_stmt__get_packed_size - (const PgQuery__CreatePublicationStmt *message); -size_t pg_query__create_publication_stmt__pack - (const PgQuery__CreatePublicationStmt *message, +/* PgQuery__PLpgSQLStmtReturnQuery methods */ +void pg_query__plpg_sql_stmt_return_query__init + (PgQuery__PLpgSQLStmtReturnQuery *message); +size_t pg_query__plpg_sql_stmt_return_query__get_packed_size + (const PgQuery__PLpgSQLStmtReturnQuery *message); +size_t pg_query__plpg_sql_stmt_return_query__pack + (const PgQuery__PLpgSQLStmtReturnQuery *message, uint8_t *out); -size_t pg_query__create_publication_stmt__pack_to_buffer - (const PgQuery__CreatePublicationStmt *message, +size_t pg_query__plpg_sql_stmt_return_query__pack_to_buffer + (const PgQuery__PLpgSQLStmtReturnQuery *message, ProtobufCBuffer *buffer); -PgQuery__CreatePublicationStmt * - pg_query__create_publication_stmt__unpack +PgQuery__PLpgSQLStmtReturnQuery * + pg_query__plpg_sql_stmt_return_query__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_publication_stmt__free_unpacked - (PgQuery__CreatePublicationStmt *message, +void pg_query__plpg_sql_stmt_return_query__free_unpacked + (PgQuery__PLpgSQLStmtReturnQuery *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterPublicationStmt methods */ -void pg_query__alter_publication_stmt__init - (PgQuery__AlterPublicationStmt *message); -size_t pg_query__alter_publication_stmt__get_packed_size - (const PgQuery__AlterPublicationStmt *message); -size_t pg_query__alter_publication_stmt__pack - (const PgQuery__AlterPublicationStmt *message, +/* PgQuery__PLpgSQLStmtRaise methods */ +void pg_query__plpg_sql_stmt_raise__init + (PgQuery__PLpgSQLStmtRaise *message); +size_t pg_query__plpg_sql_stmt_raise__get_packed_size + (const PgQuery__PLpgSQLStmtRaise *message); +size_t pg_query__plpg_sql_stmt_raise__pack + (const PgQuery__PLpgSQLStmtRaise *message, uint8_t *out); -size_t pg_query__alter_publication_stmt__pack_to_buffer - (const PgQuery__AlterPublicationStmt *message, +size_t pg_query__plpg_sql_stmt_raise__pack_to_buffer + (const PgQuery__PLpgSQLStmtRaise *message, ProtobufCBuffer *buffer); -PgQuery__AlterPublicationStmt * - pg_query__alter_publication_stmt__unpack +PgQuery__PLpgSQLStmtRaise * + pg_query__plpg_sql_stmt_raise__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_publication_stmt__free_unpacked - (PgQuery__AlterPublicationStmt *message, +void pg_query__plpg_sql_stmt_raise__free_unpacked + (PgQuery__PLpgSQLStmtRaise *message, ProtobufCAllocator *allocator); -/* PgQuery__CreateSubscriptionStmt methods */ -void pg_query__create_subscription_stmt__init - (PgQuery__CreateSubscriptionStmt *message); -size_t pg_query__create_subscription_stmt__get_packed_size - (const PgQuery__CreateSubscriptionStmt *message); -size_t pg_query__create_subscription_stmt__pack - (const PgQuery__CreateSubscriptionStmt *message, +/* PgQuery__PLpgSQLRaiseOption methods */ +void pg_query__plpg_sql_raise_option__init + (PgQuery__PLpgSQLRaiseOption *message); +size_t pg_query__plpg_sql_raise_option__get_packed_size + (const PgQuery__PLpgSQLRaiseOption *message); +size_t pg_query__plpg_sql_raise_option__pack + (const PgQuery__PLpgSQLRaiseOption *message, uint8_t *out); -size_t pg_query__create_subscription_stmt__pack_to_buffer - (const PgQuery__CreateSubscriptionStmt *message, +size_t pg_query__plpg_sql_raise_option__pack_to_buffer + (const PgQuery__PLpgSQLRaiseOption *message, ProtobufCBuffer *buffer); -PgQuery__CreateSubscriptionStmt * - pg_query__create_subscription_stmt__unpack +PgQuery__PLpgSQLRaiseOption * + pg_query__plpg_sql_raise_option__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__create_subscription_stmt__free_unpacked - (PgQuery__CreateSubscriptionStmt *message, +void pg_query__plpg_sql_raise_option__free_unpacked + (PgQuery__PLpgSQLRaiseOption *message, ProtobufCAllocator *allocator); -/* PgQuery__AlterSubscriptionStmt methods */ -void pg_query__alter_subscription_stmt__init - (PgQuery__AlterSubscriptionStmt *message); -size_t pg_query__alter_subscription_stmt__get_packed_size - (const PgQuery__AlterSubscriptionStmt *message); -size_t pg_query__alter_subscription_stmt__pack - (const PgQuery__AlterSubscriptionStmt *message, +/* PgQuery__PLpgSQLStmtAssert methods */ +void pg_query__plpg_sql_stmt_assert__init + (PgQuery__PLpgSQLStmtAssert *message); +size_t pg_query__plpg_sql_stmt_assert__get_packed_size + (const PgQuery__PLpgSQLStmtAssert *message); +size_t pg_query__plpg_sql_stmt_assert__pack + (const PgQuery__PLpgSQLStmtAssert *message, uint8_t *out); -size_t pg_query__alter_subscription_stmt__pack_to_buffer - (const PgQuery__AlterSubscriptionStmt *message, +size_t pg_query__plpg_sql_stmt_assert__pack_to_buffer + (const PgQuery__PLpgSQLStmtAssert *message, ProtobufCBuffer *buffer); -PgQuery__AlterSubscriptionStmt * - pg_query__alter_subscription_stmt__unpack +PgQuery__PLpgSQLStmtAssert * + pg_query__plpg_sql_stmt_assert__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__alter_subscription_stmt__free_unpacked - (PgQuery__AlterSubscriptionStmt *message, +void pg_query__plpg_sql_stmt_assert__free_unpacked + (PgQuery__PLpgSQLStmtAssert *message, ProtobufCAllocator *allocator); -/* PgQuery__DropSubscriptionStmt methods */ -void pg_query__drop_subscription_stmt__init - (PgQuery__DropSubscriptionStmt *message); -size_t pg_query__drop_subscription_stmt__get_packed_size - (const PgQuery__DropSubscriptionStmt *message); -size_t pg_query__drop_subscription_stmt__pack - (const PgQuery__DropSubscriptionStmt *message, +/* PgQuery__PLpgSQLStmtExecsql methods */ +void pg_query__plpg_sql_stmt_execsql__init + (PgQuery__PLpgSQLStmtExecsql *message); +size_t pg_query__plpg_sql_stmt_execsql__get_packed_size + (const PgQuery__PLpgSQLStmtExecsql *message); +size_t pg_query__plpg_sql_stmt_execsql__pack + (const PgQuery__PLpgSQLStmtExecsql *message, uint8_t *out); -size_t pg_query__drop_subscription_stmt__pack_to_buffer - (const PgQuery__DropSubscriptionStmt *message, +size_t pg_query__plpg_sql_stmt_execsql__pack_to_buffer + (const PgQuery__PLpgSQLStmtExecsql *message, ProtobufCBuffer *buffer); -PgQuery__DropSubscriptionStmt * - pg_query__drop_subscription_stmt__unpack +PgQuery__PLpgSQLStmtExecsql * + pg_query__plpg_sql_stmt_execsql__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__drop_subscription_stmt__free_unpacked - (PgQuery__DropSubscriptionStmt *message, +void pg_query__plpg_sql_stmt_execsql__free_unpacked + (PgQuery__PLpgSQLStmtExecsql *message, ProtobufCAllocator *allocator); -/* PgQuery__ScanToken methods */ -void pg_query__scan_token__init - (PgQuery__ScanToken *message); -size_t pg_query__scan_token__get_packed_size - (const PgQuery__ScanToken *message); -size_t pg_query__scan_token__pack - (const PgQuery__ScanToken *message, +/* PgQuery__PLpgSQLStmtDynexecute methods */ +void pg_query__plpg_sql_stmt_dynexecute__init + (PgQuery__PLpgSQLStmtDynexecute *message); +size_t pg_query__plpg_sql_stmt_dynexecute__get_packed_size + (const PgQuery__PLpgSQLStmtDynexecute *message); +size_t pg_query__plpg_sql_stmt_dynexecute__pack + (const PgQuery__PLpgSQLStmtDynexecute *message, uint8_t *out); -size_t pg_query__scan_token__pack_to_buffer - (const PgQuery__ScanToken *message, +size_t pg_query__plpg_sql_stmt_dynexecute__pack_to_buffer + (const PgQuery__PLpgSQLStmtDynexecute *message, ProtobufCBuffer *buffer); -PgQuery__ScanToken * - pg_query__scan_token__unpack +PgQuery__PLpgSQLStmtDynexecute * + pg_query__plpg_sql_stmt_dynexecute__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__scan_token__free_unpacked - (PgQuery__ScanToken *message, +void pg_query__plpg_sql_stmt_dynexecute__free_unpacked + (PgQuery__PLpgSQLStmtDynexecute *message, ProtobufCAllocator *allocator); -/* PgQuery__SummaryResult__Table methods */ -void pg_query__summary_result__table__init - (PgQuery__SummaryResult__Table *message); -/* PgQuery__SummaryResult__AliasesEntry methods */ -void pg_query__summary_result__aliases_entry__init - (PgQuery__SummaryResult__AliasesEntry *message); -/* PgQuery__SummaryResult__Function methods */ -void pg_query__summary_result__function__init - (PgQuery__SummaryResult__Function *message); -/* PgQuery__SummaryResult__FilterColumn methods */ -void pg_query__summary_result__filter_column__init - (PgQuery__SummaryResult__FilterColumn *message); -/* PgQuery__SummaryResult methods */ -void pg_query__summary_result__init - (PgQuery__SummaryResult *message); -size_t pg_query__summary_result__get_packed_size - (const PgQuery__SummaryResult *message); -size_t pg_query__summary_result__pack - (const PgQuery__SummaryResult *message, +/* PgQuery__PLpgSQLFunction methods */ +void pg_query__plpg_sql_function__init + (PgQuery__PLpgSQLFunction *message); +size_t pg_query__plpg_sql_function__get_packed_size + (const PgQuery__PLpgSQLFunction *message); +size_t pg_query__plpg_sql_function__pack + (const PgQuery__PLpgSQLFunction *message, uint8_t *out); -size_t pg_query__summary_result__pack_to_buffer - (const PgQuery__SummaryResult *message, +size_t pg_query__plpg_sql_function__pack_to_buffer + (const PgQuery__PLpgSQLFunction *message, ProtobufCBuffer *buffer); -PgQuery__SummaryResult * - pg_query__summary_result__unpack +PgQuery__PLpgSQLFunction * + pg_query__plpg_sql_function__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void pg_query__summary_result__free_unpacked - (PgQuery__SummaryResult *message, +void pg_query__plpg_sql_function__free_unpacked + (PgQuery__PLpgSQLFunction *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ @@ -12507,6 +14233,138 @@ typedef void (*PgQuery__SummaryResult__FilterColumn_Closure) typedef void (*PgQuery__SummaryResult_Closure) (const PgQuery__SummaryResult *message, void *closure_data); +typedef void (*PgQuery__PLpgSQLParseResult_Closure) + (const PgQuery__PLpgSQLParseResult *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmt_Closure) + (const PgQuery__PLpgSQLStmt *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLDatum_Closure) + (const PgQuery__PLpgSQLDatum *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLType_Closure) + (const PgQuery__PLpgSQLType *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLExpr_Closure) + (const PgQuery__PLpgSQLExpr *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLVar_Closure) + (const PgQuery__PLpgSQLVar *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLRow_Closure) + (const PgQuery__PLpgSQLRow *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLRec_Closure) + (const PgQuery__PLpgSQLRec *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLRecfield_Closure) + (const PgQuery__PLpgSQLRecfield *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLCondition_Closure) + (const PgQuery__PLpgSQLCondition *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLExceptionBlock_Closure) + (const PgQuery__PLpgSQLExceptionBlock *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLException_Closure) + (const PgQuery__PLpgSQLException *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtBlock_Closure) + (const PgQuery__PLpgSQLStmtBlock *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtAssign_Closure) + (const PgQuery__PLpgSQLStmtAssign *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtPerform_Closure) + (const PgQuery__PLpgSQLStmtPerform *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtCall_Closure) + (const PgQuery__PLpgSQLStmtCall *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtCommit_Closure) + (const PgQuery__PLpgSQLStmtCommit *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtRollback_Closure) + (const PgQuery__PLpgSQLStmtRollback *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLDiagItem_Closure) + (const PgQuery__PLpgSQLDiagItem *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtGetdiag_Closure) + (const PgQuery__PLpgSQLStmtGetdiag *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtIf_Closure) + (const PgQuery__PLpgSQLStmtIf *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLIfElsif_Closure) + (const PgQuery__PLpgSQLIfElsif *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtCase_Closure) + (const PgQuery__PLpgSQLStmtCase *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLCaseWhen_Closure) + (const PgQuery__PLpgSQLCaseWhen *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtLoop_Closure) + (const PgQuery__PLpgSQLStmtLoop *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtWhile_Closure) + (const PgQuery__PLpgSQLStmtWhile *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtFori_Closure) + (const PgQuery__PLpgSQLStmtFori *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtFors_Closure) + (const PgQuery__PLpgSQLStmtFors *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtForc_Closure) + (const PgQuery__PLpgSQLStmtForc *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtDynfors_Closure) + (const PgQuery__PLpgSQLStmtDynfors *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtForeachA_Closure) + (const PgQuery__PLpgSQLStmtForeachA *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtOpen_Closure) + (const PgQuery__PLpgSQLStmtOpen *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtFetch_Closure) + (const PgQuery__PLpgSQLStmtFetch *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtClose_Closure) + (const PgQuery__PLpgSQLStmtClose *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtExit_Closure) + (const PgQuery__PLpgSQLStmtExit *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtReturn_Closure) + (const PgQuery__PLpgSQLStmtReturn *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtReturnNext_Closure) + (const PgQuery__PLpgSQLStmtReturnNext *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtReturnQuery_Closure) + (const PgQuery__PLpgSQLStmtReturnQuery *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtRaise_Closure) + (const PgQuery__PLpgSQLStmtRaise *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLRaiseOption_Closure) + (const PgQuery__PLpgSQLRaiseOption *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtAssert_Closure) + (const PgQuery__PLpgSQLStmtAssert *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtExecsql_Closure) + (const PgQuery__PLpgSQLStmtExecsql *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLStmtDynexecute_Closure) + (const PgQuery__PLpgSQLStmtDynexecute *message, + void *closure_data); +typedef void (*PgQuery__PLpgSQLFunction_Closure) + (const PgQuery__PLpgSQLFunction *message, + void *closure_data); /* --- services --- */ @@ -12584,6 +14442,16 @@ extern const ProtobufCEnumDescriptor pg_query__lock_wait_policy__descriptor; extern const ProtobufCEnumDescriptor pg_query__lock_tuple_mode__descriptor; extern const ProtobufCEnumDescriptor pg_query__keyword_kind__descriptor; extern const ProtobufCEnumDescriptor pg_query__token__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_nsitem_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_label_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_datum_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_promise_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_type_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_stmt_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_getdiag_kind__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_raise_option_type__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_resolve_option__descriptor; +extern const ProtobufCEnumDescriptor pg_query__plpg_sql_trigtype__descriptor; extern const ProtobufCMessageDescriptor pg_query__parse_result__descriptor; extern const ProtobufCMessageDescriptor pg_query__scan_result__descriptor; extern const ProtobufCMessageDescriptor pg_query__node__descriptor; @@ -12862,6 +14730,50 @@ extern const ProtobufCMessageDescriptor pg_query__summary_result__aliases_entry_ extern const ProtobufCMessageDescriptor pg_query__summary_result__function__descriptor; extern const ProtobufCMessageDescriptor pg_query__summary_result__filter_column__descriptor; extern const ProtobufCEnumDescriptor pg_query__summary_result__context__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sqlparse_result__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_datum__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_type__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_expr__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_var__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_row__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_rec__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_recfield__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_condition__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_exception_block__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_exception__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_block__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_assign__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_perform__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_call__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_commit__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_rollback__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_diag_item__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_getdiag__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_if__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_if_elsif__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_case__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_case_when__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_loop__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_while__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_fori__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_fors__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_forc__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_dynfors__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_foreach_a__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_open__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_fetch__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_close__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_exit__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_return__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_return_next__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_return_query__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_raise__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_raise_option__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_assert__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_execsql__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_stmt_dynexecute__descriptor; +extern const ProtobufCMessageDescriptor pg_query__plpg_sql_function__descriptor; PROTOBUF_C__END_DECLS diff --git a/protobuf/pg_query.proto b/protobuf/pg_query.proto index 5f7af30ab..41f453ac5 100644 --- a/protobuf/pg_query.proto +++ b/protobuf/pg_query.proto @@ -4155,3 +4155,521 @@ message SummaryResult { repeated string statement_types = 6; string truncated_query = 7; /* optional, empty if truncation limit is -1 */ } +// PLpgSQL Protobuf Definitions +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +message PLpgSQLParseResult { + int32 version = 1; + repeated PLpgSQL_function plpgsql_funcs = 2; +} + +// PLpgSQL statement wrapper with oneof for polymorphism +message PLpgSQL_stmt { + oneof stmt { + PLpgSQL_stmt_block stmt_block = 1; + PLpgSQL_stmt_assign stmt_assign = 2; + PLpgSQL_stmt_if stmt_if = 3; + PLpgSQL_stmt_case stmt_case_ = 4; + PLpgSQL_stmt_loop stmt_loop = 5; + PLpgSQL_stmt_while stmt_while = 6; + PLpgSQL_stmt_fori stmt_fori = 7; + PLpgSQL_stmt_fors stmt_fors = 8; + PLpgSQL_stmt_forc stmt_forc = 9; + PLpgSQL_stmt_foreach_a stmt_foreach_a = 10; + PLpgSQL_stmt_exit stmt_exit = 11; + PLpgSQL_stmt_return stmt_return = 12; + PLpgSQL_stmt_return_next stmt_return_next = 13; + PLpgSQL_stmt_return_query stmt_return_query = 14; + PLpgSQL_stmt_raise stmt_raise = 15; + PLpgSQL_stmt_assert stmt_assert = 16; + PLpgSQL_stmt_execsql stmt_execsql = 17; + PLpgSQL_stmt_dynexecute stmt_dynexecute = 18; + PLpgSQL_stmt_dynfors stmt_dynfors = 19; + PLpgSQL_stmt_getdiag stmt_getdiag = 20; + PLpgSQL_stmt_open stmt_open = 21; + PLpgSQL_stmt_fetch stmt_fetch = 22; + PLpgSQL_stmt_close stmt_close = 23; + PLpgSQL_stmt_perform stmt_perform = 24; + PLpgSQL_stmt_call stmt_call = 25; + PLpgSQL_stmt_commit stmt_commit = 26; + PLpgSQL_stmt_rollback stmt_rollback = 27; + } +} + +// PLpgSQL datum wrapper with oneof for polymorphism +message PLpgSQL_datum { + oneof datum { + PLpgSQL_var var = 1; + PLpgSQL_row row = 3; + PLpgSQL_rec rec = 4; + PLpgSQL_recfield recfield = 5; + } +} + +// PLpgSQL Messages + +message PLpgSQL_type { + string typname = 1; + PLpgSQL_type_type ttype = 2; +} + +message PLpgSQL_expr { + string query = 1; + int32 parse_mode = 2; +} + +message PLpgSQL_var { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string refname = 3; + int32 lineno = 4; + bool isconst = 5; + bool notnull = 6; + PLpgSQL_expr default_val = 7; + PLpgSQL_type datatype = 8; + PLpgSQL_expr cursor_explicit_expr = 9; + int32 cursor_explicit_argrow = 10; + int32 cursor_options = 11; + PLpgSQL_promise_type promise = 12; +} + +message PLpgSQL_row { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string refname = 3; + int32 lineno = 4; + bool isconst = 5; + bool notnull = 6; + PLpgSQL_expr default_val = 7; + int32 nfields = 8; +} + +message PLpgSQL_rec { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string refname = 3; + int32 lineno = 4; + bool isconst = 5; + bool notnull = 6; + PLpgSQL_expr default_val = 7; + PLpgSQL_type datatype = 8; + int32 firstfield = 9; +} + +message PLpgSQL_recfield { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string fieldname = 3; + int32 recparentno = 4; + int32 nextfield = 5; +} + +message PLpgSQL_condition { + int32 sqlerrstate = 1; + string condname = 2; +} + +message PLpgSQL_exception_block { + int32 sqlstate_varno = 1; + int32 sqlerrm_varno = 2; + repeated PLpgSQL_exception exc_list = 3; +} + +message PLpgSQL_exception { + int32 lineno = 1; + PLpgSQL_condition conditions = 2; + repeated PLpgSQL_stmt action = 3; +} + +message PLpgSQL_stmt_block { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + repeated PLpgSQL_stmt body = 4; + int32 n_initvars = 5; + PLpgSQL_exception_block exceptions = 6; +} + +message PLpgSQL_stmt_assign { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 varno = 3; + PLpgSQL_expr expr = 4; +} + +message PLpgSQL_stmt_perform { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; +} + +message PLpgSQL_stmt_call { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; + bool is_call = 4; + PLpgSQL_datum target = 5; +} + +message PLpgSQL_stmt_commit { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool chain = 3; +} + +message PLpgSQL_stmt_rollback { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool chain = 3; +} + +message PLpgSQL_diag_item { + PLpgSQL_getdiag_kind kind = 1; + int32 target = 2; +} + +message PLpgSQL_stmt_getdiag { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool is_stacked = 3; + repeated PLpgSQL_diag_item diag_items = 4; +} + +message PLpgSQL_stmt_if { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr cond = 3; + repeated PLpgSQL_stmt then_body = 4; + repeated PLpgSQL_if_elsif elsif_list = 5; + repeated PLpgSQL_stmt else_body = 6; +} + +message PLpgSQL_if_elsif { + int32 lineno = 1; + PLpgSQL_expr cond = 2; + repeated PLpgSQL_stmt stmts = 3; +} + +message PLpgSQL_stmt_case { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr t_expr = 3; + int32 t_varno = 4; + repeated PLpgSQL_case_when case_when_list = 5; + bool have_else = 6; + repeated PLpgSQL_stmt else_stmts = 7; +} + +message PLpgSQL_case_when { + int32 lineno = 1; + PLpgSQL_expr expr = 2; + repeated PLpgSQL_stmt stmts = 3; +} + +message PLpgSQL_stmt_loop { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + repeated PLpgSQL_stmt body = 4; +} + +message PLpgSQL_stmt_while { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_expr cond = 4; + repeated PLpgSQL_stmt body = 5; +} + +message PLpgSQL_stmt_fori { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_var var = 4; + PLpgSQL_expr lower = 5; + PLpgSQL_expr upper = 6; + PLpgSQL_expr step = 7; + int32 reverse = 8; + repeated PLpgSQL_stmt body = 9; +} + +message PLpgSQL_stmt_fors { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_datum var = 4; + repeated PLpgSQL_stmt body = 5; + PLpgSQL_expr query = 6; +} + +message PLpgSQL_stmt_forc { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_datum var = 4; + repeated PLpgSQL_stmt body = 5; + int32 curvar = 6; + PLpgSQL_expr argquery = 7; +} + +message PLpgSQL_stmt_dynfors { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_datum var = 4; + repeated PLpgSQL_stmt body = 5; + PLpgSQL_expr query = 6; + repeated PLpgSQL_expr params = 7; +} + +message PLpgSQL_stmt_foreach_a { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + int32 varno = 4; + int32 slice = 5; + PLpgSQL_expr expr = 6; + repeated PLpgSQL_stmt body = 7; +} + +message PLpgSQL_stmt_open { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 curvar = 3; + int32 cursor_options = 4; + PLpgSQL_expr argquery = 5; + PLpgSQL_expr query = 6; + PLpgSQL_expr dynquery = 7; + repeated PLpgSQL_expr params = 8; +} + +message PLpgSQL_stmt_fetch { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_datum target = 3; + int32 curvar = 4; + int32 direction = 5; + int64 how_many = 6; + PLpgSQL_expr expr = 7; + bool is_move = 8; + bool returns_multiple_rows = 9; +} + +message PLpgSQL_stmt_close { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 curvar = 3; +} + +message PLpgSQL_stmt_exit { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool is_exit = 3; + string label = 4; + PLpgSQL_expr cond = 5; +} + +message PLpgSQL_stmt_return { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; + int32 retvarno = 4; +} + +message PLpgSQL_stmt_return_next { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; + int32 retvarno = 4; +} + +message PLpgSQL_stmt_return_query { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr query = 3; + PLpgSQL_expr dynquery = 4; + repeated PLpgSQL_expr params = 5; +} + +message PLpgSQL_stmt_raise { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 elog_level = 3; + string condname = 4; + string message = 5; + repeated PLpgSQL_expr params = 6; + repeated PLpgSQL_raise_option options = 7; +} + +message PLpgSQL_raise_option { + PLpgSQL_raise_option_type opt_type = 1; + PLpgSQL_expr expr = 2; +} + +message PLpgSQL_stmt_assert { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr cond = 3; + PLpgSQL_expr message = 4; +} + +message PLpgSQL_stmt_execsql { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr sqlstmt = 3; + bool mod_stmt = 4; + bool mod_stmt_set = 5; + bool into = 6; + bool strict = 7; + PLpgSQL_datum target = 8; +} + +message PLpgSQL_stmt_dynexecute { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr query = 3; + bool into = 4; + bool strict = 5; + PLpgSQL_datum target = 6; + repeated PLpgSQL_expr params = 7; +} + +message PLpgSQL_function { + string fn_signature = 1; + PLpgSQL_trigtype fn_is_trigger = 2; + int32 out_param_varno = 3; + int32 found_varno = 4; + int32 new_varno = 5; + int32 old_varno = 6; + PLpgSQL_resolve_option resolve_option = 7; + bool print_strict_params = 8; + int32 extra_warnings = 9; + int32 extra_errors = 10; + int32 ndatums = 11; + PLpgSQL_stmt_block action = 12; +} + + +// PLpgSQL Enums + +enum PLpgSQL_nsitem_type { + P__LPG_SQL_NSITEM_TYPE_UNDEFINED = 0; + PLPGSQL_NSTYPE_LABEL = 1; + PLPGSQL_NSTYPE_VAR = 2; + PLPGSQL_NSTYPE_REC = 3; +} + +enum PLpgSQL_label_type { + P__LPG_SQL_LABEL_TYPE_UNDEFINED = 0; + PLPGSQL_LABEL_BLOCK = 1; + PLPGSQL_LABEL_LOOP = 2; + PLPGSQL_LABEL_OTHER = 3; +} + +enum PLpgSQL_datum_type { + P__LPG_SQL_DATUM_TYPE_UNDEFINED = 0; + PLPGSQL_DTYPE_VAR = 1; + PLPGSQL_DTYPE_ROW = 2; + PLPGSQL_DTYPE_REC = 3; + PLPGSQL_DTYPE_RECFIELD = 4; + PLPGSQL_DTYPE_PROMISE = 5; +} + +enum PLpgSQL_promise_type { + P__LPG_SQL_PROMISE_TYPE_UNDEFINED = 0; + PLPGSQL_PROMISE_NONE = 1; + PLPGSQL_PROMISE_TG_NAME = 2; + PLPGSQL_PROMISE_TG_WHEN = 3; + PLPGSQL_PROMISE_TG_LEVEL = 4; + PLPGSQL_PROMISE_TG_OP = 5; + PLPGSQL_PROMISE_TG_RELID = 6; + PLPGSQL_PROMISE_TG_TABLE_NAME = 7; + PLPGSQL_PROMISE_TG_TABLE_SCHEMA = 8; + PLPGSQL_PROMISE_TG_NARGS = 9; + PLPGSQL_PROMISE_TG_ARGV = 10; + PLPGSQL_PROMISE_TG_EVENT = 11; + PLPGSQL_PROMISE_TG_TAG = 12; +} + +enum PLpgSQL_type_type { + P__LPG_SQL_TYPE_TYPE_UNDEFINED = 0; + PLPGSQL_TTYPE_SCALAR = 1; + PLPGSQL_TTYPE_REC = 2; + PLPGSQL_TTYPE_PSEUDO = 3; +} + +enum PLpgSQL_stmt_type { + P__LPG_SQL_STMT_TYPE_UNDEFINED = 0; + PLPGSQL_STMT_BLOCK = 1; + PLPGSQL_STMT_ASSIGN = 2; + PLPGSQL_STMT_IF = 3; + PLPGSQL_STMT_CASE = 4; + PLPGSQL_STMT_LOOP = 5; + PLPGSQL_STMT_WHILE = 6; + PLPGSQL_STMT_FORI = 7; + PLPGSQL_STMT_FORS = 8; + PLPGSQL_STMT_FORC = 9; + PLPGSQL_STMT_FOREACH_A = 10; + PLPGSQL_STMT_EXIT = 11; + PLPGSQL_STMT_RETURN = 12; + PLPGSQL_STMT_RETURN_NEXT = 13; + PLPGSQL_STMT_RETURN_QUERY = 14; + PLPGSQL_STMT_RAISE = 15; + PLPGSQL_STMT_ASSERT = 16; + PLPGSQL_STMT_EXECSQL = 17; + PLPGSQL_STMT_DYNEXECUTE = 18; + PLPGSQL_STMT_DYNFORS = 19; + PLPGSQL_STMT_GETDIAG = 20; + PLPGSQL_STMT_OPEN = 21; + PLPGSQL_STMT_FETCH = 22; + PLPGSQL_STMT_CLOSE = 23; + PLPGSQL_STMT_PERFORM = 24; + PLPGSQL_STMT_CALL = 25; + PLPGSQL_STMT_COMMIT = 26; + PLPGSQL_STMT_ROLLBACK = 27; +} + +enum PLpgSQL_getdiag_kind { + P__LPG_SQL_GETDIAG_KIND_UNDEFINED = 0; + PLPGSQL_GETDIAG_ROW_COUNT = 1; + PLPGSQL_GETDIAG_ROUTINE_OID = 2; + PLPGSQL_GETDIAG_CONTEXT = 3; + PLPGSQL_GETDIAG_ERROR_CONTEXT = 4; + PLPGSQL_GETDIAG_ERROR_DETAIL = 5; + PLPGSQL_GETDIAG_ERROR_HINT = 6; + PLPGSQL_GETDIAG_RETURNED_SQLSTATE = 7; + PLPGSQL_GETDIAG_COLUMN_NAME = 8; + PLPGSQL_GETDIAG_CONSTRAINT_NAME = 9; + PLPGSQL_GETDIAG_DATATYPE_NAME = 10; + PLPGSQL_GETDIAG_MESSAGE_TEXT = 11; + PLPGSQL_GETDIAG_TABLE_NAME = 12; + PLPGSQL_GETDIAG_SCHEMA_NAME = 13; +} + +enum PLpgSQL_raise_option_type { + P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED = 0; + PLPGSQL_RAISEOPTION_ERRCODE = 1; + PLPGSQL_RAISEOPTION_MESSAGE = 2; + PLPGSQL_RAISEOPTION_DETAIL = 3; + PLPGSQL_RAISEOPTION_HINT = 4; + PLPGSQL_RAISEOPTION_COLUMN = 5; + PLPGSQL_RAISEOPTION_CONSTRAINT = 6; + PLPGSQL_RAISEOPTION_DATATYPE = 7; + PLPGSQL_RAISEOPTION_TABLE = 8; + PLPGSQL_RAISEOPTION_SCHEMA = 9; +} + +enum PLpgSQL_resolve_option { + P__LPG_SQL_RESOLVE_OPTION_UNDEFINED = 0; + PLPGSQL_RESOLVE_ERROR = 1; + PLPGSQL_RESOLVE_VARIABLE = 2; + PLPGSQL_RESOLVE_COLUMN = 3; +} + +enum PLpgSQL_trigtype { + P__LPG_SQL_TRIGTYPE_UNDEFINED = 0; + PLPGSQL_DML_TRIGGER = 1; + PLPGSQL_EVENT_TRIGGER = 2; + PLPGSQL_NOT_TRIGGER = 3; +} + diff --git a/scripts/extract_plpgsql_headers.rb b/scripts/extract_plpgsql_headers.rb new file mode 100644 index 000000000..4b4bed1ad --- /dev/null +++ b/scripts/extract_plpgsql_headers.rb @@ -0,0 +1,203 @@ +#!/usr/bin/env ruby + +# Extract PLpgSQL type definitions from plpgsql.h +# Outputs JSON files to srcdata/ for use by generate_plpgsql_protobuf.rb + +require 'bundler' +require 'json' + +class PLpgSQLExtractor + def initialize(plpgsql_header_path) + @header_path = plpgsql_header_path + end + + def underscore(str) + str + .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') + .gsub(/([a-z\d])([A-Z])/, '\1_\2') + .tr('-', '_') + .gsub(/\s/, '_') + .gsub(/__+/, '_') + .downcase + end + + # Types we skip entirely (runtime-only, complex pointers, etc.) + SKIP_TYPES = [ + 'SPIPlanPtr', 'Bitmapset*', 'ExprState*', 'CachedPlanSource*', 'CachedPlan*', + 'Param*', 'TypeCacheEntry*', 'TupleDesc', 'ExpandedRecordHeader*', + 'ExpandedRecordFieldInfo', 'PLpgSQL_function*', 'PLpgSQL_nsitem*', + 'MemoryContext', 'PLpgSQL_func_hashkey*', 'PLpgSQL_execstate*', + 'ItemPointerData', 'Datum', 'LocalTransactionId', 'Expr*', 'TypeName*' + ] + + # Fields to skip in structs (runtime fields) + SKIP_FIELDS = { + 'PLpgSQL_expr' => ['plan', 'paramnos', 'func', 'ns', 'expr_simple_expr', 'expr_simple_type', + 'expr_simple_typmod', 'expr_simple_mutable', 'target_param', 'expr_rw_param', + 'expr_simple_plansource', 'expr_simple_plan', 'expr_simple_plan_lxid', + 'expr_simple_state', 'expr_simple_in_use', 'expr_simple_lxid'], + 'PLpgSQL_var' => ['value', 'isnull', 'freeval'], + 'PLpgSQL_row' => ['rowtupdesc', 'varnos'], # varnos uses nfields for count, complex + 'PLpgSQL_rec' => ['erh', 'rectypeid'], + 'PLpgSQL_recfield' => ['rectupledescid', 'finfo'], + 'PLpgSQL_type' => ['typoid', 'typlen', 'typbyval', 'typtype', 'collation', + 'typisarray', 'atttypmod', 'origtypname', 'tcache', 'tupdesc_id'], + 'PLpgSQL_function' => ['fn_oid', 'fn_xmin', 'fn_tid', 'fn_input_collation', 'fn_hashkey', + 'fn_cxt', 'fn_rettype', 'fn_rettyplen', 'fn_retbyval', 'fn_retistuple', + 'fn_retisdomain', 'fn_retset', 'fn_readonly', 'fn_prokind', 'fn_nargs', + 'fn_argvarnos', 'copiable_size', 'nstatements', + 'requires_procedure_resowner', 'cur_estate', 'use_count', 'datums'], + 'PLpgSQL_nsitem' => ['prev', 'name'], + 'PLpgSQL_condition' => ['next'], # Linked list, handle specially + } + + # Structs we want to extract (statements, datums, helper types) + TARGET_STRUCTS = [ + 'PLpgSQL_type', 'PLpgSQL_expr', 'PLpgSQL_datum', 'PLpgSQL_variable', + 'PLpgSQL_var', 'PLpgSQL_row', 'PLpgSQL_rec', 'PLpgSQL_recfield', + 'PLpgSQL_condition', 'PLpgSQL_exception_block', 'PLpgSQL_exception', + 'PLpgSQL_stmt', 'PLpgSQL_stmt_block', 'PLpgSQL_stmt_assign', + 'PLpgSQL_stmt_perform', 'PLpgSQL_stmt_call', 'PLpgSQL_stmt_commit', + 'PLpgSQL_stmt_rollback', 'PLpgSQL_diag_item', 'PLpgSQL_stmt_getdiag', + 'PLpgSQL_stmt_if', 'PLpgSQL_if_elsif', 'PLpgSQL_stmt_case', + 'PLpgSQL_case_when', 'PLpgSQL_stmt_loop', 'PLpgSQL_stmt_while', + 'PLpgSQL_stmt_fori', 'PLpgSQL_stmt_forq', 'PLpgSQL_stmt_fors', + 'PLpgSQL_stmt_forc', 'PLpgSQL_stmt_dynfors', 'PLpgSQL_stmt_foreach_a', + 'PLpgSQL_stmt_open', 'PLpgSQL_stmt_fetch', 'PLpgSQL_stmt_close', + 'PLpgSQL_stmt_exit', 'PLpgSQL_stmt_return', 'PLpgSQL_stmt_return_next', + 'PLpgSQL_stmt_return_query', 'PLpgSQL_stmt_raise', 'PLpgSQL_raise_option', + 'PLpgSQL_stmt_assert', 'PLpgSQL_stmt_execsql', 'PLpgSQL_stmt_dynexecute', + 'PLpgSQL_function', + ] + + # Enums we want to extract + TARGET_ENUMS = [ + 'PLpgSQL_nsitem_type', 'PLpgSQL_label_type', 'PLpgSQL_datum_type', + 'PLpgSQL_promise_type', 'PLpgSQL_type_type', 'PLpgSQL_stmt_type', + 'PLpgSQL_getdiag_kind', 'PLpgSQL_raise_option_type', + 'PLpgSQL_resolve_option', 'PLpgSQL_trigtype', + ] + + def extract! + @struct_defs = {} + @enum_defs = {} + @current_struct_def = nil + @current_enum_def = nil + @open_comment = false + @open_comment_text = nil + + lines = File.read(@header_path) + lines.each_line do |line| + if !@current_struct_def.nil? + handle_struct(line) + elsif !@current_enum_def.nil? + handle_enum(line) + elsif line[/^typedef struct ([A-z_]+)\s*(\/\*.+)?$/] + name = $1 + if TARGET_STRUCTS.include?(name) + @current_struct_def = { name: name, fields: [], comment: @open_comment_text } + @open_comment_text = nil + end + elsif line[/^\s*typedef enum\s*([A-z_]+)?\s*(\/\*.+)?(?: {)?$/] + name = $1 + if TARGET_ENUMS.include?(name) + @current_enum_def = { name: name, values: [], comment: @open_comment_text } + @open_comment_text = nil + end + elsif line.strip.start_with?('/*') + @open_comment_text = line + @open_comment = !line.include?('*/') + elsif @open_comment + @open_comment_text += "\n" unless @open_comment_text.end_with?("\n") + @open_comment_text += line + @open_comment = !line.include?('*/') + end + end + + # Write output files + File.write('./srcdata/plpgsql_struct_defs.json', JSON.pretty_generate(@struct_defs)) + File.write('./srcdata/plpgsql_enum_defs.json', JSON.pretty_generate(@enum_defs)) + + puts "Extracted #{@struct_defs.size} structs and #{@enum_defs.size} enums" + end + + def handle_struct(line) + # Match struct fields, handling array declarations like int field[SIZE] + # Note: Use [a-zA-Z] instead of [A-z] because A-z includes [ \ ] ^ _ ` characters + if line[/^\s+(struct |const )?([a-zA-Z0-9_]+)\s+(\*{0,2})([a-zA-Z_]+)(\[[A-Z_0-9]+\])?;\s*(\/\*.+)?/] + c_type = $2 + $3.to_s + raw_name = $4 + is_array = !$5.nil? + comment = $6 + + # Extract the actual field name without array subscript + name = raw_name + + struct_name = @current_struct_def[:name] + skip_fields = SKIP_FIELDS[struct_name] || [] + + # Skip this field if it's in the skip list or uses a skipped type + # Also skip array fields as they need special handling + unless skip_fields.include?(name) || SKIP_TYPES.include?(c_type) || is_array + @current_struct_def[:fields] << { name: name, c_type: c_type, comment: comment } + end + + @open_comment = line.include?('/*') && !line.include?('*/') + elsif line[/^\}\s*([A-z_]+)?;/] + name = @current_struct_def.delete(:name) + @struct_defs[name] = @current_struct_def + @current_struct_def = nil + elsif line.strip.start_with?('/*') + @current_struct_def[:fields] << { comment: line } + @open_comment = !line.include?('*/') + elsif @open_comment + if @current_struct_def[:fields].last && @current_struct_def[:fields].last[:comment] + @current_struct_def[:fields].last[:comment] += "\n" unless @current_struct_def[:fields].last[:comment].end_with?("\n") + @current_struct_def[:fields].last[:comment] += line + end + @open_comment = !line.include?('*/') + end + end + + def handle_enum(line) + if line[/^\s+([A-Z0-9_]+)(?: = (\d+))?,?\s*(\/\*.+)?/] + name = $1 + value = $2&.to_i + comment = $3 + + # Calculate value if not explicit + if value.nil? + previous_values = @current_enum_def[:values].map { |v| v[:value] }.compact + value = previous_values.empty? ? 0 : previous_values.last + 1 + end + + @current_enum_def[:values] << { name: name, value: value, comment: comment } + @open_comment = line.include?('/*') && !line.include?('*/') + elsif line[/^\}\s*([A-z_]+)?;/] + name = @current_enum_def.delete(:name) || $1 + @enum_defs[name] = @current_enum_def + @current_enum_def = nil + elsif line.strip.start_with?('/*') + @current_enum_def[:values] << { comment: line } + @open_comment = !line.include?('*/') + elsif @open_comment + if @current_enum_def[:values].last && @current_enum_def[:values].last[:comment] + @current_enum_def[:values].last[:comment] += "\n" unless @current_enum_def[:values].last[:comment].end_with?("\n") + @current_enum_def[:values].last[:comment] += line + end + @open_comment = !line.include?('*/') + end + end +end + +# Default path for the PLpgSQL header in this repo +default_path = './src/postgres/include/plpgsql.h' +header_path = ARGV[0] || default_path + +if !File.exist?(header_path) + puts "ERROR: PLpgSQL header not found at #{header_path}" + puts "Usage: #{$0} [path/to/plpgsql.h]" + exit 1 +end + +PLpgSQLExtractor.new(header_path).extract! diff --git a/scripts/generate_plpgsql_protobuf.rb b/scripts/generate_plpgsql_protobuf.rb new file mode 100644 index 000000000..b751ebd61 --- /dev/null +++ b/scripts/generate_plpgsql_protobuf.rb @@ -0,0 +1,1270 @@ +#!/usr/bin/env ruby + +# Generate PLpgSQL protobuf schema and serialization code +# Uses JSON files from srcdata/ produced by extract_plpgsql_headers.rb + +require 'bundler' +require 'json' + +class PLpgSQLGenerator + def initialize + @struct_defs = JSON.parse(File.read('./srcdata/plpgsql_struct_defs.json')) + @enum_defs = JSON.parse(File.read('./srcdata/plpgsql_enum_defs.json')) + end + + def underscore(camel_cased_word) + return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word) + word = camel_cased_word.to_s.gsub("::", "/") + word.gsub!(/^([A-Z\d])([A-Z][a-z])/, '\1__\2') + word.gsub!(/([A-Z\d]+[a-z]+)([A-Z][a-z])/, '\1_\2') + word.gsub!(/([a-z\d])([A-Z])/, '\1_\2') + word.tr!("-", "_") + word.downcase! + word + end + + # Convert PLpgSQL_type to PLpgSQLType (protobuf-c type name style) + # Removes underscores and capitalizes first letter of each part + def protobuf_c_type_name(name) + parts = name.split('_') + parts.map { |p| p[0].upcase + p[1..-1].to_s }.join + end + + # Convert PLpgSQL_type to plpg_sql_type (protobuf-c function name style) + # Insert underscore before uppercase that follows lowercase, then lowercase all + def protobuf_c_func_name(name) + name.gsub(/([a-z])([A-Z])/, '\1_\2').downcase + end + + # Statement types - these need to be handled via cmd_type dispatch + STMT_TYPES = %w[ + PLpgSQL_stmt_block PLpgSQL_stmt_assign PLpgSQL_stmt_perform + PLpgSQL_stmt_call PLpgSQL_stmt_commit PLpgSQL_stmt_rollback + PLpgSQL_stmt_getdiag PLpgSQL_stmt_if PLpgSQL_stmt_case + PLpgSQL_stmt_loop PLpgSQL_stmt_while PLpgSQL_stmt_fori + PLpgSQL_stmt_fors PLpgSQL_stmt_forc PLpgSQL_stmt_dynfors + PLpgSQL_stmt_foreach_a PLpgSQL_stmt_open PLpgSQL_stmt_fetch + PLpgSQL_stmt_close PLpgSQL_stmt_exit PLpgSQL_stmt_return + PLpgSQL_stmt_return_next PLpgSQL_stmt_return_query PLpgSQL_stmt_raise + PLpgSQL_stmt_assert PLpgSQL_stmt_execsql PLpgSQL_stmt_dynexecute + ] + + # Datum types - these need to be handled via dtype dispatch + DATUM_TYPES = %w[ + PLpgSQL_var PLpgSQL_row PLpgSQL_rec PLpgSQL_recfield + ] + + # Helper types (not dispatched via enum) + HELPER_TYPES = %w[ + PLpgSQL_type PLpgSQL_expr PLpgSQL_condition PLpgSQL_exception_block + PLpgSQL_exception PLpgSQL_if_elsif PLpgSQL_case_when PLpgSQL_diag_item + PLpgSQL_raise_option PLpgSQL_function + ] + + # Fields to skip (these are runtime fields or abstract base types) + SKIP_STRUCTS = %w[ + PLpgSQL_datum PLpgSQL_variable PLpgSQL_stmt PLpgSQL_stmt_forq + ] + + # Map stmt_type enum values to struct names + STMT_TYPE_MAP = { + 'PLPGSQL_STMT_BLOCK' => 'PLpgSQL_stmt_block', + 'PLPGSQL_STMT_ASSIGN' => 'PLpgSQL_stmt_assign', + 'PLPGSQL_STMT_IF' => 'PLpgSQL_stmt_if', + 'PLPGSQL_STMT_CASE' => 'PLpgSQL_stmt_case', + 'PLPGSQL_STMT_LOOP' => 'PLpgSQL_stmt_loop', + 'PLPGSQL_STMT_WHILE' => 'PLpgSQL_stmt_while', + 'PLPGSQL_STMT_FORI' => 'PLpgSQL_stmt_fori', + 'PLPGSQL_STMT_FORS' => 'PLpgSQL_stmt_fors', + 'PLPGSQL_STMT_FORC' => 'PLpgSQL_stmt_forc', + 'PLPGSQL_STMT_FOREACH_A' => 'PLpgSQL_stmt_foreach_a', + 'PLPGSQL_STMT_EXIT' => 'PLpgSQL_stmt_exit', + 'PLPGSQL_STMT_RETURN' => 'PLpgSQL_stmt_return', + 'PLPGSQL_STMT_RETURN_NEXT' => 'PLpgSQL_stmt_return_next', + 'PLPGSQL_STMT_RETURN_QUERY' => 'PLpgSQL_stmt_return_query', + 'PLPGSQL_STMT_RAISE' => 'PLpgSQL_stmt_raise', + 'PLPGSQL_STMT_ASSERT' => 'PLpgSQL_stmt_assert', + 'PLPGSQL_STMT_EXECSQL' => 'PLpgSQL_stmt_execsql', + 'PLPGSQL_STMT_DYNEXECUTE' => 'PLpgSQL_stmt_dynexecute', + 'PLPGSQL_STMT_DYNFORS' => 'PLpgSQL_stmt_dynfors', + 'PLPGSQL_STMT_GETDIAG' => 'PLpgSQL_stmt_getdiag', + 'PLPGSQL_STMT_OPEN' => 'PLpgSQL_stmt_open', + 'PLPGSQL_STMT_FETCH' => 'PLpgSQL_stmt_fetch', + 'PLPGSQL_STMT_CLOSE' => 'PLpgSQL_stmt_close', + 'PLPGSQL_STMT_PERFORM' => 'PLpgSQL_stmt_perform', + 'PLPGSQL_STMT_CALL' => 'PLpgSQL_stmt_call', + 'PLPGSQL_STMT_COMMIT' => 'PLpgSQL_stmt_commit', + 'PLPGSQL_STMT_ROLLBACK' => 'PLpgSQL_stmt_rollback', + } + + # Map datum_type enum values to struct names + DATUM_TYPE_MAP = { + 'PLPGSQL_DTYPE_VAR' => 'PLpgSQL_var', + 'PLPGSQL_DTYPE_PROMISE' => 'PLpgSQL_var', + 'PLPGSQL_DTYPE_ROW' => 'PLpgSQL_row', + 'PLPGSQL_DTYPE_REC' => 'PLpgSQL_rec', + 'PLPGSQL_DTYPE_RECFIELD' => 'PLpgSQL_recfield', + } + + # Known PLpgSQL enums + PLPGSQL_ENUMS = %w[ + PLpgSQL_nsitem_type PLpgSQL_label_type PLpgSQL_datum_type + PLpgSQL_promise_type PLpgSQL_type_type PLpgSQL_stmt_type + PLpgSQL_getdiag_kind PLpgSQL_raise_option_type PLpgSQL_resolve_option + PLpgSQL_trigtype + ] + + # Known PLpgSQL struct types (for pointer fields) + PLPGSQL_STRUCTS = %w[ + PLpgSQL_type PLpgSQL_expr PLpgSQL_var PLpgSQL_row PLpgSQL_rec + PLpgSQL_recfield PLpgSQL_condition PLpgSQL_exception_block + PLpgSQL_exception PLpgSQL_stmt_block PLpgSQL_stmt_assign + PLpgSQL_stmt_if PLpgSQL_stmt_case PLpgSQL_stmt_loop + PLpgSQL_stmt_while PLpgSQL_stmt_fori PLpgSQL_stmt_fors + PLpgSQL_stmt_forc PLpgSQL_stmt_dynfors PLpgSQL_stmt_foreach_a + PLpgSQL_stmt_open PLpgSQL_stmt_fetch PLpgSQL_stmt_close + PLpgSQL_stmt_exit PLpgSQL_stmt_return PLpgSQL_stmt_return_next + PLpgSQL_stmt_return_query PLpgSQL_stmt_raise PLpgSQL_raise_option + PLpgSQL_stmt_assert PLpgSQL_stmt_execsql PLpgSQL_stmt_dynexecute + PLpgSQL_if_elsif PLpgSQL_case_when PLpgSQL_diag_item + PLpgSQL_stmt_perform PLpgSQL_stmt_call PLpgSQL_stmt_commit + PLpgSQL_stmt_rollback PLpgSQL_stmt_getdiag PLpgSQL_function + PLpgSQL_variable PLpgSQL_datum PLpgSQL_stmt + ] + + def generate! + generate_outmethods! + generate_readmethods! + generate_protobuf! + generate_enum_funcs! + + # Write output files + write_protobuf_addon! + write_outfuncs! + write_readfuncs! + write_enum_defs! + write_api! + write_header! + + puts "Generated PLpgSQL protobuf files" + end + + def proto_type_for(c_type, name) + case c_type + when 'bool' + 'bool' + when 'int', 'int32', 'int16' + 'int32' + when 'unsigned int', 'uint32' + 'uint32' + when 'long' + 'int64' + when 'char*' + 'string' + when 'char' + 'string' + when 'List*' + 'repeated PLpgSQL_stmt' # Most lists are statement lists + when 'PLpgSQL_expr*' + 'PLpgSQL_expr' + when 'PLpgSQL_type*' + 'PLpgSQL_type' + when 'PLpgSQL_var*' + 'PLpgSQL_var' + when 'PLpgSQL_variable*' + 'PLpgSQL_datum' # Use the oneof wrapper + when 'PLpgSQL_condition*' + 'PLpgSQL_condition' + when 'PLpgSQL_exception_block*' + 'PLpgSQL_exception_block' + when 'PLpgSQL_stmt_block*' + 'PLpgSQL_stmt_block' + when 'int*' + nil # Skip, handled specially with count field + when 'char**' + nil # Skip, handled specially with count field + when 'FetchDirection' + 'int32' # Enum from access/sdir.h + when 'RawParseMode' + 'int32' # Enum from parser/parser.h + when /^PLpgSQL_(\w+)$/ + # Check if it's an enum + if PLPGSQL_ENUMS.include?(c_type) + c_type + else + c_type # Struct type + end + else + nil # Unknown type, skip + end + end + + def generate_outmethods! + @outmethods = {} + + (@struct_defs.keys - SKIP_STRUCTS).each do |struct_name| + struct_def = @struct_defs[struct_name] + @outmethods[struct_name] = '' + + proto_field_count = 1 + struct_def['fields'].each do |field_def| + name = field_def['name'] + c_type = field_def['c_type'] + + next unless name && c_type + + outname = underscore(name) + + case c_type + when 'bool' + @outmethods[struct_name] += " WRITE_BOOL_FIELD(#{outname}, #{name}, #{name});\n" + when 'int', 'int32', 'int16', 'unsigned int' + @outmethods[struct_name] += " WRITE_INT_FIELD(#{outname}, #{name}, #{name});\n" + when 'long' + @outmethods[struct_name] += " WRITE_LONG_FIELD(#{outname}, #{name}, #{name});\n" + when 'char*' + @outmethods[struct_name] += " WRITE_STRING_FIELD(#{outname}, #{name}, #{name});\n" + when 'char' + @outmethods[struct_name] += " WRITE_CHAR_FIELD(#{outname}, #{name}, #{name});\n" + when 'PLpgSQL_expr*' + @outmethods[struct_name] += " WRITE_PLPGSQL_EXPR_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_type*' + @outmethods[struct_name] += " WRITE_PLPGSQL_TYPE_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_var*' + @outmethods[struct_name] += " WRITE_PLPGSQL_VAR_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_variable*' + @outmethods[struct_name] += " WRITE_PLPGSQL_DATUM_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_condition*' + @outmethods[struct_name] += " WRITE_PLPGSQL_CONDITION_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_exception_block*' + @outmethods[struct_name] += " WRITE_PLPGSQL_EXCEPTION_BLOCK_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_stmt_block*' + @outmethods[struct_name] += " WRITE_PLPGSQL_STMT_BLOCK_FIELD(#{outname}, #{name});\n" + when 'List*' + # Determine list type based on field name + if name.include?('stmt') || name == 'body' || name == 'action' || name == 'then_body' || name == 'else_body' || name == 'else_stmts' + @outmethods[struct_name] += " WRITE_PLPGSQL_STMT_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'exc_list' + @outmethods[struct_name] += " WRITE_PLPGSQL_EXCEPTION_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'elsif_list' + @outmethods[struct_name] += " WRITE_PLPGSQL_IF_ELSIF_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'case_when_list' + @outmethods[struct_name] += " WRITE_PLPGSQL_CASE_WHEN_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'diag_items' + @outmethods[struct_name] += " WRITE_PLPGSQL_DIAG_ITEM_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'params' + @outmethods[struct_name] += " WRITE_PLPGSQL_EXPR_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'options' + @outmethods[struct_name] += " WRITE_PLPGSQL_RAISE_OPTION_LIST_FIELD(#{outname}, #{name});\n" + else + @outmethods[struct_name] += " /* TODO: #{name} List* */\n" + end + when 'int*', 'char**' + # Skip - not included in proto (arrays with count field need special handling) + next + when 'FetchDirection', 'RawParseMode' + @outmethods[struct_name] += " WRITE_INT_FIELD(#{outname}, #{name}, #{name});\n" + when 'PLpgSQL_stmt_type', 'PLpgSQL_datum_type', 'PLpgSQL_type_type', + 'PLpgSQL_promise_type', 'PLpgSQL_getdiag_kind', 'PLpgSQL_raise_option_type', + 'PLpgSQL_resolve_option', 'PLpgSQL_trigtype' + @outmethods[struct_name] += " WRITE_PLPGSQL_ENUM_FIELD(#{c_type}, #{outname}, #{name});\n" + else + @outmethods[struct_name] += " /* TODO: #{name} #{c_type} */\n" + end + end + end + end + + def generate_readmethods! + @readmethods = {} + + (@struct_defs.keys - SKIP_STRUCTS).each do |struct_name| + struct_def = @struct_defs[struct_name] + @readmethods[struct_name] = '' + + struct_def['fields'].each do |field_def| + name = field_def['name'] + c_type = field_def['c_type'] + + next unless name && c_type + + outname = underscore(name) + + case c_type + when 'bool' + @readmethods[struct_name] += " READ_BOOL_FIELD(#{outname}, #{name});\n" + when 'int', 'int32', 'int16', 'unsigned int' + @readmethods[struct_name] += " READ_INT_FIELD(#{outname}, #{name});\n" + when 'long' + @readmethods[struct_name] += " READ_LONG_FIELD(#{outname}, #{name});\n" + when 'char*' + @readmethods[struct_name] += " READ_STRING_FIELD(#{outname}, #{name});\n" + when 'char' + @readmethods[struct_name] += " READ_CHAR_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_expr*' + @readmethods[struct_name] += " READ_PLPGSQL_EXPR_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_type*' + @readmethods[struct_name] += " READ_PLPGSQL_TYPE_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_var*' + @readmethods[struct_name] += " READ_PLPGSQL_VAR_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_variable*' + @readmethods[struct_name] += " READ_PLPGSQL_DATUM_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_condition*' + @readmethods[struct_name] += " READ_PLPGSQL_CONDITION_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_exception_block*' + @readmethods[struct_name] += " READ_PLPGSQL_EXCEPTION_BLOCK_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_stmt_block*' + @readmethods[struct_name] += " READ_PLPGSQL_STMT_BLOCK_FIELD(#{outname}, #{name});\n" + when 'List*' + if name.include?('stmt') || name == 'body' || name == 'action' || name == 'then_body' || name == 'else_body' || name == 'else_stmts' + @readmethods[struct_name] += " READ_PLPGSQL_STMT_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'exc_list' + @readmethods[struct_name] += " READ_PLPGSQL_EXCEPTION_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'elsif_list' + @readmethods[struct_name] += " READ_PLPGSQL_IF_ELSIF_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'case_when_list' + @readmethods[struct_name] += " READ_PLPGSQL_CASE_WHEN_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'diag_items' + @readmethods[struct_name] += " READ_PLPGSQL_DIAG_ITEM_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'params' + @readmethods[struct_name] += " READ_PLPGSQL_EXPR_LIST_FIELD(#{outname}, #{name});\n" + elsif name == 'options' + @readmethods[struct_name] += " READ_PLPGSQL_RAISE_OPTION_LIST_FIELD(#{outname}, #{name});\n" + else + @readmethods[struct_name] += " /* TODO: #{name} List* */\n" + end + when 'int*', 'char**' + # Skip - not included in proto + next + when 'FetchDirection', 'RawParseMode' + @readmethods[struct_name] += " READ_INT_FIELD(#{outname}, #{name});\n" + when 'PLpgSQL_stmt_type', 'PLpgSQL_datum_type', 'PLpgSQL_type_type', + 'PLpgSQL_promise_type', 'PLpgSQL_getdiag_kind', 'PLpgSQL_raise_option_type', + 'PLpgSQL_resolve_option', 'PLpgSQL_trigtype' + @readmethods[struct_name] += " READ_PLPGSQL_ENUM_FIELD(#{c_type}, #{outname}, #{name});\n" + else + @readmethods[struct_name] += " /* TODO: #{name} #{c_type} */\n" + end + end + end + end + + def generate_protobuf! + @protobuf_messages = {} + @protobuf_enums = {} + + # Generate protobuf messages for each struct + (@struct_defs.keys - SKIP_STRUCTS).each do |struct_name| + struct_def = @struct_defs[struct_name] + @protobuf_messages[struct_name] = '' + + proto_field_count = 1 + struct_def['fields'].each do |field_def| + name = field_def['name'] + c_type = field_def['c_type'] + + next unless name && c_type + + outname = underscore(name) + proto_type = proto_type_for(c_type, name) + + if proto_type + # Handle list fields specially + if c_type == 'List*' + if name.include?('stmt') || name == 'body' || name == 'action' || name == 'then_body' || name == 'else_body' || name == 'else_stmts' + @protobuf_messages[struct_name] += " repeated PLpgSQL_stmt #{outname} = #{proto_field_count};\n" + elsif name == 'exc_list' + @protobuf_messages[struct_name] += " repeated PLpgSQL_exception #{outname} = #{proto_field_count};\n" + elsif name == 'elsif_list' + @protobuf_messages[struct_name] += " repeated PLpgSQL_if_elsif #{outname} = #{proto_field_count};\n" + elsif name == 'case_when_list' + @protobuf_messages[struct_name] += " repeated PLpgSQL_case_when #{outname} = #{proto_field_count};\n" + elsif name == 'diag_items' + @protobuf_messages[struct_name] += " repeated PLpgSQL_diag_item #{outname} = #{proto_field_count};\n" + elsif name == 'params' + @protobuf_messages[struct_name] += " repeated PLpgSQL_expr #{outname} = #{proto_field_count};\n" + elsif name == 'options' + @protobuf_messages[struct_name] += " repeated PLpgSQL_raise_option #{outname} = #{proto_field_count};\n" + else + @protobuf_messages[struct_name] += " /* TODO: #{name} List* */ int32 #{outname}_placeholder = #{proto_field_count};\n" + end + elsif c_type == 'int*' + # Skip - handled separately with array + next + elsif c_type == 'char**' + # Skip - handled separately with array + next + else + @protobuf_messages[struct_name] += " #{proto_type} #{outname} = #{proto_field_count};\n" + end + proto_field_count += 1 + end + end + end + + # Generate protobuf enums + @enum_defs.each do |enum_name, enum_def| + @protobuf_enums[enum_name] = "enum #{enum_name} {\n" + @protobuf_enums[enum_name] += " #{underscore(enum_name).upcase}_UNDEFINED = 0;\n" + + proto_value = 1 + enum_def['values'].each do |value| + next unless value['name'] + @protobuf_enums[enum_name] += " #{value['name']} = #{proto_value};\n" + proto_value += 1 + end + + @protobuf_enums[enum_name] += "}\n" + end + end + + def generate_enum_funcs! + @enum_to_ints = {} + @int_to_enums = {} + + @enum_defs.each do |enum_name, enum_def| + @enum_to_ints[enum_name] = "static int\n_plpgsqlEnumToInt#{enum_name}(#{enum_name} value) {\n switch(value) {\n" + @int_to_enums[enum_name] = "static #{enum_name}\n_plpgsqlIntToEnum#{enum_name}(int value) {\n switch(value) {\n" + + proto_value = 1 + first_value = nil + enum_def['values'].each do |value| + next unless value['name'] + first_value ||= value['name'] + @enum_to_ints[enum_name] += " case #{value['name']}: return #{proto_value};\n" + @int_to_enums[enum_name] += " case #{proto_value}: return #{value['name']};\n" + proto_value += 1 + end + + @enum_to_ints[enum_name] += " }\n return 0;\n}\n" + @int_to_enums[enum_name] += " }\n return #{first_value || 0};\n}\n" + end + end + + def write_protobuf_addon! + stmt_oneof_fields = [] + STMT_TYPE_MAP.each_with_index do |(enum_val, struct_name), idx| + field_name = underscore(struct_name.gsub('PLpgSQL_', '')) + # Avoid naming conflict with protobuf oneof discriminator (stmt_case) + field_name = "stmt_case_" if field_name == "stmt_case" + stmt_oneof_fields << " #{struct_name} #{field_name} = #{idx + 1};" + end + + datum_oneof_fields = [] + seen_datums = {} + DATUM_TYPE_MAP.each_with_index do |(enum_val, struct_name), idx| + next if seen_datums[struct_name] + seen_datums[struct_name] = true + field_name = underscore(struct_name.gsub('PLpgSQL_', '')) + datum_oneof_fields << " #{struct_name} #{field_name} = #{idx + 1};" + end + + proto = <<~PROTO +// PLpgSQL Protobuf Definitions +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +message PLpgSQLParseResult { + int32 version = 1; + repeated PLpgSQL_function plpgsql_funcs = 2; +} + +// PLpgSQL statement wrapper with oneof for polymorphism +message PLpgSQL_stmt { + oneof stmt { +#{stmt_oneof_fields.join("\n")} + } +} + +// PLpgSQL datum wrapper with oneof for polymorphism +message PLpgSQL_datum { + oneof datum { +#{datum_oneof_fields.join("\n")} + } +} + +// PLpgSQL Messages + +#{@protobuf_messages.map { |name, fields| "message #{name} {\n#{fields}}\n" }.join("\n")} + +// PLpgSQL Enums + +#{@protobuf_enums.values.join("\n")} +PROTO + + File.write('./src/include/pg_query_plpgsql_protobuf.proto', proto) + end + + def write_outfuncs! + out_defs = '' + out_impls = '' + + (@struct_defs.keys - SKIP_STRUCTS).each do |struct_name| + c_type = struct_name + protobuf_type = protobuf_c_type_name(struct_name) + + out_defs += "static void _out#{c_type}(PgQuery__#{protobuf_type} *out, const #{struct_name} *node);\n" + + out_impls += "static void\n" + out_impls += "_out#{c_type}(PgQuery__#{protobuf_type} *out, const #{struct_name} *node)\n" + out_impls += "{\n" + out_impls += @outmethods[struct_name] || '' + out_impls += "}\n\n" + end + + # Generate stmt dispatcher + stmt_dispatch = "static void\n_outPLpgSQL_stmt(PgQuery__PLpgSQLStmt *out, const PLpgSQL_stmt *node)\n{\n" + stmt_dispatch += " switch (node->cmd_type) {\n" + STMT_TYPE_MAP.each do |enum_val, struct_name| + field_name = underscore(struct_name.gsub('PLpgSQL_', '')) + protobuf_type = protobuf_c_type_name(struct_name) + func_name = protobuf_c_func_name(struct_name) + # Avoid naming conflict with protobuf oneof discriminator + proto_field_name = field_name == "stmt_case" ? "stmt_case_" : field_name + enum_suffix = field_name == "stmt_case" ? "STMT_CASE_" : field_name.upcase + stmt_dispatch += " case #{enum_val}:\n" + stmt_dispatch += " out->#{proto_field_name} = palloc0(sizeof(PgQuery__#{protobuf_type}));\n" + stmt_dispatch += " pg_query__#{func_name}__init(out->#{proto_field_name});\n" + stmt_dispatch += " _out#{struct_name}(out->#{proto_field_name}, (const #{struct_name} *) node);\n" + stmt_dispatch += " out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_#{enum_suffix};\n" + stmt_dispatch += " break;\n" + end + stmt_dispatch += " }\n}\n\n" + + # Generate datum dispatcher + datum_dispatch = "static void\n_outPLpgSQL_datum(PgQuery__PLpgSQLDatum *out, const PLpgSQL_datum *node)\n{\n" + datum_dispatch += " switch (node->dtype) {\n" + seen_datums = {} + DATUM_TYPE_MAP.each do |enum_val, struct_name| + next if seen_datums[struct_name] && enum_val != 'PLPGSQL_DTYPE_PROMISE' + seen_datums[struct_name] = true unless enum_val == 'PLPGSQL_DTYPE_PROMISE' + + field_name = underscore(struct_name.gsub('PLpgSQL_', '')) + protobuf_type = protobuf_c_type_name(struct_name) + func_name = protobuf_c_func_name(struct_name) + datum_dispatch += " case #{enum_val}:\n" + unless enum_val == 'PLPGSQL_DTYPE_PROMISE' + datum_dispatch += " out->#{field_name} = palloc0(sizeof(PgQuery__#{protobuf_type}));\n" + datum_dispatch += " pg_query__#{func_name}__init(out->#{field_name});\n" + datum_dispatch += " _out#{struct_name}(out->#{field_name}, (const #{struct_name} *) node);\n" + datum_dispatch += " out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_#{field_name.upcase};\n" + else + datum_dispatch += " out->var = palloc0(sizeof(PgQuery__PLpgSQLVar));\n" + datum_dispatch += " pg_query__plpg_sql_var__init(out->var);\n" + datum_dispatch += " _outPLpgSQL_var(out->var, (const PLpgSQL_var *) node);\n" + datum_dispatch += " out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_VAR;\n" + end + datum_dispatch += " break;\n" + end + datum_dispatch += " }\n}\n\n" + + # Forward declare dispatchers since they're used in macros + dispatcher_decls = <<~C +// Forward declarations for dispatchers (used by macros) +static void _outPLpgSQL_stmt(PgQuery__PLpgSQLStmt *out, const PLpgSQL_stmt *node); +static void _outPLpgSQL_datum(PgQuery__PLpgSQLDatum *out, const PLpgSQL_datum *node); +C + + content = <<~C +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +#{dispatcher_decls} + +#{out_defs} + +#{stmt_dispatch} + +#{datum_dispatch} + +#{out_impls} +C + + File.write('./src/include/pg_query_outfuncs_plpgsql_defs.c', content) + end + + def write_readfuncs! + read_defs = '' + read_impls = '' + + (@struct_defs.keys - SKIP_STRUCTS).each do |struct_name| + c_type = struct_name + protobuf_type = protobuf_c_type_name(struct_name) + + read_defs += "static #{struct_name} * _read#{c_type}(const PgQuery__#{protobuf_type} *msg);\n" + + read_impls += "static #{struct_name} *\n" + read_impls += "_read#{c_type}(const PgQuery__#{protobuf_type} *msg)\n" + read_impls += "{\n" + read_impls += " #{struct_name} *node = palloc0(sizeof(#{struct_name}));\n" + read_impls += @readmethods[struct_name] || '' + read_impls += " return node;\n" + read_impls += "}\n\n" + end + + # Generate stmt reader dispatcher + stmt_read = "static PLpgSQL_stmt *\n_readPLpgSQL_stmt(const PgQuery__PLpgSQLStmt *msg)\n{\n" + stmt_read += " switch (msg->stmt_case) {\n" + STMT_TYPE_MAP.each do |enum_val, struct_name| + field_name = underscore(struct_name.gsub('PLpgSQL_', '')) + # Avoid naming conflict with protobuf oneof discriminator + proto_field_name = field_name == "stmt_case" ? "stmt_case_" : field_name + enum_suffix = field_name == "stmt_case" ? "STMT_CASE_" : field_name.upcase + stmt_read += " case PG_QUERY__PLPG_SQL_STMT__STMT_#{enum_suffix}:\n" + stmt_read += " return (PLpgSQL_stmt *) _read#{struct_name}(msg->#{proto_field_name});\n" + end + stmt_read += " default:\n" + stmt_read += " return NULL;\n" + stmt_read += " }\n}\n\n" + + # Generate datum reader dispatcher + datum_read = "static PLpgSQL_datum *\n_readPLpgSQL_datum(const PgQuery__PLpgSQLDatum *msg)\n{\n" + datum_read += " switch (msg->datum_case) {\n" + seen_datums = {} + DATUM_TYPE_MAP.each do |enum_val, struct_name| + next if seen_datums[struct_name] + seen_datums[struct_name] = true + + field_name = underscore(struct_name.gsub('PLpgSQL_', '')) + datum_read += " case PG_QUERY__PLPG_SQL_DATUM__DATUM_#{field_name.upcase}:\n" + datum_read += " return (PLpgSQL_datum *) _read#{struct_name}(msg->#{field_name});\n" + end + datum_read += " default:\n" + datum_read += " return NULL;\n" + datum_read += " }\n}\n\n" + + # Forward declare dispatchers + dispatcher_decls = <<~C +// Forward declarations for dispatchers +static PLpgSQL_stmt * _readPLpgSQL_stmt(const PgQuery__PLpgSQLStmt *msg); +static PLpgSQL_datum * _readPLpgSQL_datum(const PgQuery__PLpgSQLDatum *msg); +C + + content = <<~C +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +#{dispatcher_decls} + +#{read_defs} + +#{stmt_read} + +#{datum_read} + +#{read_impls} +C + + File.write('./src/include/pg_query_readfuncs_plpgsql_defs.c', content) + end + + def write_enum_defs! + content = <<~C +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +#{@enum_to_ints.values.join("\n")} + +#{@int_to_enums.values.join("\n")} +C + + File.write('./src/include/pg_query_plpgsql_enum_defs.c', content) + end + + def write_api! + content = <<~C +/* + * pg_query_parse_plpgsql_protobuf.c + * + * Public API for parsing PL/pgSQL to protobuf format. + * This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + */ + +#include +#include +#include +#include + +#include "pg_query.h" +#include "pg_query_internal.h" +#include "pg_query_json_plpgsql.h" + +#include +#include +#include +#include +#include +#include + +#include "protobuf/pg_query.pb-c.h" + +// Include generated outfuncs macros +#include "pg_query_outfuncs_plpgsql.c" + +typedef struct { + PLpgSQL_function *func; + PgQueryError* error; +} PgQueryInternalPlpgsqlFuncAndError; + +/* Forward declaration from pg_query_parse_plpgsql.c */ +extern PgQueryInternalPlpgsqlFuncAndError pg_query_raw_parse_plpgsql(Node* stmt); + +typedef struct plStmts +{ + Node **stmts; + int stmts_buf_size; + int stmts_count; +} plStmts; + +static bool stmts_walker(Node *node, plStmts *state) +{ + bool result; + MemoryContext ccxt = CurrentMemoryContext; + + if (node == NULL) return false; + + if (IsA(node, CreateFunctionStmt) || IsA(node, DoStmt)) + { + if (state->stmts_count >= state->stmts_buf_size) + { + state->stmts_buf_size *= 2; + state->stmts = (Node**) repalloc(state->stmts, state->stmts_buf_size * sizeof(Node*)); + } + state->stmts[state->stmts_count] = (Node *) node; + state->stmts_count++; + } else if (IsA(node, RawStmt)) { + return stmts_walker((Node *) ((RawStmt *) node)->stmt, state); + } + + PG_TRY(); + { + result = raw_expression_tree_walker(node, stmts_walker, (void*) state); + } + PG_CATCH(); + { + MemoryContextSwitchTo(ccxt); + FlushErrorState(); + result = false; + } + PG_END_TRY(); + + return result; +} + +PgQueryPlpgsqlProtobufParseResult pg_query_parse_plpgsql_protobuf(const char* input) +{ + MemoryContext ctx = NULL; + PgQueryPlpgsqlProtobufParseResult result = {0}; + PgQueryInternalParsetreeAndError parse_result; + plStmts statements; + size_t i; + PgQuery__PLpgSQLParseResult *parse_result_msg; + + ctx = pg_query_enter_memory_context(); + + /* Parse the SQL input first to find CREATE FUNCTION/DO statements */ + parse_result = pg_query_raw_parse(input, PG_QUERY_PARSE_DEFAULT); + result.error = parse_result.error; + if (result.error != NULL) { + pg_query_exit_memory_context(ctx); + return result; + } + + statements.stmts_buf_size = 100; + statements.stmts = (Node**) palloc(statements.stmts_buf_size * sizeof(Node*)); + statements.stmts_count = 0; + + stmts_walker((Node*) parse_result.tree, &statements); + + /* Create the protobuf result message */ + parse_result_msg = palloc0(sizeof(PgQuery__PLpgSQLParseResult)); + pg_query__plpg_sqlparse_result__init(parse_result_msg); + parse_result_msg->version = PG_VERSION_NUM; + + if (statements.stmts_count == 0) { + parse_result_msg->n_plpgsql_funcs = 0; + parse_result_msg->plpgsql_funcs = NULL; + } else { + parse_result_msg->n_plpgsql_funcs = statements.stmts_count; + parse_result_msg->plpgsql_funcs = palloc0(statements.stmts_count * sizeof(PgQuery__PLpgSQLFunction*)); + + for (i = 0; i < statements.stmts_count; i++) { + PgQueryInternalPlpgsqlFuncAndError func_and_error; + + func_and_error = pg_query_raw_parse_plpgsql(statements.stmts[i]); + + result.error = func_and_error.error; + if (result.error != NULL) { + pg_query_exit_memory_context(ctx); + return result; + } + + if (func_and_error.func != NULL) { + parse_result_msg->plpgsql_funcs[i] = palloc0(sizeof(PgQuery__PLpgSQLFunction)); + pg_query__plpg_sql_function__init(parse_result_msg->plpgsql_funcs[i]); + _outPLpgSQL_function(parse_result_msg->plpgsql_funcs[i], func_and_error.func); + plpgsql_free_function_memory(func_and_error.func); + } + } + } + + /* Pack the protobuf message */ + result.parse_tree.len = pg_query__plpg_sqlparse_result__get_packed_size(parse_result_msg); + result.parse_tree.data = malloc(result.parse_tree.len); + pg_query__plpg_sqlparse_result__pack(parse_result_msg, (uint8_t*) result.parse_tree.data); + + /* Copy stderr buffer if present */ + if (parse_result.stderr_buffer != NULL) { + result.stderr_buffer = strdup(parse_result.stderr_buffer); + free(parse_result.stderr_buffer); + } + + pg_query_exit_memory_context(ctx); + + return result; +} + +void pg_query_free_plpgsql_protobuf_parse_result(PgQueryPlpgsqlProtobufParseResult result) +{ + if (result.error) { + pg_query_free_error(result.error); + } + + if (result.parse_tree.data) { + free(result.parse_tree.data); + } + + if (result.stderr_buffer) { + free(result.stderr_buffer); + } +} + +char* pg_query_plpgsql_protobuf_to_json(PgQueryProtobuf protobuf) +{ + MemoryContext ctx = NULL; + PgQuery__PLpgSQLParseResult *parse_result; + char *json_result; + size_t i; + size_t json_len; + + ctx = pg_query_enter_memory_context(); + + /* Unpack the protobuf */ + parse_result = pg_query__plpg_sqlparse_result__unpack(NULL, + protobuf.len, (const uint8_t*) protobuf.data); + + if (parse_result == NULL) { + pg_query_exit_memory_context(ctx); + return strdup("[]"); + } + + if (parse_result->n_plpgsql_funcs == 0) { + pg_query__plpg_sqlparse_result__free_unpacked(parse_result, NULL); + pg_query_exit_memory_context(ctx); + return strdup("[]"); + } + + /* Build JSON array - reuse existing JSON conversion by converting back to PLpgSQL_function */ + json_result = strdup("[\\n"); + + for (i = 0; i < parse_result->n_plpgsql_funcs; i++) { + PLpgSQL_function *func; + char *func_json; + char *new_out; + size_t new_out_len; + + func = _readPLpgSQL_function(parse_result->plpgsql_funcs[i]); + func_json = plpgsqlToJSON(func); + + new_out_len = strlen(json_result) + strlen(func_json) + 3; + new_out = malloc(new_out_len); + snprintf(new_out, new_out_len, "%s%s,\\n", json_result, func_json); + free(json_result); + pfree(func_json); + json_result = new_out; + } + + /* Fix trailing comma */ + json_len = strlen(json_result); + if (json_len >= 2) { + json_result[json_len - 2] = '\\n'; + json_result[json_len - 1] = ']'; + } + + pg_query__plpg_sqlparse_result__free_unpacked(parse_result, NULL); + pg_query_exit_memory_context(ctx); + + return json_result; +} +C + + File.write('./src/pg_query_parse_plpgsql_protobuf.c', content) + end + + def write_header! + content = <<~C +/* + * pg_query_outfuncs_plpgsql.c + * + * PLpgSQL to protobuf serialization. + * This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + */ + +#include "pg_query.h" +#include "pg_query_internal.h" + +#include + +#include "protobuf/pg_query.pb-c.h" + +// Macros for writing PLpgSQL fields to protobuf +#define WRITE_BOOL_FIELD(outname, json_name, field) \\ + out->outname = node->field + +#define WRITE_INT_FIELD(outname, json_name, field) \\ + out->outname = node->field + +#define WRITE_LONG_FIELD(outname, json_name, field) \\ + out->outname = node->field + +#define WRITE_STRING_FIELD(outname, json_name, field) \\ + if (node->field != NULL) out->outname = pstrdup(node->field) + +#define WRITE_CHAR_FIELD(outname, json_name, field) \\ + { char buf[2] = {node->field, '\\0'}; out->outname = pstrdup(buf); } + +#define WRITE_PLPGSQL_ENUM_FIELD(enum_type, outname, field) \\ + out->outname = _plpgsqlEnumToInt##enum_type(node->field) + +#define WRITE_PLPGSQL_EXPR_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLExpr)); \\ + pg_query__plpg_sql_expr__init(out->outname); \\ + _outPLpgSQL_expr(out->outname, node->field); \\ + } + +#define WRITE_PLPGSQL_TYPE_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLType)); \\ + pg_query__plpg_sql_type__init(out->outname); \\ + _outPLpgSQL_type(out->outname, node->field); \\ + } + +#define WRITE_PLPGSQL_VAR_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLVar)); \\ + pg_query__plpg_sql_var__init(out->outname); \\ + _outPLpgSQL_var(out->outname, node->field); \\ + } + +#define WRITE_PLPGSQL_DATUM_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLDatum)); \\ + pg_query__plpg_sql_datum__init(out->outname); \\ + _outPLpgSQL_datum(out->outname, (PLpgSQL_datum *) node->field); \\ + } + +#define WRITE_PLPGSQL_CONDITION_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLCondition)); \\ + pg_query__plpg_sql_condition__init(out->outname); \\ + _outPLpgSQL_condition(out->outname, node->field); \\ + } + +#define WRITE_PLPGSQL_EXCEPTION_BLOCK_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLExceptionBlock)); \\ + pg_query__plpg_sql_exception_block__init(out->outname); \\ + _outPLpgSQL_exception_block(out->outname, node->field); \\ + } + +#define WRITE_PLPGSQL_STMT_BLOCK_FIELD(outname, field) \\ + if (node->field != NULL) { \\ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLStmtBlock)); \\ + pg_query__plpg_sql_stmt_block__init(out->outname); \\ + _outPLpgSQL_stmt_block(out->outname, node->field); \\ + } + +#define WRITE_PLPGSQL_STMT_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLStmt*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_stmt *stmt = (PLpgSQL_stmt *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLStmt)); \\ + pg_query__plpg_sql_stmt__init(out->outname[i]); \\ + _outPLpgSQL_stmt(out->outname[i], stmt); \\ + i++; \\ + } \\ + } + +#define WRITE_PLPGSQL_EXCEPTION_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLException*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_exception *exc = (PLpgSQL_exception *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLException)); \\ + pg_query__plpg_sql_exception__init(out->outname[i]); \\ + _outPLpgSQL_exception(out->outname[i], exc); \\ + i++; \\ + } \\ + } + +#define WRITE_PLPGSQL_IF_ELSIF_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLIfElsif*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_if_elsif *elsif = (PLpgSQL_if_elsif *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLIfElsif)); \\ + pg_query__plpg_sql_if_elsif__init(out->outname[i]); \\ + _outPLpgSQL_if_elsif(out->outname[i], elsif); \\ + i++; \\ + } \\ + } + +#define WRITE_PLPGSQL_CASE_WHEN_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLCaseWhen*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_case_when *when = (PLpgSQL_case_when *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLCaseWhen)); \\ + pg_query__plpg_sql_case_when__init(out->outname[i]); \\ + _outPLpgSQL_case_when(out->outname[i], when); \\ + i++; \\ + } \\ + } + +#define WRITE_PLPGSQL_DIAG_ITEM_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLDiagItem*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_diag_item *item = (PLpgSQL_diag_item *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLDiagItem)); \\ + pg_query__plpg_sql_diag_item__init(out->outname[i]); \\ + _outPLpgSQL_diag_item(out->outname[i], item); \\ + i++; \\ + } \\ + } + +#define WRITE_PLPGSQL_EXPR_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLExpr*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_expr *expr = (PLpgSQL_expr *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLExpr)); \\ + pg_query__plpg_sql_expr__init(out->outname[i]); \\ + _outPLpgSQL_expr(out->outname[i], expr); \\ + i++; \\ + } \\ + } + +#define WRITE_PLPGSQL_RAISE_OPTION_LIST_FIELD(outname, field) \\ + if (node->field != NIL) { \\ + ListCell *lc; \\ + int i = 0; \\ + out->n_##outname = list_length(node->field); \\ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLRaiseOption*)); \\ + foreach(lc, node->field) { \\ + PLpgSQL_raise_option *opt = (PLpgSQL_raise_option *) lfirst(lc); \\ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLRaiseOption)); \\ + pg_query__plpg_sql_raise_option__init(out->outname[i]); \\ + _outPLpgSQL_raise_option(out->outname[i], opt); \\ + i++; \\ + } \\ + } + +#define WRITE_INT_ARRAY_FIELD(outname, field, count_field) \\ + if (node->field != NULL && node->count_field > 0) { \\ + int i; \\ + out->n_##outname = node->count_field; \\ + out->outname = palloc0(out->n_##outname * sizeof(int32_t)); \\ + for (i = 0; i < node->count_field; i++) { \\ + out->outname[i] = node->field[i]; \\ + } \\ + } + +#define WRITE_STRING_ARRAY_FIELD(outname, field, count_field) \\ + if (node->field != NULL && node->count_field > 0) { \\ + int i; \\ + out->n_##outname = node->count_field; \\ + out->outname = palloc0(out->n_##outname * sizeof(char*)); \\ + for (i = 0; i < node->count_field; i++) { \\ + if (node->field[i] != NULL) \\ + out->outname[i] = pstrdup(node->field[i]); \\ + } \\ + } + +// READ macros for deserialization + +#define READ_BOOL_FIELD(protoname, field) \\ + node->field = msg->protoname + +#define READ_INT_FIELD(protoname, field) \\ + node->field = msg->protoname + +#define READ_LONG_FIELD(protoname, field) \\ + node->field = msg->protoname + +#define READ_STRING_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = pstrdup(msg->protoname) + +#define READ_CHAR_FIELD(protoname, field) \\ + if (msg->protoname != NULL && msg->protoname[0] != '\\0') node->field = msg->protoname[0] + +#define READ_PLPGSQL_ENUM_FIELD(enum_type, protoname, field) \\ + node->field = _plpgsqlIntToEnum##enum_type(msg->protoname) + +#define READ_PLPGSQL_EXPR_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = _readPLpgSQL_expr(msg->protoname) + +#define READ_PLPGSQL_TYPE_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = _readPLpgSQL_type(msg->protoname) + +#define READ_PLPGSQL_VAR_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = _readPLpgSQL_var(msg->protoname) + +#define READ_PLPGSQL_DATUM_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = (PLpgSQL_variable *) _readPLpgSQL_datum(msg->protoname) + +#define READ_PLPGSQL_CONDITION_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = _readPLpgSQL_condition(msg->protoname) + +#define READ_PLPGSQL_EXCEPTION_BLOCK_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = _readPLpgSQL_exception_block(msg->protoname) + +#define READ_PLPGSQL_STMT_BLOCK_FIELD(protoname, field) \\ + if (msg->protoname != NULL) node->field = _readPLpgSQL_stmt_block(msg->protoname) + +#define READ_PLPGSQL_STMT_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_stmt *stmt = _readPLpgSQL_stmt(msg->protoname[i]); \\ + node->field = lappend(node->field, stmt); \\ + } \\ + } + +#define READ_PLPGSQL_EXCEPTION_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_exception *exc = _readPLpgSQL_exception(msg->protoname[i]); \\ + node->field = lappend(node->field, exc); \\ + } \\ + } + +#define READ_PLPGSQL_IF_ELSIF_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_if_elsif *elsif = _readPLpgSQL_if_elsif(msg->protoname[i]); \\ + node->field = lappend(node->field, elsif); \\ + } \\ + } + +#define READ_PLPGSQL_CASE_WHEN_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_case_when *when = _readPLpgSQL_case_when(msg->protoname[i]); \\ + node->field = lappend(node->field, when); \\ + } \\ + } + +#define READ_PLPGSQL_DIAG_ITEM_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_diag_item *item = _readPLpgSQL_diag_item(msg->protoname[i]); \\ + node->field = lappend(node->field, item); \\ + } \\ + } + +#define READ_PLPGSQL_EXPR_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_expr *expr = _readPLpgSQL_expr(msg->protoname[i]); \\ + node->field = lappend(node->field, expr); \\ + } \\ + } + +#define READ_PLPGSQL_RAISE_OPTION_LIST_FIELD(protoname, field) \\ + if (msg->n_##protoname > 0) { \\ + int i; \\ + node->field = NIL; \\ + for (i = 0; i < msg->n_##protoname; i++) { \\ + PLpgSQL_raise_option *opt = _readPLpgSQL_raise_option(msg->protoname[i]); \\ + node->field = lappend(node->field, opt); \\ + } \\ + } + +// Include generated enum conversion functions +#include "include/pg_query_plpgsql_enum_defs.c" + +// Include generated outfuncs definitions +#include "include/pg_query_outfuncs_plpgsql_defs.c" + +// Include generated readfuncs definitions +#include "include/pg_query_readfuncs_plpgsql_defs.c" + +// Public API +PgQueryProtobuf +pg_query_plpgsql_funcs_to_protobuf(PLpgSQL_function **funcs, int nfuncs) +{ + PgQueryProtobuf protobuf = {0}; + int i; + PgQuery__PLpgSQLParseResult parse_result = PG_QUERY__PLPG_SQLPARSE_RESULT__INIT; + + parse_result.version = PG_VERSION_NUM; + + if (funcs == NULL || nfuncs == 0) + { + parse_result.n_plpgsql_funcs = 0; + parse_result.plpgsql_funcs = NULL; + } + else + { + parse_result.n_plpgsql_funcs = nfuncs; + parse_result.plpgsql_funcs = palloc(sizeof(PgQuery__PLpgSQLFunction*) * nfuncs); + + for (i = 0; i < nfuncs; i++) + { + parse_result.plpgsql_funcs[i] = palloc(sizeof(PgQuery__PLpgSQLFunction)); + pg_query__plpg_sql_function__init(parse_result.plpgsql_funcs[i]); + _outPLpgSQL_function(parse_result.plpgsql_funcs[i], funcs[i]); + } + } + + protobuf.len = pg_query__plpg_sqlparse_result__get_packed_size(&parse_result); + protobuf.data = malloc(sizeof(char) * protobuf.len); + pg_query__plpg_sqlparse_result__pack(&parse_result, (void*) protobuf.data); + + return protobuf; +} +C + + File.write('./src/pg_query_outfuncs_plpgsql.c', content) + end +end + +PLpgSQLGenerator.new.generate! diff --git a/src/include/pg_query_outfuncs_plpgsql_defs.c b/src/include/pg_query_outfuncs_plpgsql_defs.c new file mode 100644 index 000000000..1d38b5bee --- /dev/null +++ b/src/include/pg_query_outfuncs_plpgsql_defs.c @@ -0,0 +1,684 @@ +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +// Forward declarations for dispatchers (used by macros) +static void _outPLpgSQL_stmt(PgQuery__PLpgSQLStmt *out, const PLpgSQL_stmt *node); +static void _outPLpgSQL_datum(PgQuery__PLpgSQLDatum *out, const PLpgSQL_datum *node); + + +static void _outPLpgSQL_type(PgQuery__PLpgSQLType *out, const PLpgSQL_type *node); +static void _outPLpgSQL_expr(PgQuery__PLpgSQLExpr *out, const PLpgSQL_expr *node); +static void _outPLpgSQL_var(PgQuery__PLpgSQLVar *out, const PLpgSQL_var *node); +static void _outPLpgSQL_row(PgQuery__PLpgSQLRow *out, const PLpgSQL_row *node); +static void _outPLpgSQL_rec(PgQuery__PLpgSQLRec *out, const PLpgSQL_rec *node); +static void _outPLpgSQL_recfield(PgQuery__PLpgSQLRecfield *out, const PLpgSQL_recfield *node); +static void _outPLpgSQL_condition(PgQuery__PLpgSQLCondition *out, const PLpgSQL_condition *node); +static void _outPLpgSQL_exception_block(PgQuery__PLpgSQLExceptionBlock *out, const PLpgSQL_exception_block *node); +static void _outPLpgSQL_exception(PgQuery__PLpgSQLException *out, const PLpgSQL_exception *node); +static void _outPLpgSQL_stmt_block(PgQuery__PLpgSQLStmtBlock *out, const PLpgSQL_stmt_block *node); +static void _outPLpgSQL_stmt_assign(PgQuery__PLpgSQLStmtAssign *out, const PLpgSQL_stmt_assign *node); +static void _outPLpgSQL_stmt_perform(PgQuery__PLpgSQLStmtPerform *out, const PLpgSQL_stmt_perform *node); +static void _outPLpgSQL_stmt_call(PgQuery__PLpgSQLStmtCall *out, const PLpgSQL_stmt_call *node); +static void _outPLpgSQL_stmt_commit(PgQuery__PLpgSQLStmtCommit *out, const PLpgSQL_stmt_commit *node); +static void _outPLpgSQL_stmt_rollback(PgQuery__PLpgSQLStmtRollback *out, const PLpgSQL_stmt_rollback *node); +static void _outPLpgSQL_diag_item(PgQuery__PLpgSQLDiagItem *out, const PLpgSQL_diag_item *node); +static void _outPLpgSQL_stmt_getdiag(PgQuery__PLpgSQLStmtGetdiag *out, const PLpgSQL_stmt_getdiag *node); +static void _outPLpgSQL_stmt_if(PgQuery__PLpgSQLStmtIf *out, const PLpgSQL_stmt_if *node); +static void _outPLpgSQL_if_elsif(PgQuery__PLpgSQLIfElsif *out, const PLpgSQL_if_elsif *node); +static void _outPLpgSQL_stmt_case(PgQuery__PLpgSQLStmtCase *out, const PLpgSQL_stmt_case *node); +static void _outPLpgSQL_case_when(PgQuery__PLpgSQLCaseWhen *out, const PLpgSQL_case_when *node); +static void _outPLpgSQL_stmt_loop(PgQuery__PLpgSQLStmtLoop *out, const PLpgSQL_stmt_loop *node); +static void _outPLpgSQL_stmt_while(PgQuery__PLpgSQLStmtWhile *out, const PLpgSQL_stmt_while *node); +static void _outPLpgSQL_stmt_fori(PgQuery__PLpgSQLStmtFori *out, const PLpgSQL_stmt_fori *node); +static void _outPLpgSQL_stmt_fors(PgQuery__PLpgSQLStmtFors *out, const PLpgSQL_stmt_fors *node); +static void _outPLpgSQL_stmt_forc(PgQuery__PLpgSQLStmtForc *out, const PLpgSQL_stmt_forc *node); +static void _outPLpgSQL_stmt_dynfors(PgQuery__PLpgSQLStmtDynfors *out, const PLpgSQL_stmt_dynfors *node); +static void _outPLpgSQL_stmt_foreach_a(PgQuery__PLpgSQLStmtForeachA *out, const PLpgSQL_stmt_foreach_a *node); +static void _outPLpgSQL_stmt_open(PgQuery__PLpgSQLStmtOpen *out, const PLpgSQL_stmt_open *node); +static void _outPLpgSQL_stmt_fetch(PgQuery__PLpgSQLStmtFetch *out, const PLpgSQL_stmt_fetch *node); +static void _outPLpgSQL_stmt_close(PgQuery__PLpgSQLStmtClose *out, const PLpgSQL_stmt_close *node); +static void _outPLpgSQL_stmt_exit(PgQuery__PLpgSQLStmtExit *out, const PLpgSQL_stmt_exit *node); +static void _outPLpgSQL_stmt_return(PgQuery__PLpgSQLStmtReturn *out, const PLpgSQL_stmt_return *node); +static void _outPLpgSQL_stmt_return_next(PgQuery__PLpgSQLStmtReturnNext *out, const PLpgSQL_stmt_return_next *node); +static void _outPLpgSQL_stmt_return_query(PgQuery__PLpgSQLStmtReturnQuery *out, const PLpgSQL_stmt_return_query *node); +static void _outPLpgSQL_stmt_raise(PgQuery__PLpgSQLStmtRaise *out, const PLpgSQL_stmt_raise *node); +static void _outPLpgSQL_raise_option(PgQuery__PLpgSQLRaiseOption *out, const PLpgSQL_raise_option *node); +static void _outPLpgSQL_stmt_assert(PgQuery__PLpgSQLStmtAssert *out, const PLpgSQL_stmt_assert *node); +static void _outPLpgSQL_stmt_execsql(PgQuery__PLpgSQLStmtExecsql *out, const PLpgSQL_stmt_execsql *node); +static void _outPLpgSQL_stmt_dynexecute(PgQuery__PLpgSQLStmtDynexecute *out, const PLpgSQL_stmt_dynexecute *node); +static void _outPLpgSQL_function(PgQuery__PLpgSQLFunction *out, const PLpgSQL_function *node); + + +static void +_outPLpgSQL_stmt(PgQuery__PLpgSQLStmt *out, const PLpgSQL_stmt *node) +{ + switch (node->cmd_type) { + case PLPGSQL_STMT_BLOCK: + out->stmt_block = palloc0(sizeof(PgQuery__PLpgSQLStmtBlock)); + pg_query__plpg_sql_stmt_block__init(out->stmt_block); + _outPLpgSQL_stmt_block(out->stmt_block, (const PLpgSQL_stmt_block *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_BLOCK; + break; + case PLPGSQL_STMT_ASSIGN: + out->stmt_assign = palloc0(sizeof(PgQuery__PLpgSQLStmtAssign)); + pg_query__plpg_sql_stmt_assign__init(out->stmt_assign); + _outPLpgSQL_stmt_assign(out->stmt_assign, (const PLpgSQL_stmt_assign *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ASSIGN; + break; + case PLPGSQL_STMT_IF: + out->stmt_if = palloc0(sizeof(PgQuery__PLpgSQLStmtIf)); + pg_query__plpg_sql_stmt_if__init(out->stmt_if); + _outPLpgSQL_stmt_if(out->stmt_if, (const PLpgSQL_stmt_if *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_IF; + break; + case PLPGSQL_STMT_CASE: + out->stmt_case_ = palloc0(sizeof(PgQuery__PLpgSQLStmtCase)); + pg_query__plpg_sql_stmt_case__init(out->stmt_case_); + _outPLpgSQL_stmt_case(out->stmt_case_, (const PLpgSQL_stmt_case *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CASE_; + break; + case PLPGSQL_STMT_LOOP: + out->stmt_loop = palloc0(sizeof(PgQuery__PLpgSQLStmtLoop)); + pg_query__plpg_sql_stmt_loop__init(out->stmt_loop); + _outPLpgSQL_stmt_loop(out->stmt_loop, (const PLpgSQL_stmt_loop *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_LOOP; + break; + case PLPGSQL_STMT_WHILE: + out->stmt_while = palloc0(sizeof(PgQuery__PLpgSQLStmtWhile)); + pg_query__plpg_sql_stmt_while__init(out->stmt_while); + _outPLpgSQL_stmt_while(out->stmt_while, (const PLpgSQL_stmt_while *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_WHILE; + break; + case PLPGSQL_STMT_FORI: + out->stmt_fori = palloc0(sizeof(PgQuery__PLpgSQLStmtFori)); + pg_query__plpg_sql_stmt_fori__init(out->stmt_fori); + _outPLpgSQL_stmt_fori(out->stmt_fori, (const PLpgSQL_stmt_fori *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORI; + break; + case PLPGSQL_STMT_FORS: + out->stmt_fors = palloc0(sizeof(PgQuery__PLpgSQLStmtFors)); + pg_query__plpg_sql_stmt_fors__init(out->stmt_fors); + _outPLpgSQL_stmt_fors(out->stmt_fors, (const PLpgSQL_stmt_fors *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORS; + break; + case PLPGSQL_STMT_FORC: + out->stmt_forc = palloc0(sizeof(PgQuery__PLpgSQLStmtForc)); + pg_query__plpg_sql_stmt_forc__init(out->stmt_forc); + _outPLpgSQL_stmt_forc(out->stmt_forc, (const PLpgSQL_stmt_forc *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORC; + break; + case PLPGSQL_STMT_FOREACH_A: + out->stmt_foreach_a = palloc0(sizeof(PgQuery__PLpgSQLStmtForeachA)); + pg_query__plpg_sql_stmt_foreach_a__init(out->stmt_foreach_a); + _outPLpgSQL_stmt_foreach_a(out->stmt_foreach_a, (const PLpgSQL_stmt_foreach_a *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FOREACH_A; + break; + case PLPGSQL_STMT_EXIT: + out->stmt_exit = palloc0(sizeof(PgQuery__PLpgSQLStmtExit)); + pg_query__plpg_sql_stmt_exit__init(out->stmt_exit); + _outPLpgSQL_stmt_exit(out->stmt_exit, (const PLpgSQL_stmt_exit *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_EXIT; + break; + case PLPGSQL_STMT_RETURN: + out->stmt_return = palloc0(sizeof(PgQuery__PLpgSQLStmtReturn)); + pg_query__plpg_sql_stmt_return__init(out->stmt_return); + _outPLpgSQL_stmt_return(out->stmt_return, (const PLpgSQL_stmt_return *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN; + break; + case PLPGSQL_STMT_RETURN_NEXT: + out->stmt_return_next = palloc0(sizeof(PgQuery__PLpgSQLStmtReturnNext)); + pg_query__plpg_sql_stmt_return_next__init(out->stmt_return_next); + _outPLpgSQL_stmt_return_next(out->stmt_return_next, (const PLpgSQL_stmt_return_next *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN_NEXT; + break; + case PLPGSQL_STMT_RETURN_QUERY: + out->stmt_return_query = palloc0(sizeof(PgQuery__PLpgSQLStmtReturnQuery)); + pg_query__plpg_sql_stmt_return_query__init(out->stmt_return_query); + _outPLpgSQL_stmt_return_query(out->stmt_return_query, (const PLpgSQL_stmt_return_query *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN_QUERY; + break; + case PLPGSQL_STMT_RAISE: + out->stmt_raise = palloc0(sizeof(PgQuery__PLpgSQLStmtRaise)); + pg_query__plpg_sql_stmt_raise__init(out->stmt_raise); + _outPLpgSQL_stmt_raise(out->stmt_raise, (const PLpgSQL_stmt_raise *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RAISE; + break; + case PLPGSQL_STMT_ASSERT: + out->stmt_assert = palloc0(sizeof(PgQuery__PLpgSQLStmtAssert)); + pg_query__plpg_sql_stmt_assert__init(out->stmt_assert); + _outPLpgSQL_stmt_assert(out->stmt_assert, (const PLpgSQL_stmt_assert *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ASSERT; + break; + case PLPGSQL_STMT_EXECSQL: + out->stmt_execsql = palloc0(sizeof(PgQuery__PLpgSQLStmtExecsql)); + pg_query__plpg_sql_stmt_execsql__init(out->stmt_execsql); + _outPLpgSQL_stmt_execsql(out->stmt_execsql, (const PLpgSQL_stmt_execsql *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_EXECSQL; + break; + case PLPGSQL_STMT_DYNEXECUTE: + out->stmt_dynexecute = palloc0(sizeof(PgQuery__PLpgSQLStmtDynexecute)); + pg_query__plpg_sql_stmt_dynexecute__init(out->stmt_dynexecute); + _outPLpgSQL_stmt_dynexecute(out->stmt_dynexecute, (const PLpgSQL_stmt_dynexecute *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_DYNEXECUTE; + break; + case PLPGSQL_STMT_DYNFORS: + out->stmt_dynfors = palloc0(sizeof(PgQuery__PLpgSQLStmtDynfors)); + pg_query__plpg_sql_stmt_dynfors__init(out->stmt_dynfors); + _outPLpgSQL_stmt_dynfors(out->stmt_dynfors, (const PLpgSQL_stmt_dynfors *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_DYNFORS; + break; + case PLPGSQL_STMT_GETDIAG: + out->stmt_getdiag = palloc0(sizeof(PgQuery__PLpgSQLStmtGetdiag)); + pg_query__plpg_sql_stmt_getdiag__init(out->stmt_getdiag); + _outPLpgSQL_stmt_getdiag(out->stmt_getdiag, (const PLpgSQL_stmt_getdiag *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_GETDIAG; + break; + case PLPGSQL_STMT_OPEN: + out->stmt_open = palloc0(sizeof(PgQuery__PLpgSQLStmtOpen)); + pg_query__plpg_sql_stmt_open__init(out->stmt_open); + _outPLpgSQL_stmt_open(out->stmt_open, (const PLpgSQL_stmt_open *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_OPEN; + break; + case PLPGSQL_STMT_FETCH: + out->stmt_fetch = palloc0(sizeof(PgQuery__PLpgSQLStmtFetch)); + pg_query__plpg_sql_stmt_fetch__init(out->stmt_fetch); + _outPLpgSQL_stmt_fetch(out->stmt_fetch, (const PLpgSQL_stmt_fetch *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FETCH; + break; + case PLPGSQL_STMT_CLOSE: + out->stmt_close = palloc0(sizeof(PgQuery__PLpgSQLStmtClose)); + pg_query__plpg_sql_stmt_close__init(out->stmt_close); + _outPLpgSQL_stmt_close(out->stmt_close, (const PLpgSQL_stmt_close *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CLOSE; + break; + case PLPGSQL_STMT_PERFORM: + out->stmt_perform = palloc0(sizeof(PgQuery__PLpgSQLStmtPerform)); + pg_query__plpg_sql_stmt_perform__init(out->stmt_perform); + _outPLpgSQL_stmt_perform(out->stmt_perform, (const PLpgSQL_stmt_perform *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_PERFORM; + break; + case PLPGSQL_STMT_CALL: + out->stmt_call = palloc0(sizeof(PgQuery__PLpgSQLStmtCall)); + pg_query__plpg_sql_stmt_call__init(out->stmt_call); + _outPLpgSQL_stmt_call(out->stmt_call, (const PLpgSQL_stmt_call *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CALL; + break; + case PLPGSQL_STMT_COMMIT: + out->stmt_commit = palloc0(sizeof(PgQuery__PLpgSQLStmtCommit)); + pg_query__plpg_sql_stmt_commit__init(out->stmt_commit); + _outPLpgSQL_stmt_commit(out->stmt_commit, (const PLpgSQL_stmt_commit *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_COMMIT; + break; + case PLPGSQL_STMT_ROLLBACK: + out->stmt_rollback = palloc0(sizeof(PgQuery__PLpgSQLStmtRollback)); + pg_query__plpg_sql_stmt_rollback__init(out->stmt_rollback); + _outPLpgSQL_stmt_rollback(out->stmt_rollback, (const PLpgSQL_stmt_rollback *) node); + out->stmt_case = PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ROLLBACK; + break; + } +} + + + +static void +_outPLpgSQL_datum(PgQuery__PLpgSQLDatum *out, const PLpgSQL_datum *node) +{ + switch (node->dtype) { + case PLPGSQL_DTYPE_VAR: + out->var = palloc0(sizeof(PgQuery__PLpgSQLVar)); + pg_query__plpg_sql_var__init(out->var); + _outPLpgSQL_var(out->var, (const PLpgSQL_var *) node); + out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_VAR; + break; + case PLPGSQL_DTYPE_PROMISE: + out->var = palloc0(sizeof(PgQuery__PLpgSQLVar)); + pg_query__plpg_sql_var__init(out->var); + _outPLpgSQL_var(out->var, (const PLpgSQL_var *) node); + out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_VAR; + break; + case PLPGSQL_DTYPE_ROW: + out->row = palloc0(sizeof(PgQuery__PLpgSQLRow)); + pg_query__plpg_sql_row__init(out->row); + _outPLpgSQL_row(out->row, (const PLpgSQL_row *) node); + out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_ROW; + break; + case PLPGSQL_DTYPE_REC: + out->rec = palloc0(sizeof(PgQuery__PLpgSQLRec)); + pg_query__plpg_sql_rec__init(out->rec); + _outPLpgSQL_rec(out->rec, (const PLpgSQL_rec *) node); + out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_REC; + break; + case PLPGSQL_DTYPE_RECFIELD: + out->recfield = palloc0(sizeof(PgQuery__PLpgSQLRecfield)); + pg_query__plpg_sql_recfield__init(out->recfield); + _outPLpgSQL_recfield(out->recfield, (const PLpgSQL_recfield *) node); + out->datum_case = PG_QUERY__PLPG_SQL_DATUM__DATUM_RECFIELD; + break; + } +} + + + +static void +_outPLpgSQL_type(PgQuery__PLpgSQLType *out, const PLpgSQL_type *node) +{ + WRITE_STRING_FIELD(typname, typname, typname); + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_type_type, ttype, ttype); +} + +static void +_outPLpgSQL_expr(PgQuery__PLpgSQLExpr *out, const PLpgSQL_expr *node) +{ + WRITE_STRING_FIELD(query, query, query); + WRITE_INT_FIELD(parse_mode, parseMode, parseMode); +} + +static void +_outPLpgSQL_var(PgQuery__PLpgSQLVar *out, const PLpgSQL_var *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + WRITE_INT_FIELD(dno, dno, dno); + WRITE_STRING_FIELD(refname, refname, refname); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(isconst, isconst, isconst); + WRITE_BOOL_FIELD(notnull, notnull, notnull); + WRITE_PLPGSQL_EXPR_FIELD(default_val, default_val); + WRITE_PLPGSQL_TYPE_FIELD(datatype, datatype); + WRITE_PLPGSQL_EXPR_FIELD(cursor_explicit_expr, cursor_explicit_expr); + WRITE_INT_FIELD(cursor_explicit_argrow, cursor_explicit_argrow, cursor_explicit_argrow); + WRITE_INT_FIELD(cursor_options, cursor_options, cursor_options); + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_promise_type, promise, promise); +} + +static void +_outPLpgSQL_row(PgQuery__PLpgSQLRow *out, const PLpgSQL_row *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + WRITE_INT_FIELD(dno, dno, dno); + WRITE_STRING_FIELD(refname, refname, refname); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(isconst, isconst, isconst); + WRITE_BOOL_FIELD(notnull, notnull, notnull); + WRITE_PLPGSQL_EXPR_FIELD(default_val, default_val); + WRITE_INT_FIELD(nfields, nfields, nfields); +} + +static void +_outPLpgSQL_rec(PgQuery__PLpgSQLRec *out, const PLpgSQL_rec *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + WRITE_INT_FIELD(dno, dno, dno); + WRITE_STRING_FIELD(refname, refname, refname); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(isconst, isconst, isconst); + WRITE_BOOL_FIELD(notnull, notnull, notnull); + WRITE_PLPGSQL_EXPR_FIELD(default_val, default_val); + WRITE_PLPGSQL_TYPE_FIELD(datatype, datatype); + WRITE_INT_FIELD(firstfield, firstfield, firstfield); +} + +static void +_outPLpgSQL_recfield(PgQuery__PLpgSQLRecfield *out, const PLpgSQL_recfield *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + WRITE_INT_FIELD(dno, dno, dno); + WRITE_STRING_FIELD(fieldname, fieldname, fieldname); + WRITE_INT_FIELD(recparentno, recparentno, recparentno); + WRITE_INT_FIELD(nextfield, nextfield, nextfield); +} + +static void +_outPLpgSQL_condition(PgQuery__PLpgSQLCondition *out, const PLpgSQL_condition *node) +{ + WRITE_INT_FIELD(sqlerrstate, sqlerrstate, sqlerrstate); + WRITE_STRING_FIELD(condname, condname, condname); +} + +static void +_outPLpgSQL_exception_block(PgQuery__PLpgSQLExceptionBlock *out, const PLpgSQL_exception_block *node) +{ + WRITE_INT_FIELD(sqlstate_varno, sqlstate_varno, sqlstate_varno); + WRITE_INT_FIELD(sqlerrm_varno, sqlerrm_varno, sqlerrm_varno); + WRITE_PLPGSQL_EXCEPTION_LIST_FIELD(exc_list, exc_list); +} + +static void +_outPLpgSQL_exception(PgQuery__PLpgSQLException *out, const PLpgSQL_exception *node) +{ + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_CONDITION_FIELD(conditions, conditions); + WRITE_PLPGSQL_STMT_LIST_FIELD(action, action); +} + +static void +_outPLpgSQL_stmt_block(PgQuery__PLpgSQLStmtBlock *out, const PLpgSQL_stmt_block *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); + WRITE_INT_FIELD(n_initvars, n_initvars, n_initvars); + WRITE_PLPGSQL_EXCEPTION_BLOCK_FIELD(exceptions, exceptions); +} + +static void +_outPLpgSQL_stmt_assign(PgQuery__PLpgSQLStmtAssign *out, const PLpgSQL_stmt_assign *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_INT_FIELD(varno, varno, varno); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); +} + +static void +_outPLpgSQL_stmt_perform(PgQuery__PLpgSQLStmtPerform *out, const PLpgSQL_stmt_perform *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); +} + +static void +_outPLpgSQL_stmt_call(PgQuery__PLpgSQLStmtCall *out, const PLpgSQL_stmt_call *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); + WRITE_BOOL_FIELD(is_call, is_call, is_call); + WRITE_PLPGSQL_DATUM_FIELD(target, target); +} + +static void +_outPLpgSQL_stmt_commit(PgQuery__PLpgSQLStmtCommit *out, const PLpgSQL_stmt_commit *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(chain, chain, chain); +} + +static void +_outPLpgSQL_stmt_rollback(PgQuery__PLpgSQLStmtRollback *out, const PLpgSQL_stmt_rollback *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(chain, chain, chain); +} + +static void +_outPLpgSQL_diag_item(PgQuery__PLpgSQLDiagItem *out, const PLpgSQL_diag_item *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_getdiag_kind, kind, kind); + WRITE_INT_FIELD(target, target, target); +} + +static void +_outPLpgSQL_stmt_getdiag(PgQuery__PLpgSQLStmtGetdiag *out, const PLpgSQL_stmt_getdiag *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(is_stacked, is_stacked, is_stacked); + WRITE_PLPGSQL_DIAG_ITEM_LIST_FIELD(diag_items, diag_items); +} + +static void +_outPLpgSQL_stmt_if(PgQuery__PLpgSQLStmtIf *out, const PLpgSQL_stmt_if *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(cond, cond); + WRITE_PLPGSQL_STMT_LIST_FIELD(then_body, then_body); + WRITE_PLPGSQL_IF_ELSIF_LIST_FIELD(elsif_list, elsif_list); + WRITE_PLPGSQL_STMT_LIST_FIELD(else_body, else_body); +} + +static void +_outPLpgSQL_if_elsif(PgQuery__PLpgSQLIfElsif *out, const PLpgSQL_if_elsif *node) +{ + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(cond, cond); + WRITE_PLPGSQL_STMT_LIST_FIELD(stmts, stmts); +} + +static void +_outPLpgSQL_stmt_case(PgQuery__PLpgSQLStmtCase *out, const PLpgSQL_stmt_case *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(t_expr, t_expr); + WRITE_INT_FIELD(t_varno, t_varno, t_varno); + WRITE_PLPGSQL_CASE_WHEN_LIST_FIELD(case_when_list, case_when_list); + WRITE_BOOL_FIELD(have_else, have_else, have_else); + WRITE_PLPGSQL_STMT_LIST_FIELD(else_stmts, else_stmts); +} + +static void +_outPLpgSQL_case_when(PgQuery__PLpgSQLCaseWhen *out, const PLpgSQL_case_when *node) +{ + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); + WRITE_PLPGSQL_STMT_LIST_FIELD(stmts, stmts); +} + +static void +_outPLpgSQL_stmt_loop(PgQuery__PLpgSQLStmtLoop *out, const PLpgSQL_stmt_loop *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); +} + +static void +_outPLpgSQL_stmt_while(PgQuery__PLpgSQLStmtWhile *out, const PLpgSQL_stmt_while *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_EXPR_FIELD(cond, cond); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); +} + +static void +_outPLpgSQL_stmt_fori(PgQuery__PLpgSQLStmtFori *out, const PLpgSQL_stmt_fori *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_VAR_FIELD(var, var); + WRITE_PLPGSQL_EXPR_FIELD(lower, lower); + WRITE_PLPGSQL_EXPR_FIELD(upper, upper); + WRITE_PLPGSQL_EXPR_FIELD(step, step); + WRITE_INT_FIELD(reverse, reverse, reverse); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); +} + +static void +_outPLpgSQL_stmt_fors(PgQuery__PLpgSQLStmtFors *out, const PLpgSQL_stmt_fors *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_DATUM_FIELD(var, var); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); + WRITE_PLPGSQL_EXPR_FIELD(query, query); +} + +static void +_outPLpgSQL_stmt_forc(PgQuery__PLpgSQLStmtForc *out, const PLpgSQL_stmt_forc *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_DATUM_FIELD(var, var); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); + WRITE_INT_FIELD(curvar, curvar, curvar); + WRITE_PLPGSQL_EXPR_FIELD(argquery, argquery); +} + +static void +_outPLpgSQL_stmt_dynfors(PgQuery__PLpgSQLStmtDynfors *out, const PLpgSQL_stmt_dynfors *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_DATUM_FIELD(var, var); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); + WRITE_PLPGSQL_EXPR_FIELD(query, query); + WRITE_PLPGSQL_EXPR_LIST_FIELD(params, params); +} + +static void +_outPLpgSQL_stmt_foreach_a(PgQuery__PLpgSQLStmtForeachA *out, const PLpgSQL_stmt_foreach_a *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_STRING_FIELD(label, label, label); + WRITE_INT_FIELD(varno, varno, varno); + WRITE_INT_FIELD(slice, slice, slice); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); + WRITE_PLPGSQL_STMT_LIST_FIELD(body, body); +} + +static void +_outPLpgSQL_stmt_open(PgQuery__PLpgSQLStmtOpen *out, const PLpgSQL_stmt_open *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_INT_FIELD(curvar, curvar, curvar); + WRITE_INT_FIELD(cursor_options, cursor_options, cursor_options); + WRITE_PLPGSQL_EXPR_FIELD(argquery, argquery); + WRITE_PLPGSQL_EXPR_FIELD(query, query); + WRITE_PLPGSQL_EXPR_FIELD(dynquery, dynquery); + WRITE_PLPGSQL_EXPR_LIST_FIELD(params, params); +} + +static void +_outPLpgSQL_stmt_fetch(PgQuery__PLpgSQLStmtFetch *out, const PLpgSQL_stmt_fetch *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_DATUM_FIELD(target, target); + WRITE_INT_FIELD(curvar, curvar, curvar); + WRITE_INT_FIELD(direction, direction, direction); + WRITE_LONG_FIELD(how_many, how_many, how_many); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); + WRITE_BOOL_FIELD(is_move, is_move, is_move); + WRITE_BOOL_FIELD(returns_multiple_rows, returns_multiple_rows, returns_multiple_rows); +} + +static void +_outPLpgSQL_stmt_close(PgQuery__PLpgSQLStmtClose *out, const PLpgSQL_stmt_close *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_INT_FIELD(curvar, curvar, curvar); +} + +static void +_outPLpgSQL_stmt_exit(PgQuery__PLpgSQLStmtExit *out, const PLpgSQL_stmt_exit *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_BOOL_FIELD(is_exit, is_exit, is_exit); + WRITE_STRING_FIELD(label, label, label); + WRITE_PLPGSQL_EXPR_FIELD(cond, cond); +} + +static void +_outPLpgSQL_stmt_return(PgQuery__PLpgSQLStmtReturn *out, const PLpgSQL_stmt_return *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); + WRITE_INT_FIELD(retvarno, retvarno, retvarno); +} + +static void +_outPLpgSQL_stmt_return_next(PgQuery__PLpgSQLStmtReturnNext *out, const PLpgSQL_stmt_return_next *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); + WRITE_INT_FIELD(retvarno, retvarno, retvarno); +} + +static void +_outPLpgSQL_stmt_return_query(PgQuery__PLpgSQLStmtReturnQuery *out, const PLpgSQL_stmt_return_query *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(query, query); + WRITE_PLPGSQL_EXPR_FIELD(dynquery, dynquery); + WRITE_PLPGSQL_EXPR_LIST_FIELD(params, params); +} + +static void +_outPLpgSQL_stmt_raise(PgQuery__PLpgSQLStmtRaise *out, const PLpgSQL_stmt_raise *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_INT_FIELD(elog_level, elog_level, elog_level); + WRITE_STRING_FIELD(condname, condname, condname); + WRITE_STRING_FIELD(message, message, message); + WRITE_PLPGSQL_EXPR_LIST_FIELD(params, params); + WRITE_PLPGSQL_RAISE_OPTION_LIST_FIELD(options, options); +} + +static void +_outPLpgSQL_raise_option(PgQuery__PLpgSQLRaiseOption *out, const PLpgSQL_raise_option *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_raise_option_type, opt_type, opt_type); + WRITE_PLPGSQL_EXPR_FIELD(expr, expr); +} + +static void +_outPLpgSQL_stmt_assert(PgQuery__PLpgSQLStmtAssert *out, const PLpgSQL_stmt_assert *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(cond, cond); + WRITE_PLPGSQL_EXPR_FIELD(message, message); +} + +static void +_outPLpgSQL_stmt_execsql(PgQuery__PLpgSQLStmtExecsql *out, const PLpgSQL_stmt_execsql *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(sqlstmt, sqlstmt); + WRITE_BOOL_FIELD(mod_stmt, mod_stmt, mod_stmt); + WRITE_BOOL_FIELD(mod_stmt_set, mod_stmt_set, mod_stmt_set); + WRITE_BOOL_FIELD(into, into, into); + WRITE_BOOL_FIELD(strict, strict, strict); + WRITE_PLPGSQL_DATUM_FIELD(target, target); +} + +static void +_outPLpgSQL_stmt_dynexecute(PgQuery__PLpgSQLStmtDynexecute *out, const PLpgSQL_stmt_dynexecute *node) +{ + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + WRITE_INT_FIELD(lineno, lineno, lineno); + WRITE_PLPGSQL_EXPR_FIELD(query, query); + WRITE_BOOL_FIELD(into, into, into); + WRITE_BOOL_FIELD(strict, strict, strict); + WRITE_PLPGSQL_DATUM_FIELD(target, target); + WRITE_PLPGSQL_EXPR_LIST_FIELD(params, params); +} + +static void +_outPLpgSQL_function(PgQuery__PLpgSQLFunction *out, const PLpgSQL_function *node) +{ + WRITE_STRING_FIELD(fn_signature, fn_signature, fn_signature); + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_trigtype, fn_is_trigger, fn_is_trigger); + WRITE_INT_FIELD(out_param_varno, out_param_varno, out_param_varno); + WRITE_INT_FIELD(found_varno, found_varno, found_varno); + WRITE_INT_FIELD(new_varno, new_varno, new_varno); + WRITE_INT_FIELD(old_varno, old_varno, old_varno); + WRITE_PLPGSQL_ENUM_FIELD(PLpgSQL_resolve_option, resolve_option, resolve_option); + WRITE_BOOL_FIELD(print_strict_params, print_strict_params, print_strict_params); + WRITE_INT_FIELD(extra_warnings, extra_warnings, extra_warnings); + WRITE_INT_FIELD(extra_errors, extra_errors, extra_errors); + WRITE_INT_FIELD(ndatums, ndatums, ndatums); + WRITE_PLPGSQL_STMT_BLOCK_FIELD(action, action); +} + + diff --git a/src/include/pg_query_plpgsql_enum_defs.c b/src/include/pg_query_plpgsql_enum_defs.c new file mode 100644 index 000000000..37fae6d8d --- /dev/null +++ b/src/include/pg_query_plpgsql_enum_defs.c @@ -0,0 +1,305 @@ +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +static int +_plpgsqlEnumToIntPLpgSQL_nsitem_type(PLpgSQL_nsitem_type value) { + switch(value) { + case PLPGSQL_NSTYPE_LABEL: return 1; + case PLPGSQL_NSTYPE_VAR: return 2; + case PLPGSQL_NSTYPE_REC: return 3; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_label_type(PLpgSQL_label_type value) { + switch(value) { + case PLPGSQL_LABEL_BLOCK: return 1; + case PLPGSQL_LABEL_LOOP: return 2; + case PLPGSQL_LABEL_OTHER: return 3; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_datum_type(PLpgSQL_datum_type value) { + switch(value) { + case PLPGSQL_DTYPE_VAR: return 1; + case PLPGSQL_DTYPE_ROW: return 2; + case PLPGSQL_DTYPE_REC: return 3; + case PLPGSQL_DTYPE_RECFIELD: return 4; + case PLPGSQL_DTYPE_PROMISE: return 5; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_promise_type(PLpgSQL_promise_type value) { + switch(value) { + case PLPGSQL_PROMISE_NONE: return 1; + case PLPGSQL_PROMISE_TG_NAME: return 2; + case PLPGSQL_PROMISE_TG_WHEN: return 3; + case PLPGSQL_PROMISE_TG_LEVEL: return 4; + case PLPGSQL_PROMISE_TG_OP: return 5; + case PLPGSQL_PROMISE_TG_RELID: return 6; + case PLPGSQL_PROMISE_TG_TABLE_NAME: return 7; + case PLPGSQL_PROMISE_TG_TABLE_SCHEMA: return 8; + case PLPGSQL_PROMISE_TG_NARGS: return 9; + case PLPGSQL_PROMISE_TG_ARGV: return 10; + case PLPGSQL_PROMISE_TG_EVENT: return 11; + case PLPGSQL_PROMISE_TG_TAG: return 12; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_type_type(PLpgSQL_type_type value) { + switch(value) { + case PLPGSQL_TTYPE_SCALAR: return 1; + case PLPGSQL_TTYPE_REC: return 2; + case PLPGSQL_TTYPE_PSEUDO: return 3; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_stmt_type(PLpgSQL_stmt_type value) { + switch(value) { + case PLPGSQL_STMT_BLOCK: return 1; + case PLPGSQL_STMT_ASSIGN: return 2; + case PLPGSQL_STMT_IF: return 3; + case PLPGSQL_STMT_CASE: return 4; + case PLPGSQL_STMT_LOOP: return 5; + case PLPGSQL_STMT_WHILE: return 6; + case PLPGSQL_STMT_FORI: return 7; + case PLPGSQL_STMT_FORS: return 8; + case PLPGSQL_STMT_FORC: return 9; + case PLPGSQL_STMT_FOREACH_A: return 10; + case PLPGSQL_STMT_EXIT: return 11; + case PLPGSQL_STMT_RETURN: return 12; + case PLPGSQL_STMT_RETURN_NEXT: return 13; + case PLPGSQL_STMT_RETURN_QUERY: return 14; + case PLPGSQL_STMT_RAISE: return 15; + case PLPGSQL_STMT_ASSERT: return 16; + case PLPGSQL_STMT_EXECSQL: return 17; + case PLPGSQL_STMT_DYNEXECUTE: return 18; + case PLPGSQL_STMT_DYNFORS: return 19; + case PLPGSQL_STMT_GETDIAG: return 20; + case PLPGSQL_STMT_OPEN: return 21; + case PLPGSQL_STMT_FETCH: return 22; + case PLPGSQL_STMT_CLOSE: return 23; + case PLPGSQL_STMT_PERFORM: return 24; + case PLPGSQL_STMT_CALL: return 25; + case PLPGSQL_STMT_COMMIT: return 26; + case PLPGSQL_STMT_ROLLBACK: return 27; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_getdiag_kind(PLpgSQL_getdiag_kind value) { + switch(value) { + case PLPGSQL_GETDIAG_ROW_COUNT: return 1; + case PLPGSQL_GETDIAG_ROUTINE_OID: return 2; + case PLPGSQL_GETDIAG_CONTEXT: return 3; + case PLPGSQL_GETDIAG_ERROR_CONTEXT: return 4; + case PLPGSQL_GETDIAG_ERROR_DETAIL: return 5; + case PLPGSQL_GETDIAG_ERROR_HINT: return 6; + case PLPGSQL_GETDIAG_RETURNED_SQLSTATE: return 7; + case PLPGSQL_GETDIAG_COLUMN_NAME: return 8; + case PLPGSQL_GETDIAG_CONSTRAINT_NAME: return 9; + case PLPGSQL_GETDIAG_DATATYPE_NAME: return 10; + case PLPGSQL_GETDIAG_MESSAGE_TEXT: return 11; + case PLPGSQL_GETDIAG_TABLE_NAME: return 12; + case PLPGSQL_GETDIAG_SCHEMA_NAME: return 13; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_raise_option_type(PLpgSQL_raise_option_type value) { + switch(value) { + case PLPGSQL_RAISEOPTION_ERRCODE: return 1; + case PLPGSQL_RAISEOPTION_MESSAGE: return 2; + case PLPGSQL_RAISEOPTION_DETAIL: return 3; + case PLPGSQL_RAISEOPTION_HINT: return 4; + case PLPGSQL_RAISEOPTION_COLUMN: return 5; + case PLPGSQL_RAISEOPTION_CONSTRAINT: return 6; + case PLPGSQL_RAISEOPTION_DATATYPE: return 7; + case PLPGSQL_RAISEOPTION_TABLE: return 8; + case PLPGSQL_RAISEOPTION_SCHEMA: return 9; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_resolve_option(PLpgSQL_resolve_option value) { + switch(value) { + case PLPGSQL_RESOLVE_ERROR: return 1; + case PLPGSQL_RESOLVE_VARIABLE: return 2; + case PLPGSQL_RESOLVE_COLUMN: return 3; + } + return 0; +} + +static int +_plpgsqlEnumToIntPLpgSQL_trigtype(PLpgSQL_trigtype value) { + switch(value) { + case PLPGSQL_DML_TRIGGER: return 1; + case PLPGSQL_EVENT_TRIGGER: return 2; + case PLPGSQL_NOT_TRIGGER: return 3; + } + return 0; +} + + +static PLpgSQL_nsitem_type +_plpgsqlIntToEnumPLpgSQL_nsitem_type(int value) { + switch(value) { + case 1: return PLPGSQL_NSTYPE_LABEL; + case 2: return PLPGSQL_NSTYPE_VAR; + case 3: return PLPGSQL_NSTYPE_REC; + } + return PLPGSQL_NSTYPE_LABEL; +} + +static PLpgSQL_label_type +_plpgsqlIntToEnumPLpgSQL_label_type(int value) { + switch(value) { + case 1: return PLPGSQL_LABEL_BLOCK; + case 2: return PLPGSQL_LABEL_LOOP; + case 3: return PLPGSQL_LABEL_OTHER; + } + return PLPGSQL_LABEL_BLOCK; +} + +static PLpgSQL_datum_type +_plpgsqlIntToEnumPLpgSQL_datum_type(int value) { + switch(value) { + case 1: return PLPGSQL_DTYPE_VAR; + case 2: return PLPGSQL_DTYPE_ROW; + case 3: return PLPGSQL_DTYPE_REC; + case 4: return PLPGSQL_DTYPE_RECFIELD; + case 5: return PLPGSQL_DTYPE_PROMISE; + } + return PLPGSQL_DTYPE_VAR; +} + +static PLpgSQL_promise_type +_plpgsqlIntToEnumPLpgSQL_promise_type(int value) { + switch(value) { + case 1: return PLPGSQL_PROMISE_NONE; + case 2: return PLPGSQL_PROMISE_TG_NAME; + case 3: return PLPGSQL_PROMISE_TG_WHEN; + case 4: return PLPGSQL_PROMISE_TG_LEVEL; + case 5: return PLPGSQL_PROMISE_TG_OP; + case 6: return PLPGSQL_PROMISE_TG_RELID; + case 7: return PLPGSQL_PROMISE_TG_TABLE_NAME; + case 8: return PLPGSQL_PROMISE_TG_TABLE_SCHEMA; + case 9: return PLPGSQL_PROMISE_TG_NARGS; + case 10: return PLPGSQL_PROMISE_TG_ARGV; + case 11: return PLPGSQL_PROMISE_TG_EVENT; + case 12: return PLPGSQL_PROMISE_TG_TAG; + } + return PLPGSQL_PROMISE_NONE; +} + +static PLpgSQL_type_type +_plpgsqlIntToEnumPLpgSQL_type_type(int value) { + switch(value) { + case 1: return PLPGSQL_TTYPE_SCALAR; + case 2: return PLPGSQL_TTYPE_REC; + case 3: return PLPGSQL_TTYPE_PSEUDO; + } + return PLPGSQL_TTYPE_SCALAR; +} + +static PLpgSQL_stmt_type +_plpgsqlIntToEnumPLpgSQL_stmt_type(int value) { + switch(value) { + case 1: return PLPGSQL_STMT_BLOCK; + case 2: return PLPGSQL_STMT_ASSIGN; + case 3: return PLPGSQL_STMT_IF; + case 4: return PLPGSQL_STMT_CASE; + case 5: return PLPGSQL_STMT_LOOP; + case 6: return PLPGSQL_STMT_WHILE; + case 7: return PLPGSQL_STMT_FORI; + case 8: return PLPGSQL_STMT_FORS; + case 9: return PLPGSQL_STMT_FORC; + case 10: return PLPGSQL_STMT_FOREACH_A; + case 11: return PLPGSQL_STMT_EXIT; + case 12: return PLPGSQL_STMT_RETURN; + case 13: return PLPGSQL_STMT_RETURN_NEXT; + case 14: return PLPGSQL_STMT_RETURN_QUERY; + case 15: return PLPGSQL_STMT_RAISE; + case 16: return PLPGSQL_STMT_ASSERT; + case 17: return PLPGSQL_STMT_EXECSQL; + case 18: return PLPGSQL_STMT_DYNEXECUTE; + case 19: return PLPGSQL_STMT_DYNFORS; + case 20: return PLPGSQL_STMT_GETDIAG; + case 21: return PLPGSQL_STMT_OPEN; + case 22: return PLPGSQL_STMT_FETCH; + case 23: return PLPGSQL_STMT_CLOSE; + case 24: return PLPGSQL_STMT_PERFORM; + case 25: return PLPGSQL_STMT_CALL; + case 26: return PLPGSQL_STMT_COMMIT; + case 27: return PLPGSQL_STMT_ROLLBACK; + } + return PLPGSQL_STMT_BLOCK; +} + +static PLpgSQL_getdiag_kind +_plpgsqlIntToEnumPLpgSQL_getdiag_kind(int value) { + switch(value) { + case 1: return PLPGSQL_GETDIAG_ROW_COUNT; + case 2: return PLPGSQL_GETDIAG_ROUTINE_OID; + case 3: return PLPGSQL_GETDIAG_CONTEXT; + case 4: return PLPGSQL_GETDIAG_ERROR_CONTEXT; + case 5: return PLPGSQL_GETDIAG_ERROR_DETAIL; + case 6: return PLPGSQL_GETDIAG_ERROR_HINT; + case 7: return PLPGSQL_GETDIAG_RETURNED_SQLSTATE; + case 8: return PLPGSQL_GETDIAG_COLUMN_NAME; + case 9: return PLPGSQL_GETDIAG_CONSTRAINT_NAME; + case 10: return PLPGSQL_GETDIAG_DATATYPE_NAME; + case 11: return PLPGSQL_GETDIAG_MESSAGE_TEXT; + case 12: return PLPGSQL_GETDIAG_TABLE_NAME; + case 13: return PLPGSQL_GETDIAG_SCHEMA_NAME; + } + return PLPGSQL_GETDIAG_ROW_COUNT; +} + +static PLpgSQL_raise_option_type +_plpgsqlIntToEnumPLpgSQL_raise_option_type(int value) { + switch(value) { + case 1: return PLPGSQL_RAISEOPTION_ERRCODE; + case 2: return PLPGSQL_RAISEOPTION_MESSAGE; + case 3: return PLPGSQL_RAISEOPTION_DETAIL; + case 4: return PLPGSQL_RAISEOPTION_HINT; + case 5: return PLPGSQL_RAISEOPTION_COLUMN; + case 6: return PLPGSQL_RAISEOPTION_CONSTRAINT; + case 7: return PLPGSQL_RAISEOPTION_DATATYPE; + case 8: return PLPGSQL_RAISEOPTION_TABLE; + case 9: return PLPGSQL_RAISEOPTION_SCHEMA; + } + return PLPGSQL_RAISEOPTION_ERRCODE; +} + +static PLpgSQL_resolve_option +_plpgsqlIntToEnumPLpgSQL_resolve_option(int value) { + switch(value) { + case 1: return PLPGSQL_RESOLVE_ERROR; + case 2: return PLPGSQL_RESOLVE_VARIABLE; + case 3: return PLPGSQL_RESOLVE_COLUMN; + } + return PLPGSQL_RESOLVE_ERROR; +} + +static PLpgSQL_trigtype +_plpgsqlIntToEnumPLpgSQL_trigtype(int value) { + switch(value) { + case 1: return PLPGSQL_DML_TRIGGER; + case 2: return PLPGSQL_EVENT_TRIGGER; + case 3: return PLPGSQL_NOT_TRIGGER; + } + return PLPGSQL_DML_TRIGGER; +} + diff --git a/src/include/pg_query_plpgsql_protobuf.proto b/src/include/pg_query_plpgsql_protobuf.proto new file mode 100644 index 000000000..d727f906a --- /dev/null +++ b/src/include/pg_query_plpgsql_protobuf.proto @@ -0,0 +1,518 @@ +// PLpgSQL Protobuf Definitions +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +message PLpgSQLParseResult { + int32 version = 1; + repeated PLpgSQL_function plpgsql_funcs = 2; +} + +// PLpgSQL statement wrapper with oneof for polymorphism +message PLpgSQL_stmt { + oneof stmt { + PLpgSQL_stmt_block stmt_block = 1; + PLpgSQL_stmt_assign stmt_assign = 2; + PLpgSQL_stmt_if stmt_if = 3; + PLpgSQL_stmt_case stmt_case_ = 4; + PLpgSQL_stmt_loop stmt_loop = 5; + PLpgSQL_stmt_while stmt_while = 6; + PLpgSQL_stmt_fori stmt_fori = 7; + PLpgSQL_stmt_fors stmt_fors = 8; + PLpgSQL_stmt_forc stmt_forc = 9; + PLpgSQL_stmt_foreach_a stmt_foreach_a = 10; + PLpgSQL_stmt_exit stmt_exit = 11; + PLpgSQL_stmt_return stmt_return = 12; + PLpgSQL_stmt_return_next stmt_return_next = 13; + PLpgSQL_stmt_return_query stmt_return_query = 14; + PLpgSQL_stmt_raise stmt_raise = 15; + PLpgSQL_stmt_assert stmt_assert = 16; + PLpgSQL_stmt_execsql stmt_execsql = 17; + PLpgSQL_stmt_dynexecute stmt_dynexecute = 18; + PLpgSQL_stmt_dynfors stmt_dynfors = 19; + PLpgSQL_stmt_getdiag stmt_getdiag = 20; + PLpgSQL_stmt_open stmt_open = 21; + PLpgSQL_stmt_fetch stmt_fetch = 22; + PLpgSQL_stmt_close stmt_close = 23; + PLpgSQL_stmt_perform stmt_perform = 24; + PLpgSQL_stmt_call stmt_call = 25; + PLpgSQL_stmt_commit stmt_commit = 26; + PLpgSQL_stmt_rollback stmt_rollback = 27; + } +} + +// PLpgSQL datum wrapper with oneof for polymorphism +message PLpgSQL_datum { + oneof datum { + PLpgSQL_var var = 1; + PLpgSQL_row row = 3; + PLpgSQL_rec rec = 4; + PLpgSQL_recfield recfield = 5; + } +} + +// PLpgSQL Messages + +message PLpgSQL_type { + string typname = 1; + PLpgSQL_type_type ttype = 2; +} + +message PLpgSQL_expr { + string query = 1; + int32 parse_mode = 2; +} + +message PLpgSQL_var { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string refname = 3; + int32 lineno = 4; + bool isconst = 5; + bool notnull = 6; + PLpgSQL_expr default_val = 7; + PLpgSQL_type datatype = 8; + PLpgSQL_expr cursor_explicit_expr = 9; + int32 cursor_explicit_argrow = 10; + int32 cursor_options = 11; + PLpgSQL_promise_type promise = 12; +} + +message PLpgSQL_row { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string refname = 3; + int32 lineno = 4; + bool isconst = 5; + bool notnull = 6; + PLpgSQL_expr default_val = 7; + int32 nfields = 8; +} + +message PLpgSQL_rec { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string refname = 3; + int32 lineno = 4; + bool isconst = 5; + bool notnull = 6; + PLpgSQL_expr default_val = 7; + PLpgSQL_type datatype = 8; + int32 firstfield = 9; +} + +message PLpgSQL_recfield { + PLpgSQL_datum_type dtype = 1; + int32 dno = 2; + string fieldname = 3; + int32 recparentno = 4; + int32 nextfield = 5; +} + +message PLpgSQL_condition { + int32 sqlerrstate = 1; + string condname = 2; +} + +message PLpgSQL_exception_block { + int32 sqlstate_varno = 1; + int32 sqlerrm_varno = 2; + repeated PLpgSQL_exception exc_list = 3; +} + +message PLpgSQL_exception { + int32 lineno = 1; + PLpgSQL_condition conditions = 2; + repeated PLpgSQL_stmt action = 3; +} + +message PLpgSQL_stmt_block { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + repeated PLpgSQL_stmt body = 4; + int32 n_initvars = 5; + PLpgSQL_exception_block exceptions = 6; +} + +message PLpgSQL_stmt_assign { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 varno = 3; + PLpgSQL_expr expr = 4; +} + +message PLpgSQL_stmt_perform { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; +} + +message PLpgSQL_stmt_call { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; + bool is_call = 4; + PLpgSQL_datum target = 5; +} + +message PLpgSQL_stmt_commit { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool chain = 3; +} + +message PLpgSQL_stmt_rollback { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool chain = 3; +} + +message PLpgSQL_diag_item { + PLpgSQL_getdiag_kind kind = 1; + int32 target = 2; +} + +message PLpgSQL_stmt_getdiag { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool is_stacked = 3; + repeated PLpgSQL_diag_item diag_items = 4; +} + +message PLpgSQL_stmt_if { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr cond = 3; + repeated PLpgSQL_stmt then_body = 4; + repeated PLpgSQL_if_elsif elsif_list = 5; + repeated PLpgSQL_stmt else_body = 6; +} + +message PLpgSQL_if_elsif { + int32 lineno = 1; + PLpgSQL_expr cond = 2; + repeated PLpgSQL_stmt stmts = 3; +} + +message PLpgSQL_stmt_case { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr t_expr = 3; + int32 t_varno = 4; + repeated PLpgSQL_case_when case_when_list = 5; + bool have_else = 6; + repeated PLpgSQL_stmt else_stmts = 7; +} + +message PLpgSQL_case_when { + int32 lineno = 1; + PLpgSQL_expr expr = 2; + repeated PLpgSQL_stmt stmts = 3; +} + +message PLpgSQL_stmt_loop { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + repeated PLpgSQL_stmt body = 4; +} + +message PLpgSQL_stmt_while { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_expr cond = 4; + repeated PLpgSQL_stmt body = 5; +} + +message PLpgSQL_stmt_fori { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_var var = 4; + PLpgSQL_expr lower = 5; + PLpgSQL_expr upper = 6; + PLpgSQL_expr step = 7; + int32 reverse = 8; + repeated PLpgSQL_stmt body = 9; +} + +message PLpgSQL_stmt_fors { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_datum var = 4; + repeated PLpgSQL_stmt body = 5; + PLpgSQL_expr query = 6; +} + +message PLpgSQL_stmt_forc { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_datum var = 4; + repeated PLpgSQL_stmt body = 5; + int32 curvar = 6; + PLpgSQL_expr argquery = 7; +} + +message PLpgSQL_stmt_dynfors { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + PLpgSQL_datum var = 4; + repeated PLpgSQL_stmt body = 5; + PLpgSQL_expr query = 6; + repeated PLpgSQL_expr params = 7; +} + +message PLpgSQL_stmt_foreach_a { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + string label = 3; + int32 varno = 4; + int32 slice = 5; + PLpgSQL_expr expr = 6; + repeated PLpgSQL_stmt body = 7; +} + +message PLpgSQL_stmt_open { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 curvar = 3; + int32 cursor_options = 4; + PLpgSQL_expr argquery = 5; + PLpgSQL_expr query = 6; + PLpgSQL_expr dynquery = 7; + repeated PLpgSQL_expr params = 8; +} + +message PLpgSQL_stmt_fetch { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_datum target = 3; + int32 curvar = 4; + int32 direction = 5; + int64 how_many = 6; + PLpgSQL_expr expr = 7; + bool is_move = 8; + bool returns_multiple_rows = 9; +} + +message PLpgSQL_stmt_close { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 curvar = 3; +} + +message PLpgSQL_stmt_exit { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + bool is_exit = 3; + string label = 4; + PLpgSQL_expr cond = 5; +} + +message PLpgSQL_stmt_return { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; + int32 retvarno = 4; +} + +message PLpgSQL_stmt_return_next { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr expr = 3; + int32 retvarno = 4; +} + +message PLpgSQL_stmt_return_query { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr query = 3; + PLpgSQL_expr dynquery = 4; + repeated PLpgSQL_expr params = 5; +} + +message PLpgSQL_stmt_raise { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + int32 elog_level = 3; + string condname = 4; + string message = 5; + repeated PLpgSQL_expr params = 6; + repeated PLpgSQL_raise_option options = 7; +} + +message PLpgSQL_raise_option { + PLpgSQL_raise_option_type opt_type = 1; + PLpgSQL_expr expr = 2; +} + +message PLpgSQL_stmt_assert { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr cond = 3; + PLpgSQL_expr message = 4; +} + +message PLpgSQL_stmt_execsql { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr sqlstmt = 3; + bool mod_stmt = 4; + bool mod_stmt_set = 5; + bool into = 6; + bool strict = 7; + PLpgSQL_datum target = 8; +} + +message PLpgSQL_stmt_dynexecute { + PLpgSQL_stmt_type cmd_type = 1; + int32 lineno = 2; + PLpgSQL_expr query = 3; + bool into = 4; + bool strict = 5; + PLpgSQL_datum target = 6; + repeated PLpgSQL_expr params = 7; +} + +message PLpgSQL_function { + string fn_signature = 1; + PLpgSQL_trigtype fn_is_trigger = 2; + int32 out_param_varno = 3; + int32 found_varno = 4; + int32 new_varno = 5; + int32 old_varno = 6; + PLpgSQL_resolve_option resolve_option = 7; + bool print_strict_params = 8; + int32 extra_warnings = 9; + int32 extra_errors = 10; + int32 ndatums = 11; + PLpgSQL_stmt_block action = 12; +} + + +// PLpgSQL Enums + +enum PLpgSQL_nsitem_type { + P__LPG_SQL_NSITEM_TYPE_UNDEFINED = 0; + PLPGSQL_NSTYPE_LABEL = 1; + PLPGSQL_NSTYPE_VAR = 2; + PLPGSQL_NSTYPE_REC = 3; +} + +enum PLpgSQL_label_type { + P__LPG_SQL_LABEL_TYPE_UNDEFINED = 0; + PLPGSQL_LABEL_BLOCK = 1; + PLPGSQL_LABEL_LOOP = 2; + PLPGSQL_LABEL_OTHER = 3; +} + +enum PLpgSQL_datum_type { + P__LPG_SQL_DATUM_TYPE_UNDEFINED = 0; + PLPGSQL_DTYPE_VAR = 1; + PLPGSQL_DTYPE_ROW = 2; + PLPGSQL_DTYPE_REC = 3; + PLPGSQL_DTYPE_RECFIELD = 4; + PLPGSQL_DTYPE_PROMISE = 5; +} + +enum PLpgSQL_promise_type { + P__LPG_SQL_PROMISE_TYPE_UNDEFINED = 0; + PLPGSQL_PROMISE_NONE = 1; + PLPGSQL_PROMISE_TG_NAME = 2; + PLPGSQL_PROMISE_TG_WHEN = 3; + PLPGSQL_PROMISE_TG_LEVEL = 4; + PLPGSQL_PROMISE_TG_OP = 5; + PLPGSQL_PROMISE_TG_RELID = 6; + PLPGSQL_PROMISE_TG_TABLE_NAME = 7; + PLPGSQL_PROMISE_TG_TABLE_SCHEMA = 8; + PLPGSQL_PROMISE_TG_NARGS = 9; + PLPGSQL_PROMISE_TG_ARGV = 10; + PLPGSQL_PROMISE_TG_EVENT = 11; + PLPGSQL_PROMISE_TG_TAG = 12; +} + +enum PLpgSQL_type_type { + P__LPG_SQL_TYPE_TYPE_UNDEFINED = 0; + PLPGSQL_TTYPE_SCALAR = 1; + PLPGSQL_TTYPE_REC = 2; + PLPGSQL_TTYPE_PSEUDO = 3; +} + +enum PLpgSQL_stmt_type { + P__LPG_SQL_STMT_TYPE_UNDEFINED = 0; + PLPGSQL_STMT_BLOCK = 1; + PLPGSQL_STMT_ASSIGN = 2; + PLPGSQL_STMT_IF = 3; + PLPGSQL_STMT_CASE = 4; + PLPGSQL_STMT_LOOP = 5; + PLPGSQL_STMT_WHILE = 6; + PLPGSQL_STMT_FORI = 7; + PLPGSQL_STMT_FORS = 8; + PLPGSQL_STMT_FORC = 9; + PLPGSQL_STMT_FOREACH_A = 10; + PLPGSQL_STMT_EXIT = 11; + PLPGSQL_STMT_RETURN = 12; + PLPGSQL_STMT_RETURN_NEXT = 13; + PLPGSQL_STMT_RETURN_QUERY = 14; + PLPGSQL_STMT_RAISE = 15; + PLPGSQL_STMT_ASSERT = 16; + PLPGSQL_STMT_EXECSQL = 17; + PLPGSQL_STMT_DYNEXECUTE = 18; + PLPGSQL_STMT_DYNFORS = 19; + PLPGSQL_STMT_GETDIAG = 20; + PLPGSQL_STMT_OPEN = 21; + PLPGSQL_STMT_FETCH = 22; + PLPGSQL_STMT_CLOSE = 23; + PLPGSQL_STMT_PERFORM = 24; + PLPGSQL_STMT_CALL = 25; + PLPGSQL_STMT_COMMIT = 26; + PLPGSQL_STMT_ROLLBACK = 27; +} + +enum PLpgSQL_getdiag_kind { + P__LPG_SQL_GETDIAG_KIND_UNDEFINED = 0; + PLPGSQL_GETDIAG_ROW_COUNT = 1; + PLPGSQL_GETDIAG_ROUTINE_OID = 2; + PLPGSQL_GETDIAG_CONTEXT = 3; + PLPGSQL_GETDIAG_ERROR_CONTEXT = 4; + PLPGSQL_GETDIAG_ERROR_DETAIL = 5; + PLPGSQL_GETDIAG_ERROR_HINT = 6; + PLPGSQL_GETDIAG_RETURNED_SQLSTATE = 7; + PLPGSQL_GETDIAG_COLUMN_NAME = 8; + PLPGSQL_GETDIAG_CONSTRAINT_NAME = 9; + PLPGSQL_GETDIAG_DATATYPE_NAME = 10; + PLPGSQL_GETDIAG_MESSAGE_TEXT = 11; + PLPGSQL_GETDIAG_TABLE_NAME = 12; + PLPGSQL_GETDIAG_SCHEMA_NAME = 13; +} + +enum PLpgSQL_raise_option_type { + P__LPG_SQL_RAISE_OPTION_TYPE_UNDEFINED = 0; + PLPGSQL_RAISEOPTION_ERRCODE = 1; + PLPGSQL_RAISEOPTION_MESSAGE = 2; + PLPGSQL_RAISEOPTION_DETAIL = 3; + PLPGSQL_RAISEOPTION_HINT = 4; + PLPGSQL_RAISEOPTION_COLUMN = 5; + PLPGSQL_RAISEOPTION_CONSTRAINT = 6; + PLPGSQL_RAISEOPTION_DATATYPE = 7; + PLPGSQL_RAISEOPTION_TABLE = 8; + PLPGSQL_RAISEOPTION_SCHEMA = 9; +} + +enum PLpgSQL_resolve_option { + P__LPG_SQL_RESOLVE_OPTION_UNDEFINED = 0; + PLPGSQL_RESOLVE_ERROR = 1; + PLPGSQL_RESOLVE_VARIABLE = 2; + PLPGSQL_RESOLVE_COLUMN = 3; +} + +enum PLpgSQL_trigtype { + P__LPG_SQL_TRIGTYPE_UNDEFINED = 0; + PLPGSQL_DML_TRIGGER = 1; + PLPGSQL_EVENT_TRIGGER = 2; + PLPGSQL_NOT_TRIGGER = 3; +} + diff --git a/src/include/pg_query_readfuncs_plpgsql_defs.c b/src/include/pg_query_readfuncs_plpgsql_defs.c new file mode 100644 index 000000000..9a84afd88 --- /dev/null +++ b/src/include/pg_query_readfuncs_plpgsql_defs.c @@ -0,0 +1,640 @@ +// This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + +// Forward declarations for dispatchers +static PLpgSQL_stmt * _readPLpgSQL_stmt(const PgQuery__PLpgSQLStmt *msg); +static PLpgSQL_datum * _readPLpgSQL_datum(const PgQuery__PLpgSQLDatum *msg); + + +static PLpgSQL_type * _readPLpgSQL_type(const PgQuery__PLpgSQLType *msg); +static PLpgSQL_expr * _readPLpgSQL_expr(const PgQuery__PLpgSQLExpr *msg); +static PLpgSQL_var * _readPLpgSQL_var(const PgQuery__PLpgSQLVar *msg); +static PLpgSQL_row * _readPLpgSQL_row(const PgQuery__PLpgSQLRow *msg); +static PLpgSQL_rec * _readPLpgSQL_rec(const PgQuery__PLpgSQLRec *msg); +static PLpgSQL_recfield * _readPLpgSQL_recfield(const PgQuery__PLpgSQLRecfield *msg); +static PLpgSQL_condition * _readPLpgSQL_condition(const PgQuery__PLpgSQLCondition *msg); +static PLpgSQL_exception_block * _readPLpgSQL_exception_block(const PgQuery__PLpgSQLExceptionBlock *msg); +static PLpgSQL_exception * _readPLpgSQL_exception(const PgQuery__PLpgSQLException *msg); +static PLpgSQL_stmt_block * _readPLpgSQL_stmt_block(const PgQuery__PLpgSQLStmtBlock *msg); +static PLpgSQL_stmt_assign * _readPLpgSQL_stmt_assign(const PgQuery__PLpgSQLStmtAssign *msg); +static PLpgSQL_stmt_perform * _readPLpgSQL_stmt_perform(const PgQuery__PLpgSQLStmtPerform *msg); +static PLpgSQL_stmt_call * _readPLpgSQL_stmt_call(const PgQuery__PLpgSQLStmtCall *msg); +static PLpgSQL_stmt_commit * _readPLpgSQL_stmt_commit(const PgQuery__PLpgSQLStmtCommit *msg); +static PLpgSQL_stmt_rollback * _readPLpgSQL_stmt_rollback(const PgQuery__PLpgSQLStmtRollback *msg); +static PLpgSQL_diag_item * _readPLpgSQL_diag_item(const PgQuery__PLpgSQLDiagItem *msg); +static PLpgSQL_stmt_getdiag * _readPLpgSQL_stmt_getdiag(const PgQuery__PLpgSQLStmtGetdiag *msg); +static PLpgSQL_stmt_if * _readPLpgSQL_stmt_if(const PgQuery__PLpgSQLStmtIf *msg); +static PLpgSQL_if_elsif * _readPLpgSQL_if_elsif(const PgQuery__PLpgSQLIfElsif *msg); +static PLpgSQL_stmt_case * _readPLpgSQL_stmt_case(const PgQuery__PLpgSQLStmtCase *msg); +static PLpgSQL_case_when * _readPLpgSQL_case_when(const PgQuery__PLpgSQLCaseWhen *msg); +static PLpgSQL_stmt_loop * _readPLpgSQL_stmt_loop(const PgQuery__PLpgSQLStmtLoop *msg); +static PLpgSQL_stmt_while * _readPLpgSQL_stmt_while(const PgQuery__PLpgSQLStmtWhile *msg); +static PLpgSQL_stmt_fori * _readPLpgSQL_stmt_fori(const PgQuery__PLpgSQLStmtFori *msg); +static PLpgSQL_stmt_fors * _readPLpgSQL_stmt_fors(const PgQuery__PLpgSQLStmtFors *msg); +static PLpgSQL_stmt_forc * _readPLpgSQL_stmt_forc(const PgQuery__PLpgSQLStmtForc *msg); +static PLpgSQL_stmt_dynfors * _readPLpgSQL_stmt_dynfors(const PgQuery__PLpgSQLStmtDynfors *msg); +static PLpgSQL_stmt_foreach_a * _readPLpgSQL_stmt_foreach_a(const PgQuery__PLpgSQLStmtForeachA *msg); +static PLpgSQL_stmt_open * _readPLpgSQL_stmt_open(const PgQuery__PLpgSQLStmtOpen *msg); +static PLpgSQL_stmt_fetch * _readPLpgSQL_stmt_fetch(const PgQuery__PLpgSQLStmtFetch *msg); +static PLpgSQL_stmt_close * _readPLpgSQL_stmt_close(const PgQuery__PLpgSQLStmtClose *msg); +static PLpgSQL_stmt_exit * _readPLpgSQL_stmt_exit(const PgQuery__PLpgSQLStmtExit *msg); +static PLpgSQL_stmt_return * _readPLpgSQL_stmt_return(const PgQuery__PLpgSQLStmtReturn *msg); +static PLpgSQL_stmt_return_next * _readPLpgSQL_stmt_return_next(const PgQuery__PLpgSQLStmtReturnNext *msg); +static PLpgSQL_stmt_return_query * _readPLpgSQL_stmt_return_query(const PgQuery__PLpgSQLStmtReturnQuery *msg); +static PLpgSQL_stmt_raise * _readPLpgSQL_stmt_raise(const PgQuery__PLpgSQLStmtRaise *msg); +static PLpgSQL_raise_option * _readPLpgSQL_raise_option(const PgQuery__PLpgSQLRaiseOption *msg); +static PLpgSQL_stmt_assert * _readPLpgSQL_stmt_assert(const PgQuery__PLpgSQLStmtAssert *msg); +static PLpgSQL_stmt_execsql * _readPLpgSQL_stmt_execsql(const PgQuery__PLpgSQLStmtExecsql *msg); +static PLpgSQL_stmt_dynexecute * _readPLpgSQL_stmt_dynexecute(const PgQuery__PLpgSQLStmtDynexecute *msg); +static PLpgSQL_function * _readPLpgSQL_function(const PgQuery__PLpgSQLFunction *msg); + + +static PLpgSQL_stmt * +_readPLpgSQL_stmt(const PgQuery__PLpgSQLStmt *msg) +{ + switch (msg->stmt_case) { + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_BLOCK: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_block(msg->stmt_block); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ASSIGN: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_assign(msg->stmt_assign); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_IF: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_if(msg->stmt_if); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CASE_: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_case(msg->stmt_case_); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_LOOP: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_loop(msg->stmt_loop); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_WHILE: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_while(msg->stmt_while); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORI: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_fori(msg->stmt_fori); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORS: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_fors(msg->stmt_fors); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FORC: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_forc(msg->stmt_forc); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FOREACH_A: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_foreach_a(msg->stmt_foreach_a); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_EXIT: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_exit(msg->stmt_exit); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_return(msg->stmt_return); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN_NEXT: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_return_next(msg->stmt_return_next); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RETURN_QUERY: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_return_query(msg->stmt_return_query); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_RAISE: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_raise(msg->stmt_raise); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ASSERT: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_assert(msg->stmt_assert); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_EXECSQL: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_execsql(msg->stmt_execsql); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_DYNEXECUTE: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_dynexecute(msg->stmt_dynexecute); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_DYNFORS: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_dynfors(msg->stmt_dynfors); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_GETDIAG: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_getdiag(msg->stmt_getdiag); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_OPEN: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_open(msg->stmt_open); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_FETCH: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_fetch(msg->stmt_fetch); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CLOSE: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_close(msg->stmt_close); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_PERFORM: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_perform(msg->stmt_perform); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_CALL: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_call(msg->stmt_call); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_COMMIT: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_commit(msg->stmt_commit); + case PG_QUERY__PLPG_SQL_STMT__STMT_STMT_ROLLBACK: + return (PLpgSQL_stmt *) _readPLpgSQL_stmt_rollback(msg->stmt_rollback); + default: + return NULL; + } +} + + + +static PLpgSQL_datum * +_readPLpgSQL_datum(const PgQuery__PLpgSQLDatum *msg) +{ + switch (msg->datum_case) { + case PG_QUERY__PLPG_SQL_DATUM__DATUM_VAR: + return (PLpgSQL_datum *) _readPLpgSQL_var(msg->var); + case PG_QUERY__PLPG_SQL_DATUM__DATUM_ROW: + return (PLpgSQL_datum *) _readPLpgSQL_row(msg->row); + case PG_QUERY__PLPG_SQL_DATUM__DATUM_REC: + return (PLpgSQL_datum *) _readPLpgSQL_rec(msg->rec); + case PG_QUERY__PLPG_SQL_DATUM__DATUM_RECFIELD: + return (PLpgSQL_datum *) _readPLpgSQL_recfield(msg->recfield); + default: + return NULL; + } +} + + + +static PLpgSQL_type * +_readPLpgSQL_type(const PgQuery__PLpgSQLType *msg) +{ + PLpgSQL_type *node = palloc0(sizeof(PLpgSQL_type)); + READ_STRING_FIELD(typname, typname); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_type_type, ttype, ttype); + return node; +} + +static PLpgSQL_expr * +_readPLpgSQL_expr(const PgQuery__PLpgSQLExpr *msg) +{ + PLpgSQL_expr *node = palloc0(sizeof(PLpgSQL_expr)); + READ_STRING_FIELD(query, query); + READ_INT_FIELD(parse_mode, parseMode); + return node; +} + +static PLpgSQL_var * +_readPLpgSQL_var(const PgQuery__PLpgSQLVar *msg) +{ + PLpgSQL_var *node = palloc0(sizeof(PLpgSQL_var)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + READ_INT_FIELD(dno, dno); + READ_STRING_FIELD(refname, refname); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(isconst, isconst); + READ_BOOL_FIELD(notnull, notnull); + READ_PLPGSQL_EXPR_FIELD(default_val, default_val); + READ_PLPGSQL_TYPE_FIELD(datatype, datatype); + READ_PLPGSQL_EXPR_FIELD(cursor_explicit_expr, cursor_explicit_expr); + READ_INT_FIELD(cursor_explicit_argrow, cursor_explicit_argrow); + READ_INT_FIELD(cursor_options, cursor_options); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_promise_type, promise, promise); + return node; +} + +static PLpgSQL_row * +_readPLpgSQL_row(const PgQuery__PLpgSQLRow *msg) +{ + PLpgSQL_row *node = palloc0(sizeof(PLpgSQL_row)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + READ_INT_FIELD(dno, dno); + READ_STRING_FIELD(refname, refname); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(isconst, isconst); + READ_BOOL_FIELD(notnull, notnull); + READ_PLPGSQL_EXPR_FIELD(default_val, default_val); + READ_INT_FIELD(nfields, nfields); + return node; +} + +static PLpgSQL_rec * +_readPLpgSQL_rec(const PgQuery__PLpgSQLRec *msg) +{ + PLpgSQL_rec *node = palloc0(sizeof(PLpgSQL_rec)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + READ_INT_FIELD(dno, dno); + READ_STRING_FIELD(refname, refname); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(isconst, isconst); + READ_BOOL_FIELD(notnull, notnull); + READ_PLPGSQL_EXPR_FIELD(default_val, default_val); + READ_PLPGSQL_TYPE_FIELD(datatype, datatype); + READ_INT_FIELD(firstfield, firstfield); + return node; +} + +static PLpgSQL_recfield * +_readPLpgSQL_recfield(const PgQuery__PLpgSQLRecfield *msg) +{ + PLpgSQL_recfield *node = palloc0(sizeof(PLpgSQL_recfield)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_datum_type, dtype, dtype); + READ_INT_FIELD(dno, dno); + READ_STRING_FIELD(fieldname, fieldname); + READ_INT_FIELD(recparentno, recparentno); + READ_INT_FIELD(nextfield, nextfield); + return node; +} + +static PLpgSQL_condition * +_readPLpgSQL_condition(const PgQuery__PLpgSQLCondition *msg) +{ + PLpgSQL_condition *node = palloc0(sizeof(PLpgSQL_condition)); + READ_INT_FIELD(sqlerrstate, sqlerrstate); + READ_STRING_FIELD(condname, condname); + return node; +} + +static PLpgSQL_exception_block * +_readPLpgSQL_exception_block(const PgQuery__PLpgSQLExceptionBlock *msg) +{ + PLpgSQL_exception_block *node = palloc0(sizeof(PLpgSQL_exception_block)); + READ_INT_FIELD(sqlstate_varno, sqlstate_varno); + READ_INT_FIELD(sqlerrm_varno, sqlerrm_varno); + READ_PLPGSQL_EXCEPTION_LIST_FIELD(exc_list, exc_list); + return node; +} + +static PLpgSQL_exception * +_readPLpgSQL_exception(const PgQuery__PLpgSQLException *msg) +{ + PLpgSQL_exception *node = palloc0(sizeof(PLpgSQL_exception)); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_CONDITION_FIELD(conditions, conditions); + READ_PLPGSQL_STMT_LIST_FIELD(action, action); + return node; +} + +static PLpgSQL_stmt_block * +_readPLpgSQL_stmt_block(const PgQuery__PLpgSQLStmtBlock *msg) +{ + PLpgSQL_stmt_block *node = palloc0(sizeof(PLpgSQL_stmt_block)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + READ_INT_FIELD(n_initvars, n_initvars); + READ_PLPGSQL_EXCEPTION_BLOCK_FIELD(exceptions, exceptions); + return node; +} + +static PLpgSQL_stmt_assign * +_readPLpgSQL_stmt_assign(const PgQuery__PLpgSQLStmtAssign *msg) +{ + PLpgSQL_stmt_assign *node = palloc0(sizeof(PLpgSQL_stmt_assign)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_INT_FIELD(varno, varno); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + return node; +} + +static PLpgSQL_stmt_perform * +_readPLpgSQL_stmt_perform(const PgQuery__PLpgSQLStmtPerform *msg) +{ + PLpgSQL_stmt_perform *node = palloc0(sizeof(PLpgSQL_stmt_perform)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + return node; +} + +static PLpgSQL_stmt_call * +_readPLpgSQL_stmt_call(const PgQuery__PLpgSQLStmtCall *msg) +{ + PLpgSQL_stmt_call *node = palloc0(sizeof(PLpgSQL_stmt_call)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + READ_BOOL_FIELD(is_call, is_call); + READ_PLPGSQL_DATUM_FIELD(target, target); + return node; +} + +static PLpgSQL_stmt_commit * +_readPLpgSQL_stmt_commit(const PgQuery__PLpgSQLStmtCommit *msg) +{ + PLpgSQL_stmt_commit *node = palloc0(sizeof(PLpgSQL_stmt_commit)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(chain, chain); + return node; +} + +static PLpgSQL_stmt_rollback * +_readPLpgSQL_stmt_rollback(const PgQuery__PLpgSQLStmtRollback *msg) +{ + PLpgSQL_stmt_rollback *node = palloc0(sizeof(PLpgSQL_stmt_rollback)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(chain, chain); + return node; +} + +static PLpgSQL_diag_item * +_readPLpgSQL_diag_item(const PgQuery__PLpgSQLDiagItem *msg) +{ + PLpgSQL_diag_item *node = palloc0(sizeof(PLpgSQL_diag_item)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_getdiag_kind, kind, kind); + READ_INT_FIELD(target, target); + return node; +} + +static PLpgSQL_stmt_getdiag * +_readPLpgSQL_stmt_getdiag(const PgQuery__PLpgSQLStmtGetdiag *msg) +{ + PLpgSQL_stmt_getdiag *node = palloc0(sizeof(PLpgSQL_stmt_getdiag)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(is_stacked, is_stacked); + READ_PLPGSQL_DIAG_ITEM_LIST_FIELD(diag_items, diag_items); + return node; +} + +static PLpgSQL_stmt_if * +_readPLpgSQL_stmt_if(const PgQuery__PLpgSQLStmtIf *msg) +{ + PLpgSQL_stmt_if *node = palloc0(sizeof(PLpgSQL_stmt_if)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(cond, cond); + READ_PLPGSQL_STMT_LIST_FIELD(then_body, then_body); + READ_PLPGSQL_IF_ELSIF_LIST_FIELD(elsif_list, elsif_list); + READ_PLPGSQL_STMT_LIST_FIELD(else_body, else_body); + return node; +} + +static PLpgSQL_if_elsif * +_readPLpgSQL_if_elsif(const PgQuery__PLpgSQLIfElsif *msg) +{ + PLpgSQL_if_elsif *node = palloc0(sizeof(PLpgSQL_if_elsif)); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(cond, cond); + READ_PLPGSQL_STMT_LIST_FIELD(stmts, stmts); + return node; +} + +static PLpgSQL_stmt_case * +_readPLpgSQL_stmt_case(const PgQuery__PLpgSQLStmtCase *msg) +{ + PLpgSQL_stmt_case *node = palloc0(sizeof(PLpgSQL_stmt_case)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(t_expr, t_expr); + READ_INT_FIELD(t_varno, t_varno); + READ_PLPGSQL_CASE_WHEN_LIST_FIELD(case_when_list, case_when_list); + READ_BOOL_FIELD(have_else, have_else); + READ_PLPGSQL_STMT_LIST_FIELD(else_stmts, else_stmts); + return node; +} + +static PLpgSQL_case_when * +_readPLpgSQL_case_when(const PgQuery__PLpgSQLCaseWhen *msg) +{ + PLpgSQL_case_when *node = palloc0(sizeof(PLpgSQL_case_when)); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + READ_PLPGSQL_STMT_LIST_FIELD(stmts, stmts); + return node; +} + +static PLpgSQL_stmt_loop * +_readPLpgSQL_stmt_loop(const PgQuery__PLpgSQLStmtLoop *msg) +{ + PLpgSQL_stmt_loop *node = palloc0(sizeof(PLpgSQL_stmt_loop)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + return node; +} + +static PLpgSQL_stmt_while * +_readPLpgSQL_stmt_while(const PgQuery__PLpgSQLStmtWhile *msg) +{ + PLpgSQL_stmt_while *node = palloc0(sizeof(PLpgSQL_stmt_while)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_EXPR_FIELD(cond, cond); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + return node; +} + +static PLpgSQL_stmt_fori * +_readPLpgSQL_stmt_fori(const PgQuery__PLpgSQLStmtFori *msg) +{ + PLpgSQL_stmt_fori *node = palloc0(sizeof(PLpgSQL_stmt_fori)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_VAR_FIELD(var, var); + READ_PLPGSQL_EXPR_FIELD(lower, lower); + READ_PLPGSQL_EXPR_FIELD(upper, upper); + READ_PLPGSQL_EXPR_FIELD(step, step); + READ_INT_FIELD(reverse, reverse); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + return node; +} + +static PLpgSQL_stmt_fors * +_readPLpgSQL_stmt_fors(const PgQuery__PLpgSQLStmtFors *msg) +{ + PLpgSQL_stmt_fors *node = palloc0(sizeof(PLpgSQL_stmt_fors)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_DATUM_FIELD(var, var); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + READ_PLPGSQL_EXPR_FIELD(query, query); + return node; +} + +static PLpgSQL_stmt_forc * +_readPLpgSQL_stmt_forc(const PgQuery__PLpgSQLStmtForc *msg) +{ + PLpgSQL_stmt_forc *node = palloc0(sizeof(PLpgSQL_stmt_forc)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_DATUM_FIELD(var, var); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + READ_INT_FIELD(curvar, curvar); + READ_PLPGSQL_EXPR_FIELD(argquery, argquery); + return node; +} + +static PLpgSQL_stmt_dynfors * +_readPLpgSQL_stmt_dynfors(const PgQuery__PLpgSQLStmtDynfors *msg) +{ + PLpgSQL_stmt_dynfors *node = palloc0(sizeof(PLpgSQL_stmt_dynfors)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_DATUM_FIELD(var, var); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + READ_PLPGSQL_EXPR_FIELD(query, query); + READ_PLPGSQL_EXPR_LIST_FIELD(params, params); + return node; +} + +static PLpgSQL_stmt_foreach_a * +_readPLpgSQL_stmt_foreach_a(const PgQuery__PLpgSQLStmtForeachA *msg) +{ + PLpgSQL_stmt_foreach_a *node = palloc0(sizeof(PLpgSQL_stmt_foreach_a)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_STRING_FIELD(label, label); + READ_INT_FIELD(varno, varno); + READ_INT_FIELD(slice, slice); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + READ_PLPGSQL_STMT_LIST_FIELD(body, body); + return node; +} + +static PLpgSQL_stmt_open * +_readPLpgSQL_stmt_open(const PgQuery__PLpgSQLStmtOpen *msg) +{ + PLpgSQL_stmt_open *node = palloc0(sizeof(PLpgSQL_stmt_open)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_INT_FIELD(curvar, curvar); + READ_INT_FIELD(cursor_options, cursor_options); + READ_PLPGSQL_EXPR_FIELD(argquery, argquery); + READ_PLPGSQL_EXPR_FIELD(query, query); + READ_PLPGSQL_EXPR_FIELD(dynquery, dynquery); + READ_PLPGSQL_EXPR_LIST_FIELD(params, params); + return node; +} + +static PLpgSQL_stmt_fetch * +_readPLpgSQL_stmt_fetch(const PgQuery__PLpgSQLStmtFetch *msg) +{ + PLpgSQL_stmt_fetch *node = palloc0(sizeof(PLpgSQL_stmt_fetch)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_DATUM_FIELD(target, target); + READ_INT_FIELD(curvar, curvar); + READ_INT_FIELD(direction, direction); + READ_LONG_FIELD(how_many, how_many); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + READ_BOOL_FIELD(is_move, is_move); + READ_BOOL_FIELD(returns_multiple_rows, returns_multiple_rows); + return node; +} + +static PLpgSQL_stmt_close * +_readPLpgSQL_stmt_close(const PgQuery__PLpgSQLStmtClose *msg) +{ + PLpgSQL_stmt_close *node = palloc0(sizeof(PLpgSQL_stmt_close)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_INT_FIELD(curvar, curvar); + return node; +} + +static PLpgSQL_stmt_exit * +_readPLpgSQL_stmt_exit(const PgQuery__PLpgSQLStmtExit *msg) +{ + PLpgSQL_stmt_exit *node = palloc0(sizeof(PLpgSQL_stmt_exit)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_BOOL_FIELD(is_exit, is_exit); + READ_STRING_FIELD(label, label); + READ_PLPGSQL_EXPR_FIELD(cond, cond); + return node; +} + +static PLpgSQL_stmt_return * +_readPLpgSQL_stmt_return(const PgQuery__PLpgSQLStmtReturn *msg) +{ + PLpgSQL_stmt_return *node = palloc0(sizeof(PLpgSQL_stmt_return)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + READ_INT_FIELD(retvarno, retvarno); + return node; +} + +static PLpgSQL_stmt_return_next * +_readPLpgSQL_stmt_return_next(const PgQuery__PLpgSQLStmtReturnNext *msg) +{ + PLpgSQL_stmt_return_next *node = palloc0(sizeof(PLpgSQL_stmt_return_next)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + READ_INT_FIELD(retvarno, retvarno); + return node; +} + +static PLpgSQL_stmt_return_query * +_readPLpgSQL_stmt_return_query(const PgQuery__PLpgSQLStmtReturnQuery *msg) +{ + PLpgSQL_stmt_return_query *node = palloc0(sizeof(PLpgSQL_stmt_return_query)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(query, query); + READ_PLPGSQL_EXPR_FIELD(dynquery, dynquery); + READ_PLPGSQL_EXPR_LIST_FIELD(params, params); + return node; +} + +static PLpgSQL_stmt_raise * +_readPLpgSQL_stmt_raise(const PgQuery__PLpgSQLStmtRaise *msg) +{ + PLpgSQL_stmt_raise *node = palloc0(sizeof(PLpgSQL_stmt_raise)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_INT_FIELD(elog_level, elog_level); + READ_STRING_FIELD(condname, condname); + READ_STRING_FIELD(message, message); + READ_PLPGSQL_EXPR_LIST_FIELD(params, params); + READ_PLPGSQL_RAISE_OPTION_LIST_FIELD(options, options); + return node; +} + +static PLpgSQL_raise_option * +_readPLpgSQL_raise_option(const PgQuery__PLpgSQLRaiseOption *msg) +{ + PLpgSQL_raise_option *node = palloc0(sizeof(PLpgSQL_raise_option)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_raise_option_type, opt_type, opt_type); + READ_PLPGSQL_EXPR_FIELD(expr, expr); + return node; +} + +static PLpgSQL_stmt_assert * +_readPLpgSQL_stmt_assert(const PgQuery__PLpgSQLStmtAssert *msg) +{ + PLpgSQL_stmt_assert *node = palloc0(sizeof(PLpgSQL_stmt_assert)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(cond, cond); + READ_PLPGSQL_EXPR_FIELD(message, message); + return node; +} + +static PLpgSQL_stmt_execsql * +_readPLpgSQL_stmt_execsql(const PgQuery__PLpgSQLStmtExecsql *msg) +{ + PLpgSQL_stmt_execsql *node = palloc0(sizeof(PLpgSQL_stmt_execsql)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(sqlstmt, sqlstmt); + READ_BOOL_FIELD(mod_stmt, mod_stmt); + READ_BOOL_FIELD(mod_stmt_set, mod_stmt_set); + READ_BOOL_FIELD(into, into); + READ_BOOL_FIELD(strict, strict); + READ_PLPGSQL_DATUM_FIELD(target, target); + return node; +} + +static PLpgSQL_stmt_dynexecute * +_readPLpgSQL_stmt_dynexecute(const PgQuery__PLpgSQLStmtDynexecute *msg) +{ + PLpgSQL_stmt_dynexecute *node = palloc0(sizeof(PLpgSQL_stmt_dynexecute)); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_stmt_type, cmd_type, cmd_type); + READ_INT_FIELD(lineno, lineno); + READ_PLPGSQL_EXPR_FIELD(query, query); + READ_BOOL_FIELD(into, into); + READ_BOOL_FIELD(strict, strict); + READ_PLPGSQL_DATUM_FIELD(target, target); + READ_PLPGSQL_EXPR_LIST_FIELD(params, params); + return node; +} + +static PLpgSQL_function * +_readPLpgSQL_function(const PgQuery__PLpgSQLFunction *msg) +{ + PLpgSQL_function *node = palloc0(sizeof(PLpgSQL_function)); + READ_STRING_FIELD(fn_signature, fn_signature); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_trigtype, fn_is_trigger, fn_is_trigger); + READ_INT_FIELD(out_param_varno, out_param_varno); + READ_INT_FIELD(found_varno, found_varno); + READ_INT_FIELD(new_varno, new_varno); + READ_INT_FIELD(old_varno, old_varno); + READ_PLPGSQL_ENUM_FIELD(PLpgSQL_resolve_option, resolve_option, resolve_option); + READ_BOOL_FIELD(print_strict_params, print_strict_params); + READ_INT_FIELD(extra_warnings, extra_warnings); + READ_INT_FIELD(extra_errors, extra_errors); + READ_INT_FIELD(ndatums, ndatums); + READ_PLPGSQL_STMT_BLOCK_FIELD(action, action); + return node; +} + + diff --git a/src/pg_query_outfuncs_plpgsql.c b/src/pg_query_outfuncs_plpgsql.c new file mode 100644 index 000000000..ca205f4fd --- /dev/null +++ b/src/pg_query_outfuncs_plpgsql.c @@ -0,0 +1,362 @@ +/* + * pg_query_outfuncs_plpgsql.c + * + * PLpgSQL to protobuf serialization. + * This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + */ + +#include "pg_query.h" +#include "pg_query_internal.h" + +#include + +#include "protobuf/pg_query.pb-c.h" + +// Macros for writing PLpgSQL fields to protobuf +#define WRITE_BOOL_FIELD(outname, json_name, field) \ + out->outname = node->field + +#define WRITE_INT_FIELD(outname, json_name, field) \ + out->outname = node->field + +#define WRITE_LONG_FIELD(outname, json_name, field) \ + out->outname = node->field + +#define WRITE_STRING_FIELD(outname, json_name, field) \ + if (node->field != NULL) out->outname = pstrdup(node->field) + +#define WRITE_CHAR_FIELD(outname, json_name, field) \ + { char buf[2] = {node->field, '\0'}; out->outname = pstrdup(buf); } + +#define WRITE_PLPGSQL_ENUM_FIELD(enum_type, outname, field) \ + out->outname = _plpgsqlEnumToInt##enum_type(node->field) + +#define WRITE_PLPGSQL_EXPR_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLExpr)); \ + pg_query__plpg_sql_expr__init(out->outname); \ + _outPLpgSQL_expr(out->outname, node->field); \ + } + +#define WRITE_PLPGSQL_TYPE_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLType)); \ + pg_query__plpg_sql_type__init(out->outname); \ + _outPLpgSQL_type(out->outname, node->field); \ + } + +#define WRITE_PLPGSQL_VAR_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLVar)); \ + pg_query__plpg_sql_var__init(out->outname); \ + _outPLpgSQL_var(out->outname, node->field); \ + } + +#define WRITE_PLPGSQL_DATUM_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLDatum)); \ + pg_query__plpg_sql_datum__init(out->outname); \ + _outPLpgSQL_datum(out->outname, (PLpgSQL_datum *) node->field); \ + } + +#define WRITE_PLPGSQL_CONDITION_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLCondition)); \ + pg_query__plpg_sql_condition__init(out->outname); \ + _outPLpgSQL_condition(out->outname, node->field); \ + } + +#define WRITE_PLPGSQL_EXCEPTION_BLOCK_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLExceptionBlock)); \ + pg_query__plpg_sql_exception_block__init(out->outname); \ + _outPLpgSQL_exception_block(out->outname, node->field); \ + } + +#define WRITE_PLPGSQL_STMT_BLOCK_FIELD(outname, field) \ + if (node->field != NULL) { \ + out->outname = palloc0(sizeof(PgQuery__PLpgSQLStmtBlock)); \ + pg_query__plpg_sql_stmt_block__init(out->outname); \ + _outPLpgSQL_stmt_block(out->outname, node->field); \ + } + +#define WRITE_PLPGSQL_STMT_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLStmt*)); \ + foreach(lc, node->field) { \ + PLpgSQL_stmt *stmt = (PLpgSQL_stmt *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLStmt)); \ + pg_query__plpg_sql_stmt__init(out->outname[i]); \ + _outPLpgSQL_stmt(out->outname[i], stmt); \ + i++; \ + } \ + } + +#define WRITE_PLPGSQL_EXCEPTION_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLException*)); \ + foreach(lc, node->field) { \ + PLpgSQL_exception *exc = (PLpgSQL_exception *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLException)); \ + pg_query__plpg_sql_exception__init(out->outname[i]); \ + _outPLpgSQL_exception(out->outname[i], exc); \ + i++; \ + } \ + } + +#define WRITE_PLPGSQL_IF_ELSIF_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLIfElsif*)); \ + foreach(lc, node->field) { \ + PLpgSQL_if_elsif *elsif = (PLpgSQL_if_elsif *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLIfElsif)); \ + pg_query__plpg_sql_if_elsif__init(out->outname[i]); \ + _outPLpgSQL_if_elsif(out->outname[i], elsif); \ + i++; \ + } \ + } + +#define WRITE_PLPGSQL_CASE_WHEN_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLCaseWhen*)); \ + foreach(lc, node->field) { \ + PLpgSQL_case_when *when = (PLpgSQL_case_when *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLCaseWhen)); \ + pg_query__plpg_sql_case_when__init(out->outname[i]); \ + _outPLpgSQL_case_when(out->outname[i], when); \ + i++; \ + } \ + } + +#define WRITE_PLPGSQL_DIAG_ITEM_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLDiagItem*)); \ + foreach(lc, node->field) { \ + PLpgSQL_diag_item *item = (PLpgSQL_diag_item *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLDiagItem)); \ + pg_query__plpg_sql_diag_item__init(out->outname[i]); \ + _outPLpgSQL_diag_item(out->outname[i], item); \ + i++; \ + } \ + } + +#define WRITE_PLPGSQL_EXPR_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLExpr*)); \ + foreach(lc, node->field) { \ + PLpgSQL_expr *expr = (PLpgSQL_expr *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLExpr)); \ + pg_query__plpg_sql_expr__init(out->outname[i]); \ + _outPLpgSQL_expr(out->outname[i], expr); \ + i++; \ + } \ + } + +#define WRITE_PLPGSQL_RAISE_OPTION_LIST_FIELD(outname, field) \ + if (node->field != NIL) { \ + ListCell *lc; \ + int i = 0; \ + out->n_##outname = list_length(node->field); \ + out->outname = palloc0(out->n_##outname * sizeof(PgQuery__PLpgSQLRaiseOption*)); \ + foreach(lc, node->field) { \ + PLpgSQL_raise_option *opt = (PLpgSQL_raise_option *) lfirst(lc); \ + out->outname[i] = palloc0(sizeof(PgQuery__PLpgSQLRaiseOption)); \ + pg_query__plpg_sql_raise_option__init(out->outname[i]); \ + _outPLpgSQL_raise_option(out->outname[i], opt); \ + i++; \ + } \ + } + +#define WRITE_INT_ARRAY_FIELD(outname, field, count_field) \ + if (node->field != NULL && node->count_field > 0) { \ + int i; \ + out->n_##outname = node->count_field; \ + out->outname = palloc0(out->n_##outname * sizeof(int32_t)); \ + for (i = 0; i < node->count_field; i++) { \ + out->outname[i] = node->field[i]; \ + } \ + } + +#define WRITE_STRING_ARRAY_FIELD(outname, field, count_field) \ + if (node->field != NULL && node->count_field > 0) { \ + int i; \ + out->n_##outname = node->count_field; \ + out->outname = palloc0(out->n_##outname * sizeof(char*)); \ + for (i = 0; i < node->count_field; i++) { \ + if (node->field[i] != NULL) \ + out->outname[i] = pstrdup(node->field[i]); \ + } \ + } + +// READ macros for deserialization + +#define READ_BOOL_FIELD(protoname, field) \ + node->field = msg->protoname + +#define READ_INT_FIELD(protoname, field) \ + node->field = msg->protoname + +#define READ_LONG_FIELD(protoname, field) \ + node->field = msg->protoname + +#define READ_STRING_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = pstrdup(msg->protoname) + +#define READ_CHAR_FIELD(protoname, field) \ + if (msg->protoname != NULL && msg->protoname[0] != '\0') node->field = msg->protoname[0] + +#define READ_PLPGSQL_ENUM_FIELD(enum_type, protoname, field) \ + node->field = _plpgsqlIntToEnum##enum_type(msg->protoname) + +#define READ_PLPGSQL_EXPR_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = _readPLpgSQL_expr(msg->protoname) + +#define READ_PLPGSQL_TYPE_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = _readPLpgSQL_type(msg->protoname) + +#define READ_PLPGSQL_VAR_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = _readPLpgSQL_var(msg->protoname) + +#define READ_PLPGSQL_DATUM_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = (PLpgSQL_variable *) _readPLpgSQL_datum(msg->protoname) + +#define READ_PLPGSQL_CONDITION_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = _readPLpgSQL_condition(msg->protoname) + +#define READ_PLPGSQL_EXCEPTION_BLOCK_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = _readPLpgSQL_exception_block(msg->protoname) + +#define READ_PLPGSQL_STMT_BLOCK_FIELD(protoname, field) \ + if (msg->protoname != NULL) node->field = _readPLpgSQL_stmt_block(msg->protoname) + +#define READ_PLPGSQL_STMT_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_stmt *stmt = _readPLpgSQL_stmt(msg->protoname[i]); \ + node->field = lappend(node->field, stmt); \ + } \ + } + +#define READ_PLPGSQL_EXCEPTION_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_exception *exc = _readPLpgSQL_exception(msg->protoname[i]); \ + node->field = lappend(node->field, exc); \ + } \ + } + +#define READ_PLPGSQL_IF_ELSIF_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_if_elsif *elsif = _readPLpgSQL_if_elsif(msg->protoname[i]); \ + node->field = lappend(node->field, elsif); \ + } \ + } + +#define READ_PLPGSQL_CASE_WHEN_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_case_when *when = _readPLpgSQL_case_when(msg->protoname[i]); \ + node->field = lappend(node->field, when); \ + } \ + } + +#define READ_PLPGSQL_DIAG_ITEM_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_diag_item *item = _readPLpgSQL_diag_item(msg->protoname[i]); \ + node->field = lappend(node->field, item); \ + } \ + } + +#define READ_PLPGSQL_EXPR_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_expr *expr = _readPLpgSQL_expr(msg->protoname[i]); \ + node->field = lappend(node->field, expr); \ + } \ + } + +#define READ_PLPGSQL_RAISE_OPTION_LIST_FIELD(protoname, field) \ + if (msg->n_##protoname > 0) { \ + int i; \ + node->field = NIL; \ + for (i = 0; i < msg->n_##protoname; i++) { \ + PLpgSQL_raise_option *opt = _readPLpgSQL_raise_option(msg->protoname[i]); \ + node->field = lappend(node->field, opt); \ + } \ + } + +// Include generated enum conversion functions +#include "include/pg_query_plpgsql_enum_defs.c" + +// Include generated outfuncs definitions +#include "include/pg_query_outfuncs_plpgsql_defs.c" + +// Include generated readfuncs definitions +#include "include/pg_query_readfuncs_plpgsql_defs.c" + +// Public API +PgQueryProtobuf +pg_query_plpgsql_funcs_to_protobuf(PLpgSQL_function **funcs, int nfuncs) +{ + PgQueryProtobuf protobuf = {0}; + int i; + PgQuery__PLpgSQLParseResult parse_result = PG_QUERY__PLPG_SQLPARSE_RESULT__INIT; + + parse_result.version = PG_VERSION_NUM; + + if (funcs == NULL || nfuncs == 0) + { + parse_result.n_plpgsql_funcs = 0; + parse_result.plpgsql_funcs = NULL; + } + else + { + parse_result.n_plpgsql_funcs = nfuncs; + parse_result.plpgsql_funcs = palloc(sizeof(PgQuery__PLpgSQLFunction*) * nfuncs); + + for (i = 0; i < nfuncs; i++) + { + parse_result.plpgsql_funcs[i] = palloc(sizeof(PgQuery__PLpgSQLFunction)); + pg_query__plpg_sql_function__init(parse_result.plpgsql_funcs[i]); + _outPLpgSQL_function(parse_result.plpgsql_funcs[i], funcs[i]); + } + } + + protobuf.len = pg_query__plpg_sqlparse_result__get_packed_size(&parse_result); + protobuf.data = malloc(sizeof(char) * protobuf.len); + pg_query__plpg_sqlparse_result__pack(&parse_result, (void*) protobuf.data); + + return protobuf; +} diff --git a/src/pg_query_parse_plpgsql.c b/src/pg_query_parse_plpgsql.c index 865d69e81..0d6f0b1e6 100644 --- a/src/pg_query_parse_plpgsql.c +++ b/src/pg_query_parse_plpgsql.c @@ -17,7 +17,7 @@ typedef struct { PgQueryError* error; } PgQueryInternalPlpgsqlFuncAndError; -static PgQueryInternalPlpgsqlFuncAndError pg_query_raw_parse_plpgsql(Node* stmt); +PgQueryInternalPlpgsqlFuncAndError pg_query_raw_parse_plpgsql(Node* stmt); static void add_dummy_return(PLpgSQL_function *function) { diff --git a/src/pg_query_parse_plpgsql_protobuf.c b/src/pg_query_parse_plpgsql_protobuf.c new file mode 100644 index 000000000..32b2df972 --- /dev/null +++ b/src/pg_query_parse_plpgsql_protobuf.c @@ -0,0 +1,223 @@ +/* + * pg_query_parse_plpgsql_protobuf.c + * + * Public API for parsing PL/pgSQL to protobuf format. + * This file is autogenerated by ./scripts/generate_plpgsql_protobuf.rb + */ + +#include +#include +#include +#include + +#include "pg_query.h" +#include "pg_query_internal.h" +#include "pg_query_json_plpgsql.h" + +#include +#include +#include +#include +#include +#include + +#include "protobuf/pg_query.pb-c.h" + +// Include generated outfuncs macros +#include "pg_query_outfuncs_plpgsql.c" + +typedef struct { + PLpgSQL_function *func; + PgQueryError* error; +} PgQueryInternalPlpgsqlFuncAndError; + +/* Forward declaration from pg_query_parse_plpgsql.c */ +extern PgQueryInternalPlpgsqlFuncAndError pg_query_raw_parse_plpgsql(Node* stmt); + +typedef struct plStmts +{ + Node **stmts; + int stmts_buf_size; + int stmts_count; +} plStmts; + +static bool stmts_walker(Node *node, plStmts *state) +{ + bool result; + MemoryContext ccxt = CurrentMemoryContext; + + if (node == NULL) return false; + + if (IsA(node, CreateFunctionStmt) || IsA(node, DoStmt)) + { + if (state->stmts_count >= state->stmts_buf_size) + { + state->stmts_buf_size *= 2; + state->stmts = (Node**) repalloc(state->stmts, state->stmts_buf_size * sizeof(Node*)); + } + state->stmts[state->stmts_count] = (Node *) node; + state->stmts_count++; + } else if (IsA(node, RawStmt)) { + return stmts_walker((Node *) ((RawStmt *) node)->stmt, state); + } + + PG_TRY(); + { + result = raw_expression_tree_walker(node, stmts_walker, (void*) state); + } + PG_CATCH(); + { + MemoryContextSwitchTo(ccxt); + FlushErrorState(); + result = false; + } + PG_END_TRY(); + + return result; +} + +PgQueryPlpgsqlProtobufParseResult pg_query_parse_plpgsql_protobuf(const char* input) +{ + MemoryContext ctx = NULL; + PgQueryPlpgsqlProtobufParseResult result = {0}; + PgQueryInternalParsetreeAndError parse_result; + plStmts statements; + size_t i; + PgQuery__PLpgSQLParseResult *parse_result_msg; + + ctx = pg_query_enter_memory_context(); + + /* Parse the SQL input first to find CREATE FUNCTION/DO statements */ + parse_result = pg_query_raw_parse(input, PG_QUERY_PARSE_DEFAULT); + result.error = parse_result.error; + if (result.error != NULL) { + pg_query_exit_memory_context(ctx); + return result; + } + + statements.stmts_buf_size = 100; + statements.stmts = (Node**) palloc(statements.stmts_buf_size * sizeof(Node*)); + statements.stmts_count = 0; + + stmts_walker((Node*) parse_result.tree, &statements); + + /* Create the protobuf result message */ + parse_result_msg = palloc0(sizeof(PgQuery__PLpgSQLParseResult)); + pg_query__plpg_sqlparse_result__init(parse_result_msg); + parse_result_msg->version = PG_VERSION_NUM; + + if (statements.stmts_count == 0) { + parse_result_msg->n_plpgsql_funcs = 0; + parse_result_msg->plpgsql_funcs = NULL; + } else { + parse_result_msg->n_plpgsql_funcs = statements.stmts_count; + parse_result_msg->plpgsql_funcs = palloc0(statements.stmts_count * sizeof(PgQuery__PLpgSQLFunction*)); + + for (i = 0; i < statements.stmts_count; i++) { + PgQueryInternalPlpgsqlFuncAndError func_and_error; + + func_and_error = pg_query_raw_parse_plpgsql(statements.stmts[i]); + + result.error = func_and_error.error; + if (result.error != NULL) { + pg_query_exit_memory_context(ctx); + return result; + } + + if (func_and_error.func != NULL) { + parse_result_msg->plpgsql_funcs[i] = palloc0(sizeof(PgQuery__PLpgSQLFunction)); + pg_query__plpg_sql_function__init(parse_result_msg->plpgsql_funcs[i]); + _outPLpgSQL_function(parse_result_msg->plpgsql_funcs[i], func_and_error.func); + plpgsql_free_function_memory(func_and_error.func); + } + } + } + + /* Pack the protobuf message */ + result.parse_tree.len = pg_query__plpg_sqlparse_result__get_packed_size(parse_result_msg); + result.parse_tree.data = malloc(result.parse_tree.len); + pg_query__plpg_sqlparse_result__pack(parse_result_msg, (uint8_t*) result.parse_tree.data); + + /* Copy stderr buffer if present */ + if (parse_result.stderr_buffer != NULL) { + result.stderr_buffer = strdup(parse_result.stderr_buffer); + free(parse_result.stderr_buffer); + } + + pg_query_exit_memory_context(ctx); + + return result; +} + +void pg_query_free_plpgsql_protobuf_parse_result(PgQueryPlpgsqlProtobufParseResult result) +{ + if (result.error) { + pg_query_free_error(result.error); + } + + if (result.parse_tree.data) { + free(result.parse_tree.data); + } + + if (result.stderr_buffer) { + free(result.stderr_buffer); + } +} + +char* pg_query_plpgsql_protobuf_to_json(PgQueryProtobuf protobuf) +{ + MemoryContext ctx = NULL; + PgQuery__PLpgSQLParseResult *parse_result; + char *json_result; + size_t i; + size_t json_len; + + ctx = pg_query_enter_memory_context(); + + /* Unpack the protobuf */ + parse_result = pg_query__plpg_sqlparse_result__unpack(NULL, + protobuf.len, (const uint8_t*) protobuf.data); + + if (parse_result == NULL) { + pg_query_exit_memory_context(ctx); + return strdup("[]"); + } + + if (parse_result->n_plpgsql_funcs == 0) { + pg_query__plpg_sqlparse_result__free_unpacked(parse_result, NULL); + pg_query_exit_memory_context(ctx); + return strdup("[]"); + } + + /* Build JSON array - reuse existing JSON conversion by converting back to PLpgSQL_function */ + json_result = strdup("[\n"); + + for (i = 0; i < parse_result->n_plpgsql_funcs; i++) { + PLpgSQL_function *func; + char *func_json; + char *new_out; + size_t new_out_len; + + func = _readPLpgSQL_function(parse_result->plpgsql_funcs[i]); + func_json = plpgsqlToJSON(func); + + new_out_len = strlen(json_result) + strlen(func_json) + 3; + new_out = malloc(new_out_len); + snprintf(new_out, new_out_len, "%s%s,\n", json_result, func_json); + free(json_result); + pfree(func_json); + json_result = new_out; + } + + /* Fix trailing comma */ + json_len = strlen(json_result); + if (json_len >= 2) { + json_result[json_len - 2] = '\n'; + json_result[json_len - 1] = ']'; + } + + pg_query__plpg_sqlparse_result__free_unpacked(parse_result, NULL); + pg_query_exit_memory_context(ctx); + + return json_result; +} diff --git a/srcdata/plpgsql_enum_defs.json b/srcdata/plpgsql_enum_defs.json new file mode 100644 index 000000000..d7a0808b6 --- /dev/null +++ b/srcdata/plpgsql_enum_defs.json @@ -0,0 +1,457 @@ +{ + "PLpgSQL_nsitem_type": { + "values": [ + { + "name": "PLPGSQL_NSTYPE_LABEL", + "value": 0, + "comment": "/* block label */" + }, + { + "name": "PLPGSQL_NSTYPE_VAR", + "value": 1, + "comment": "/* scalar variable */" + }, + { + "name": "PLPGSQL_NSTYPE_REC", + "value": 2, + "comment": "/* composite variable */" + } + ], + "comment": "/*\n * Compiler's namespace item types\n */\n" + }, + "PLpgSQL_label_type": { + "values": [ + { + "name": "PLPGSQL_LABEL_BLOCK", + "value": 0, + "comment": "/* DECLARE/BEGIN block */" + }, + { + "name": "PLPGSQL_LABEL_LOOP", + "value": 1, + "comment": "/* looping construct */" + }, + { + "name": "PLPGSQL_LABEL_OTHER", + "value": 2, + "comment": "/* anything else */" + } + ], + "comment": "/*\n * A PLPGSQL_NSTYPE_LABEL stack entry must be one of these types\n */\n" + }, + "PLpgSQL_datum_type": { + "values": [ + { + "name": "PLPGSQL_DTYPE_VAR", + "value": 0, + "comment": null + }, + { + "name": "PLPGSQL_DTYPE_ROW", + "value": 1, + "comment": null + }, + { + "name": "PLPGSQL_DTYPE_REC", + "value": 2, + "comment": null + }, + { + "name": "PLPGSQL_DTYPE_RECFIELD", + "value": 3, + "comment": null + }, + { + "name": "PLPGSQL_DTYPE_PROMISE", + "value": 4, + "comment": null + } + ], + "comment": "/*\n * Datum array node types\n */\n" + }, + "PLpgSQL_promise_type": { + "values": [ + { + "name": "PLPGSQL_PROMISE_NONE", + "value": 0, + "comment": "/* not a promise, or promise satisfied */" + }, + { + "name": "PLPGSQL_PROMISE_TG_NAME", + "value": 1, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_WHEN", + "value": 2, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_LEVEL", + "value": 3, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_OP", + "value": 4, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_RELID", + "value": 5, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_TABLE_NAME", + "value": 6, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_TABLE_SCHEMA", + "value": 7, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_NARGS", + "value": 8, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_ARGV", + "value": 9, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_EVENT", + "value": 10, + "comment": null + }, + { + "name": "PLPGSQL_PROMISE_TG_TAG", + "value": 11, + "comment": null + } + ], + "comment": "/*\n * DTYPE_PROMISE datums have these possible ways of computing the promise\n */\n" + }, + "PLpgSQL_type_type": { + "values": [ + { + "name": "PLPGSQL_TTYPE_SCALAR", + "value": 0, + "comment": "/* scalar types and domains */" + }, + { + "name": "PLPGSQL_TTYPE_REC", + "value": 1, + "comment": "/* composite types, including RECORD */" + }, + { + "name": "PLPGSQL_TTYPE_PSEUDO", + "value": 2, + "comment": "/* pseudotypes */" + } + ], + "comment": "/*\n * Variants distinguished in PLpgSQL_type structs\n */\n" + }, + "PLpgSQL_stmt_type": { + "values": [ + { + "name": "PLPGSQL_STMT_BLOCK", + "value": 0, + "comment": null + }, + { + "name": "PLPGSQL_STMT_ASSIGN", + "value": 1, + "comment": null + }, + { + "name": "PLPGSQL_STMT_IF", + "value": 2, + "comment": null + }, + { + "name": "PLPGSQL_STMT_CASE", + "value": 3, + "comment": null + }, + { + "name": "PLPGSQL_STMT_LOOP", + "value": 4, + "comment": null + }, + { + "name": "PLPGSQL_STMT_WHILE", + "value": 5, + "comment": null + }, + { + "name": "PLPGSQL_STMT_FORI", + "value": 6, + "comment": null + }, + { + "name": "PLPGSQL_STMT_FORS", + "value": 7, + "comment": null + }, + { + "name": "PLPGSQL_STMT_FORC", + "value": 8, + "comment": null + }, + { + "name": "PLPGSQL_STMT_FOREACH_A", + "value": 9, + "comment": null + }, + { + "name": "PLPGSQL_STMT_EXIT", + "value": 10, + "comment": null + }, + { + "name": "PLPGSQL_STMT_RETURN", + "value": 11, + "comment": null + }, + { + "name": "PLPGSQL_STMT_RETURN_NEXT", + "value": 12, + "comment": null + }, + { + "name": "PLPGSQL_STMT_RETURN_QUERY", + "value": 13, + "comment": null + }, + { + "name": "PLPGSQL_STMT_RAISE", + "value": 14, + "comment": null + }, + { + "name": "PLPGSQL_STMT_ASSERT", + "value": 15, + "comment": null + }, + { + "name": "PLPGSQL_STMT_EXECSQL", + "value": 16, + "comment": null + }, + { + "name": "PLPGSQL_STMT_DYNEXECUTE", + "value": 17, + "comment": null + }, + { + "name": "PLPGSQL_STMT_DYNFORS", + "value": 18, + "comment": null + }, + { + "name": "PLPGSQL_STMT_GETDIAG", + "value": 19, + "comment": null + }, + { + "name": "PLPGSQL_STMT_OPEN", + "value": 20, + "comment": null + }, + { + "name": "PLPGSQL_STMT_FETCH", + "value": 21, + "comment": null + }, + { + "name": "PLPGSQL_STMT_CLOSE", + "value": 22, + "comment": null + }, + { + "name": "PLPGSQL_STMT_PERFORM", + "value": 23, + "comment": null + }, + { + "name": "PLPGSQL_STMT_CALL", + "value": 24, + "comment": null + }, + { + "name": "PLPGSQL_STMT_COMMIT", + "value": 25, + "comment": null + }, + { + "name": "PLPGSQL_STMT_ROLLBACK", + "value": 26, + "comment": null + } + ], + "comment": "/*\n * Execution tree node types\n */\n" + }, + "PLpgSQL_getdiag_kind": { + "values": [ + { + "name": "PLPGSQL_GETDIAG_ROW_COUNT", + "value": 0, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_ROUTINE_OID", + "value": 1, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_CONTEXT", + "value": 2, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_ERROR_CONTEXT", + "value": 3, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_ERROR_DETAIL", + "value": 4, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_ERROR_HINT", + "value": 5, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_RETURNED_SQLSTATE", + "value": 6, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_COLUMN_NAME", + "value": 7, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_CONSTRAINT_NAME", + "value": 8, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_DATATYPE_NAME", + "value": 9, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_MESSAGE_TEXT", + "value": 10, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_TABLE_NAME", + "value": 11, + "comment": null + }, + { + "name": "PLPGSQL_GETDIAG_SCHEMA_NAME", + "value": 12, + "comment": null + } + ], + "comment": "/*\n * GET DIAGNOSTICS information items\n */\n" + }, + "PLpgSQL_raise_option_type": { + "values": [ + { + "name": "PLPGSQL_RAISEOPTION_ERRCODE", + "value": 0, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_MESSAGE", + "value": 1, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_DETAIL", + "value": 2, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_HINT", + "value": 3, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_COLUMN", + "value": 4, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_CONSTRAINT", + "value": 5, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_DATATYPE", + "value": 6, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_TABLE", + "value": 7, + "comment": null + }, + { + "name": "PLPGSQL_RAISEOPTION_SCHEMA", + "value": 8, + "comment": null + } + ], + "comment": "/*\n * RAISE statement options\n */\n" + }, + "PLpgSQL_resolve_option": { + "values": [ + { + "name": "PLPGSQL_RESOLVE_ERROR", + "value": 0, + "comment": "/* throw error if ambiguous */" + }, + { + "name": "PLPGSQL_RESOLVE_VARIABLE", + "value": 1, + "comment": "/* prefer plpgsql var to table column */" + }, + { + "name": "PLPGSQL_RESOLVE_COLUMN", + "value": 2, + "comment": "/* prefer table column to plpgsql var */" + } + ], + "comment": "/*\n * Behavioral modes for plpgsql variable resolution\n */\n" + }, + "PLpgSQL_trigtype": { + "values": [ + { + "name": "PLPGSQL_DML_TRIGGER", + "value": 0, + "comment": null + }, + { + "name": "PLPGSQL_EVENT_TRIGGER", + "value": 1, + "comment": null + }, + { + "name": "PLPGSQL_NOT_TRIGGER", + "value": 2, + "comment": null + } + ], + "comment": "/*\n * Trigger type\n */\n" + } +} \ No newline at end of file diff --git a/srcdata/plpgsql_struct_defs.json b/srcdata/plpgsql_struct_defs.json new file mode 100644 index 000000000..7a207aaf2 --- /dev/null +++ b/srcdata/plpgsql_struct_defs.json @@ -0,0 +1,1494 @@ +{ + "PLpgSQL_type": { + "fields": [ + { + "name": "typname", + "c_type": "char*", + "comment": "/* (simple) name of the type */" + }, + { + "name": "ttype", + "c_type": "PLpgSQL_type_type", + "comment": "/* PLPGSQL_TTYPE_ code */" + }, + { + "comment": "\t/* Remaining fields are used only for named composite types (not RECORD) */\n" + } + ], + "comment": "/*\n * Postgres data type\n */\n" + }, + "PLpgSQL_expr": { + "fields": [ + { + "name": "query", + "c_type": "char*", + "comment": "/* query string, verbatim from function body */" + }, + { + "name": "parseMode", + "c_type": "RawParseMode", + "comment": "/* raw_parser() mode to use */" + }, + { + "comment": "\t/* function containing this expr (not set until we first parse query) */\n" + }, + { + "comment": "\t/* namespace chain visible to this expr */\n" + }, + { + "comment": "\t/* fields for \"simple expression\" fast-path execution: */\n" + }, + { + "comment": "\t/*\n\t * These fields are used to optimize assignments to expanded-datum\n\t * variables. If this expression is the source of an assignment to a\n\t * simple variable, target_param holds that variable's dno; else it's -1.\n\t * If we match a Param within expr_simple_expr to such a variable, that\n\t * Param's address is stored in expr_rw_param; then expression code\n\t * generation will allow the value for that Param to be passed read/write.\n\t */\n" + }, + { + "comment": "\t/*\n\t * If the expression was ever determined to be simple, we remember its\n\t * CachedPlanSource and CachedPlan here. If expr_simple_plan_lxid matches\n\t * current LXID, then we hold a refcount on expr_simple_plan in the\n\t * current transaction. Otherwise we need to get one before re-using it.\n\t */\n" + }, + { + "comment": "\t/*\n\t * if expr is simple AND prepared in current transaction,\n\t * expr_simple_state and expr_simple_in_use are valid. Test validity by\n\t * seeing if expr_simple_lxid matches current LXID. (If not,\n\t * expr_simple_state probably points at garbage!)\n\t */\n" + } + ], + "comment": "/*\n * SQL Query to plan and execute\n */\n" + }, + "PLpgSQL_datum": { + "fields": [ + { + "name": "dtype", + "c_type": "PLpgSQL_datum_type", + "comment": null + }, + { + "name": "dno", + "c_type": "int", + "comment": null + } + ], + "comment": "/*\n * Generic datum array item\n *\n * PLpgSQL_datum is the common supertype for PLpgSQL_var, PLpgSQL_row,\n * PLpgSQL_rec, and PLpgSQL_recfield.\n */\n" + }, + "PLpgSQL_variable": { + "fields": [ + { + "name": "dtype", + "c_type": "PLpgSQL_datum_type", + "comment": null + }, + { + "name": "dno", + "c_type": "int", + "comment": null + }, + { + "name": "refname", + "c_type": "char*", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "isconst", + "c_type": "bool", + "comment": null + }, + { + "name": "notnull", + "c_type": "bool", + "comment": null + }, + { + "name": "default_val", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * Scalar or composite variable\n *\n * The variants PLpgSQL_var, PLpgSQL_row, and PLpgSQL_rec share these\n * fields.\n */\n" + }, + "PLpgSQL_var": { + "fields": [ + { + "name": "dtype", + "c_type": "PLpgSQL_datum_type", + "comment": null + }, + { + "name": "dno", + "c_type": "int", + "comment": null + }, + { + "name": "refname", + "c_type": "char*", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "isconst", + "c_type": "bool", + "comment": null + }, + { + "name": "notnull", + "c_type": "bool", + "comment": null + }, + { + "name": "default_val", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "comment": "\t/* end of PLpgSQL_variable fields */\n" + }, + { + "name": "datatype", + "c_type": "PLpgSQL_type*", + "comment": null + }, + { + "comment": "\t/*\n\t * Variables declared as CURSOR FOR are mostly like ordinary\n\t * scalar variables of type refcursor, but they have these additional\n\t * properties:\n\t */\n" + }, + { + "name": "cursor_explicit_expr", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "cursor_explicit_argrow", + "c_type": "int", + "comment": null + }, + { + "name": "cursor_options", + "c_type": "int", + "comment": null + }, + { + "comment": "\t/* Fields below here can change at runtime */\n" + }, + { + "comment": "\t/*\n\t * The promise field records which \"promised\" value to assign if the\n\t * promise must be honored. If it's a normal variable, or the promise has\n\t * been fulfilled, this is PLPGSQL_PROMISE_NONE.\n\t */\n" + }, + { + "name": "promise", + "c_type": "PLpgSQL_promise_type", + "comment": null + } + ], + "comment": "/*\n * Scalar variable\n *\n * DTYPE_VAR and DTYPE_PROMISE datums both use this struct type.\n * A PROMISE datum works exactly like a VAR datum for most purposes,\n * but if it is read without having previously been assigned to, then\n * a special \"promised\" value is computed and assigned to the datum\n * before the read is performed. This technique avoids the overhead of\n * computing the variable's value in cases where we expect that many\n * functions will never read it.\n */\n" + }, + "PLpgSQL_row": { + "fields": [ + { + "name": "dtype", + "c_type": "PLpgSQL_datum_type", + "comment": null + }, + { + "name": "dno", + "c_type": "int", + "comment": null + }, + { + "name": "refname", + "c_type": "char*", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "isconst", + "c_type": "bool", + "comment": null + }, + { + "name": "notnull", + "c_type": "bool", + "comment": null + }, + { + "name": "default_val", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "comment": "\t/* end of PLpgSQL_variable fields */\n" + }, + { + "comment": "\t/*\n\t * rowtupdesc is only set up if we might need to convert the row into a\n\t * composite datum, which currently only happens for OUT parameters.\n\t * Otherwise it is NULL.\n\t */\n" + }, + { + "name": "nfields", + "c_type": "int", + "comment": null + }, + { + "name": "fieldnames", + "c_type": "char**", + "comment": null + } + ], + "comment": "/*\n * Row variable - this represents one or more variables that are listed in an\n * INTO clause, FOR-loop targetlist, cursor argument list, etc. We also use\n * a row to represent a function's OUT parameters when there's more than one.\n *\n * Note that there's no way to name the row as such from PL/pgSQL code,\n * so many functions don't need to support these.\n *\n * That also means that there's no real name for the row variable, so we\n * conventionally set refname to \"(unnamed row)\". We could leave it NULL,\n * but it's too convenient to be able to assume that refname is valid in\n * all variants of PLpgSQL_variable.\n *\n * isconst, notnull, and default_val are unsupported (and hence\n * always zero/null) for a row. The member variables of a row should have\n * been checked to be writable at compile time, so isconst is correctly set\n * to false. notnull and default_val aren't applicable.\n */\n" + }, + "PLpgSQL_rec": { + "fields": [ + { + "name": "dtype", + "c_type": "PLpgSQL_datum_type", + "comment": null + }, + { + "name": "dno", + "c_type": "int", + "comment": null + }, + { + "name": "refname", + "c_type": "char*", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "isconst", + "c_type": "bool", + "comment": null + }, + { + "name": "notnull", + "c_type": "bool", + "comment": null + }, + { + "name": "default_val", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "comment": "\t/* end of PLpgSQL_variable fields */\n" + }, + { + "comment": "\t/*\n\t * Note: for non-RECORD cases, we may from time to time re-look-up the\n\t * composite type, using datatype->origtypname. That can result in\n\t * changing rectypeid.\n\t */\n" + }, + { + "name": "datatype", + "c_type": "PLpgSQL_type*", + "comment": "/* can be NULL, if rectypeid is RECORDOID */" + }, + { + "comment": "\t/* RECFIELDs for this record are chained together for easy access */\n" + }, + { + "name": "firstfield", + "c_type": "int", + "comment": "/* dno of first RECFIELD, or -1 if none */" + }, + { + "comment": "\t/* Fields below here can change at runtime */\n" + }, + { + "comment": "\t/* We always store record variables as \"expanded\" records */\n" + } + ], + "comment": "/*\n * Record variable (any composite type, including RECORD)\n */\n" + }, + "PLpgSQL_recfield": { + "fields": [ + { + "name": "dtype", + "c_type": "PLpgSQL_datum_type", + "comment": null + }, + { + "name": "dno", + "c_type": "int", + "comment": null + }, + { + "comment": "\t/* end of PLpgSQL_datum fields */\n" + }, + { + "name": "fieldname", + "c_type": "char*", + "comment": "/* name of field */" + }, + { + "name": "recparentno", + "c_type": "int", + "comment": "/* dno of parent record */" + }, + { + "name": "nextfield", + "c_type": "int", + "comment": "/* dno of next child, or -1 if none */" + }, + { + "comment": "\t/* if rectupledescid == INVALID_TUPLEDESC_IDENTIFIER, finfo isn't valid */\n" + } + ], + "comment": "/*\n * Field in record\n */\n" + }, + "PLpgSQL_stmt": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "comment": "\t/*\n\t * Unique statement ID in this function (starting at 1; 0 is invalid/not\n\t * set). This can be used by a profiler as the index for an array of\n\t * per-statement metrics.\n\t */\n" + } + ], + "comment": "/*\n * Generic execution node\n */\n" + }, + "PLpgSQL_condition": { + "fields": [ + { + "name": "sqlerrstate", + "c_type": "int", + "comment": "/* SQLSTATE code */" + }, + { + "name": "condname", + "c_type": "char*", + "comment": "/* condition name (for debugging) */" + } + ], + "comment": "/*\n * One EXCEPTION condition name\n */\n" + }, + "PLpgSQL_exception_block": { + "fields": [ + { + "name": "sqlstate_varno", + "c_type": "int", + "comment": null + }, + { + "name": "sqlerrm_varno", + "c_type": "int", + "comment": null + }, + { + "name": "exc_list", + "c_type": "List*", + "comment": "/* List of WHEN clauses */" + } + ], + "comment": "/*\n * EXCEPTION block\n */\n" + }, + "PLpgSQL_exception": { + "fields": [ + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "conditions", + "c_type": "PLpgSQL_condition*", + "comment": null + }, + { + "name": "action", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * One EXCEPTION ... WHEN clause\n */\n" + }, + "PLpgSQL_stmt_block": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + }, + { + "name": "n_initvars", + "c_type": "int", + "comment": "/* Length of initvarnos[] */" + }, + { + "name": "initvarnos", + "c_type": "int*", + "comment": "/* dnos of variables declared in this block */" + }, + { + "name": "exceptions", + "c_type": "PLpgSQL_exception_block*", + "comment": null + } + ], + "comment": "/*\n * Block of statements\n */\n" + }, + "PLpgSQL_stmt_assign": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "varno", + "c_type": "int", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * Assign statement\n */\n" + }, + "PLpgSQL_stmt_perform": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * PERFORM statement\n */\n" + }, + "PLpgSQL_stmt_call": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "is_call", + "c_type": "bool", + "comment": null + }, + { + "name": "target", + "c_type": "PLpgSQL_variable*", + "comment": null + } + ], + "comment": "/*\n * CALL statement\n */\n" + }, + "PLpgSQL_stmt_commit": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "chain", + "c_type": "bool", + "comment": null + } + ], + "comment": "/*\n * COMMIT statement\n */\n" + }, + "PLpgSQL_stmt_rollback": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "chain", + "c_type": "bool", + "comment": null + } + ], + "comment": "/*\n * ROLLBACK statement\n */\n" + }, + "PLpgSQL_diag_item": { + "fields": [ + { + "name": "kind", + "c_type": "PLpgSQL_getdiag_kind", + "comment": "/* id for diagnostic value desired */" + }, + { + "name": "target", + "c_type": "int", + "comment": "/* where to assign it */" + } + ], + "comment": "/*\n * GET DIAGNOSTICS item\n */\n" + }, + "PLpgSQL_stmt_getdiag": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "is_stacked", + "c_type": "bool", + "comment": "/* STACKED or CURRENT diagnostics area? */" + }, + { + "name": "diag_items", + "c_type": "List*", + "comment": "/* List of PLpgSQL_diag_item */" + } + ], + "comment": "/*\n * GET DIAGNOSTICS statement\n */\n" + }, + "PLpgSQL_stmt_if": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "cond", + "c_type": "PLpgSQL_expr*", + "comment": "/* boolean expression for THEN */" + }, + { + "name": "then_body", + "c_type": "List*", + "comment": "/* List of statements */" + }, + { + "name": "elsif_list", + "c_type": "List*", + "comment": "/* List of PLpgSQL_if_elsif structs */" + }, + { + "name": "else_body", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * IF statement\n */\n" + }, + "PLpgSQL_if_elsif": { + "fields": [ + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "cond", + "c_type": "PLpgSQL_expr*", + "comment": "/* boolean expression for this case */" + }, + { + "name": "stmts", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * one ELSIF arm of IF statement\n */\n" + }, + "PLpgSQL_stmt_case": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "t_expr", + "c_type": "PLpgSQL_expr*", + "comment": "/* test expression, or NULL if none */" + }, + { + "name": "t_varno", + "c_type": "int", + "comment": "/* var to store test expression value into */" + }, + { + "name": "case_when_list", + "c_type": "List*", + "comment": "/* List of PLpgSQL_case_when structs */" + }, + { + "name": "have_else", + "c_type": "bool", + "comment": "/* flag needed because list could be empty */" + }, + { + "name": "else_stmts", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * CASE statement\n */\n" + }, + "PLpgSQL_case_when": { + "fields": [ + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": "/* boolean expression for this case */" + }, + { + "name": "stmts", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * one arm of CASE statement\n */\n" + }, + "PLpgSQL_stmt_loop": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * Unconditional LOOP statement\n */\n" + }, + "PLpgSQL_stmt_while": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "cond", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * WHILE cond LOOP statement\n */\n" + }, + "PLpgSQL_stmt_fori": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "var", + "c_type": "PLpgSQL_var*", + "comment": null + }, + { + "name": "lower", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "upper", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "step", + "c_type": "PLpgSQL_expr*", + "comment": "/* NULL means default (ie, BY 1) */" + }, + { + "name": "reverse", + "c_type": "int", + "comment": null + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * FOR statement with integer loopvar\n */\n" + }, + "PLpgSQL_stmt_forq": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "var", + "c_type": "PLpgSQL_variable*", + "comment": "/* Loop variable (record or row) */" + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * PLpgSQL_stmt_forq represents a FOR statement running over a SQL query.\n * It is the common supertype of PLpgSQL_stmt_fors, PLpgSQL_stmt_forc\n * and PLpgSQL_stmt_dynfors.\n */\n" + }, + "PLpgSQL_stmt_fors": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "var", + "c_type": "PLpgSQL_variable*", + "comment": "/* Loop variable (record or row) */" + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + }, + { + "comment": "\t/* end of fields that must match PLpgSQL_stmt_forq */\n" + }, + { + "name": "query", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * FOR statement running over SELECT\n */\n" + }, + "PLpgSQL_stmt_forc": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "var", + "c_type": "PLpgSQL_variable*", + "comment": "/* Loop variable (record or row) */" + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + }, + { + "comment": "\t/* end of fields that must match PLpgSQL_stmt_forq */\n" + }, + { + "name": "curvar", + "c_type": "int", + "comment": null + }, + { + "name": "argquery", + "c_type": "PLpgSQL_expr*", + "comment": "/* cursor arguments if any */" + } + ], + "comment": "/*\n * FOR statement running over cursor\n */\n" + }, + "PLpgSQL_stmt_dynfors": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "var", + "c_type": "PLpgSQL_variable*", + "comment": "/* Loop variable (record or row) */" + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + }, + { + "comment": "\t/* end of fields that must match PLpgSQL_stmt_forq */\n" + }, + { + "name": "query", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "params", + "c_type": "List*", + "comment": "/* USING expressions */" + } + ], + "comment": "/*\n * FOR statement running over EXECUTE\n */\n" + }, + "PLpgSQL_stmt_foreach_a": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "label", + "c_type": "char*", + "comment": null + }, + { + "name": "varno", + "c_type": "int", + "comment": "/* loop target variable */" + }, + { + "name": "slice", + "c_type": "int", + "comment": "/* slice dimension, or 0 */" + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": "/* array expression */" + }, + { + "name": "body", + "c_type": "List*", + "comment": "/* List of statements */" + } + ], + "comment": "/*\n * FOREACH item in array loop\n */\n" + }, + "PLpgSQL_stmt_open": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "curvar", + "c_type": "int", + "comment": null + }, + { + "name": "cursor_options", + "c_type": "int", + "comment": null + }, + { + "name": "argquery", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "query", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "dynquery", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "params", + "c_type": "List*", + "comment": "/* USING expressions */" + } + ], + "comment": "/*\n * OPEN a curvar\n */\n" + }, + "PLpgSQL_stmt_fetch": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "target", + "c_type": "PLpgSQL_variable*", + "comment": "/* target (record or row) */" + }, + { + "name": "curvar", + "c_type": "int", + "comment": "/* cursor variable to fetch from */" + }, + { + "name": "direction", + "c_type": "FetchDirection", + "comment": "/* fetch direction */" + }, + { + "name": "how_many", + "c_type": "long", + "comment": "/* count, if constant (expr is NULL) */" + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": "/* count, if expression */" + }, + { + "name": "is_move", + "c_type": "bool", + "comment": "/* is this a fetch or move? */" + }, + { + "name": "returns_multiple_rows", + "c_type": "bool", + "comment": "/* can return more than one row? */" + } + ], + "comment": "/*\n * FETCH or MOVE statement\n */\n" + }, + "PLpgSQL_stmt_close": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "curvar", + "c_type": "int", + "comment": null + } + ], + "comment": "/*\n * CLOSE curvar\n */\n" + }, + "PLpgSQL_stmt_exit": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "is_exit", + "c_type": "bool", + "comment": "/* Is this an exit or a continue? */" + }, + { + "name": "label", + "c_type": "char*", + "comment": "/* NULL if it's an unlabeled EXIT/CONTINUE */" + }, + { + "name": "cond", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * EXIT or CONTINUE statement\n */\n" + }, + "PLpgSQL_stmt_return": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "retvarno", + "c_type": "int", + "comment": null + } + ], + "comment": "/*\n * RETURN statement\n */\n" + }, + "PLpgSQL_stmt_return_next": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "retvarno", + "c_type": "int", + "comment": null + } + ], + "comment": "/*\n * RETURN NEXT statement\n */\n" + }, + "PLpgSQL_stmt_return_query": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "query", + "c_type": "PLpgSQL_expr*", + "comment": "/* if static query */" + }, + { + "name": "dynquery", + "c_type": "PLpgSQL_expr*", + "comment": "/* if dynamic query (RETURN QUERY EXECUTE) */" + }, + { + "name": "params", + "c_type": "List*", + "comment": "/* USING arguments for dynamic query */" + } + ], + "comment": "/*\n * RETURN QUERY statement\n */\n" + }, + "PLpgSQL_stmt_raise": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "elog_level", + "c_type": "int", + "comment": null + }, + { + "name": "condname", + "c_type": "char*", + "comment": "/* condition name, SQLSTATE, or NULL */" + }, + { + "name": "message", + "c_type": "char*", + "comment": "/* old-style message format literal, or NULL */" + }, + { + "name": "params", + "c_type": "List*", + "comment": "/* list of expressions for old-style message */" + }, + { + "name": "options", + "c_type": "List*", + "comment": "/* list of PLpgSQL_raise_option */" + } + ], + "comment": "/*\n * RAISE statement\n */\n" + }, + "PLpgSQL_raise_option": { + "fields": [ + { + "name": "opt_type", + "c_type": "PLpgSQL_raise_option_type", + "comment": null + }, + { + "name": "expr", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * RAISE statement option\n */\n" + }, + "PLpgSQL_stmt_assert": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "cond", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "message", + "c_type": "PLpgSQL_expr*", + "comment": null + } + ], + "comment": "/*\n * ASSERT statement\n */\n" + }, + "PLpgSQL_stmt_execsql": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "sqlstmt", + "c_type": "PLpgSQL_expr*", + "comment": null + }, + { + "name": "mod_stmt", + "c_type": "bool", + "comment": "/* is the stmt INSERT/UPDATE/DELETE/MERGE? */" + }, + { + "name": "mod_stmt_set", + "c_type": "bool", + "comment": "/* is mod_stmt valid yet? */" + }, + { + "name": "into", + "c_type": "bool", + "comment": "/* INTO supplied? */" + }, + { + "name": "strict", + "c_type": "bool", + "comment": "/* INTO STRICT flag */" + }, + { + "name": "target", + "c_type": "PLpgSQL_variable*", + "comment": "/* INTO target (record or row) */" + } + ], + "comment": "/*\n * Generic SQL statement to execute\n */\n" + }, + "PLpgSQL_stmt_dynexecute": { + "fields": [ + { + "name": "cmd_type", + "c_type": "PLpgSQL_stmt_type", + "comment": null + }, + { + "name": "lineno", + "c_type": "int", + "comment": null + }, + { + "name": "query", + "c_type": "PLpgSQL_expr*", + "comment": "/* string expression */" + }, + { + "name": "into", + "c_type": "bool", + "comment": "/* INTO supplied? */" + }, + { + "name": "strict", + "c_type": "bool", + "comment": "/* INTO STRICT flag */" + }, + { + "name": "target", + "c_type": "PLpgSQL_variable*", + "comment": "/* INTO target (record or row) */" + }, + { + "name": "params", + "c_type": "List*", + "comment": "/* USING expressions */" + } + ], + "comment": "/*\n * Dynamic SQL string to execute\n */\n" + }, + "PLpgSQL_function": { + "fields": [ + { + "name": "fn_signature", + "c_type": "char*", + "comment": null + }, + { + "name": "fn_is_trigger", + "c_type": "PLpgSQL_trigtype", + "comment": null + }, + { + "name": "out_param_varno", + "c_type": "int", + "comment": null + }, + { + "name": "found_varno", + "c_type": "int", + "comment": null + }, + { + "name": "new_varno", + "c_type": "int", + "comment": null + }, + { + "name": "old_varno", + "c_type": "int", + "comment": null + }, + { + "name": "resolve_option", + "c_type": "PLpgSQL_resolve_option", + "comment": null + }, + { + "name": "print_strict_params", + "c_type": "bool", + "comment": null + }, + { + "comment": "\t/* extra checks */\n" + }, + { + "name": "extra_warnings", + "c_type": "int", + "comment": null + }, + { + "name": "extra_errors", + "c_type": "int", + "comment": null + }, + { + "comment": "\t/* the datums representing the function's local variables */\n" + }, + { + "name": "ndatums", + "c_type": "int", + "comment": null + }, + { + "comment": "\t/* function body parsetree */\n" + }, + { + "name": "action", + "c_type": "PLpgSQL_stmt_block*", + "comment": null + }, + { + "comment": "\t/* data derived while parsing body */\n" + }, + { + "comment": "\t/* these fields change when the function is used */\n" + } + ], + "comment": "/*\n * Complete compiled function\n */\n" + } +} \ No newline at end of file diff --git a/test/parse_plpgsql_protobuf.c b/test/parse_plpgsql_protobuf.c new file mode 100644 index 000000000..af8a983c8 --- /dev/null +++ b/test/parse_plpgsql_protobuf.c @@ -0,0 +1,60 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +int main() { + bool ret_code = EXIT_SUCCESS; + char *sample_buffer; + struct stat sample_stat; + int fd; + PgQueryPlpgsqlProtobufParseResult result; + + fd = open("test/plpgsql_samples.sql", O_RDONLY); + if (fd < 0) { + printf("Could not read samples file\n"); + return EXIT_FAILURE; + } + + fstat(fd, &sample_stat); + + sample_buffer = malloc(sample_stat.st_size + 1); + read(fd, sample_buffer, sample_stat.st_size); + sample_buffer[sample_stat.st_size] = 0; + + if (sample_buffer != (void *) - 1) + { + result = pg_query_parse_plpgsql_protobuf(sample_buffer); + free(sample_buffer); + close(fd); + } else { + printf("Could not read samples file\n"); + close(fd); + return EXIT_FAILURE; + } + + if (result.error) { + printf("ERROR: %s\n", result.error->message); + if (result.error->context) + printf("CONTEXT: %s\n", result.error->context); + printf("LOCATION: %s, %s:%d\n\n", result.error->funcname, result.error->filename, result.error->lineno); + + pg_query_free_plpgsql_protobuf_parse_result(result); + return EXIT_FAILURE; + } + + printf("Protobuf parse succeeded, size: %zu bytes\n", result.parse_tree.len); + + pg_query_free_plpgsql_protobuf_parse_result(result); + + pg_query_exit(); + + return ret_code; +}