pg_query 2.1.4 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/README.md +32 -0
- data/Rakefile +2 -2
- data/ext/pg_query/include/access/twophase.h +2 -0
- data/ext/pg_query/include/access/xact.h +6 -0
- data/ext/pg_query/include/access/xlog_internal.h +10 -1
- data/ext/pg_query/include/access/xlogreader.h +10 -0
- data/ext/pg_query/include/catalog/dependency.h +2 -0
- data/ext/pg_query/include/catalog/pg_class.h +1 -1
- data/ext/pg_query/include/catalog/pg_class_d.h +1 -1
- data/ext/pg_query/include/catalog/pg_control.h +2 -0
- data/ext/pg_query/include/catalog/pg_operator.h +3 -1
- data/ext/pg_query/include/catalog/pg_publication.h +3 -0
- data/ext/pg_query/include/catalog/pg_type.h +1 -0
- data/ext/pg_query/include/commands/async.h +1 -1
- data/ext/pg_query/include/commands/tablespace.h +2 -0
- data/ext/pg_query/include/commands/trigger.h +8 -0
- data/ext/pg_query/include/lib/simplehash.h +13 -13
- data/ext/pg_query/include/libpq/libpq.h +1 -0
- data/ext/pg_query/include/mb/pg_wchar.h +1 -0
- data/ext/pg_query/include/miscadmin.h +24 -11
- data/ext/pg_query/include/nodes/execnodes.h +2 -2
- data/ext/pg_query/include/nodes/parsenodes.h +5 -4
- data/ext/pg_query/include/nodes/pathnodes.h +2 -1
- data/ext/pg_query/include/nodes/pg_list.h +1 -0
- data/ext/pg_query/include/nodes/plannodes.h +18 -3
- data/ext/pg_query/include/optimizer/optimizer.h +0 -5
- data/ext/pg_query/include/parser/gram.h +2 -2
- data/ext/pg_query/include/parser/kwlist.h +1 -1
- data/ext/pg_query/include/parser/parse_coerce.h +1 -0
- data/ext/pg_query/include/pg_config.h +16 -13
- data/ext/pg_query/include/pg_query.h +2 -2
- data/ext/pg_query/include/pg_query_fingerprint_defs.c +286 -314
- data/ext/pg_query/include/pg_query_outfuncs_defs.c +1 -0
- data/ext/pg_query/include/pg_query_readfuncs_defs.c +1 -0
- data/ext/pg_query/include/pgstat.h +2 -1
- data/ext/pg_query/include/plpgsql.h +2 -2
- data/ext/pg_query/include/port/pg_bitutils.h +48 -2
- data/ext/pg_query/include/port.h +4 -0
- data/ext/pg_query/include/protobuf/pg_query.pb-c.h +4 -3
- data/ext/pg_query/include/replication/reorderbuffer.h +6 -5
- data/ext/pg_query/include/replication/slot.h +1 -1
- data/ext/pg_query/include/storage/block.h +1 -1
- data/ext/pg_query/include/storage/lock.h +6 -5
- data/ext/pg_query/include/storage/lwlock.h +1 -0
- data/ext/pg_query/include/storage/proc.h +14 -0
- data/ext/pg_query/include/storage/s_lock.h +24 -0
- data/ext/pg_query/include/tcop/pquery.h +6 -0
- data/ext/pg_query/include/utils/builtins.h +1 -0
- data/ext/pg_query/include/utils/inval.h +1 -0
- data/ext/pg_query/include/utils/portal.h +13 -0
- data/ext/pg_query/include/utils/rel.h +0 -1
- data/ext/pg_query/include/utils/relcache.h +1 -2
- data/ext/pg_query/include/utils/snapmgr.h +1 -0
- data/ext/pg_query/pg_query.pb-c.c +18 -5
- data/ext/pg_query/pg_query_deparse.c +8 -8
- data/ext/pg_query/pg_query_fingerprint.c +1 -0
- data/ext/pg_query/pg_query_json_plpgsql.c +68 -0
- data/ext/pg_query/pg_query_normalize.c +43 -7
- data/ext/pg_query/pg_query_outfuncs.h +1 -0
- data/ext/pg_query/pg_query_outfuncs_json.c +11 -0
- data/ext/pg_query/pg_query_parse_plpgsql.c +58 -15
- data/ext/pg_query/src_backend_catalog_namespace.c +1 -0
- data/ext/pg_query/src_backend_libpq_pqcomm.c +8 -0
- data/ext/pg_query/src_backend_nodes_copyfuncs.c +23 -33
- data/ext/pg_query/src_backend_nodes_equalfuncs.c +1 -0
- data/ext/pg_query/src_backend_nodes_list.c +12 -0
- data/ext/pg_query/src_backend_parser_gram.c +18 -3
- data/ext/pg_query/src_backend_parser_scan.c +493 -253
- data/ext/pg_query/src_backend_tcop_postgres.c +11 -1
- data/ext/pg_query/src_backend_utils_adt_ruleutils.c +38 -10
- data/ext/pg_query/src_backend_utils_misc_guc.c +1 -0
- data/ext/pg_query/src_common_wchar.c +11 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_comp.c +4 -2
- data/ext/pg_query/src_pl_plpgsql_src_pl_gram.c +1 -1
- data/ext/pg_query/src_port_pg_bitutils.c +1 -22
- data/ext/pg_query/src_port_snprintf.c +9 -7
- data/lib/pg_query/deparse.rb +7 -1
- data/lib/pg_query/fingerprint.rb +13 -2
- data/lib/pg_query/parse.rb +5 -3
- data/lib/pg_query/pg_query_pb.rb +2 -1
- data/lib/pg_query/treewalker.rb +6 -0
- data/lib/pg_query/version.rb +1 -1
- metadata +2 -2
|
@@ -317,9 +317,6 @@
|
|
|
317
317
|
/* Define to 1 if you have the `ldap' library (-lldap). */
|
|
318
318
|
/* #undef HAVE_LIBLDAP */
|
|
319
319
|
|
|
320
|
-
/* Define to 1 if you have the `ldap_r' library (-lldap_r). */
|
|
321
|
-
/* #undef HAVE_LIBLDAP_R */
|
|
322
|
-
|
|
323
320
|
/* Define to 1 if you have the `m' library (-lm). */
|
|
324
321
|
#define HAVE_LIBM 1
|
|
325
322
|
|
|
@@ -474,6 +471,9 @@
|
|
|
474
471
|
/* Define to 1 if you have the <security/pam_appl.h> header file. */
|
|
475
472
|
/* #undef HAVE_SECURITY_PAM_APPL_H */
|
|
476
473
|
|
|
474
|
+
/* Define to 1 if you have the `setenv' function. */
|
|
475
|
+
#define HAVE_SETENV 1
|
|
476
|
+
|
|
477
477
|
/* Define to 1 if you have the `setproctitle' function. */
|
|
478
478
|
/* #undef HAVE_SETPROCTITLE */
|
|
479
479
|
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
/* #undef HAVE_X509_GET_SIGNATURE_NID */
|
|
686
686
|
|
|
687
687
|
/* Define to 1 if the assembler supports X86_64's POPCNTQ instruction. */
|
|
688
|
-
#
|
|
688
|
+
/* #undef HAVE_X86_64_POPCNTQ */
|
|
689
689
|
|
|
690
690
|
/* Define to 1 if the system has the type `_Bool'. */
|
|
691
691
|
#define HAVE__BOOL 1
|
|
@@ -708,6 +708,9 @@
|
|
|
708
708
|
/* Define to 1 if your compiler understands __builtin_ctz. */
|
|
709
709
|
#define HAVE__BUILTIN_CTZ 1
|
|
710
710
|
|
|
711
|
+
/* Define to 1 if your compiler understands __builtin_frame_address. */
|
|
712
|
+
#define HAVE__BUILTIN_FRAME_ADDRESS 1
|
|
713
|
+
|
|
711
714
|
/* Define to 1 if your compiler understands __builtin_$op_overflow. */
|
|
712
715
|
#define HAVE__BUILTIN_OP_OVERFLOW 1
|
|
713
716
|
|
|
@@ -727,7 +730,7 @@
|
|
|
727
730
|
/* #undef HAVE__CPUID */
|
|
728
731
|
|
|
729
732
|
/* Define to 1 if you have __get_cpuid. */
|
|
730
|
-
#
|
|
733
|
+
/* #undef HAVE__GET_CPUID */
|
|
731
734
|
|
|
732
735
|
/* Define to 1 if your compiler understands _Static_assert. */
|
|
733
736
|
#define HAVE__STATIC_ASSERT 1
|
|
@@ -757,7 +760,7 @@
|
|
|
757
760
|
#define PACKAGE_NAME "PostgreSQL"
|
|
758
761
|
|
|
759
762
|
/* Define to the full name and version of this package. */
|
|
760
|
-
#define PACKAGE_STRING "PostgreSQL 13.
|
|
763
|
+
#define PACKAGE_STRING "PostgreSQL 13.8"
|
|
761
764
|
|
|
762
765
|
/* Define to the one symbol short name of this package. */
|
|
763
766
|
#define PACKAGE_TARNAME "postgresql"
|
|
@@ -766,7 +769,7 @@
|
|
|
766
769
|
#define PACKAGE_URL "https://www.postgresql.org/"
|
|
767
770
|
|
|
768
771
|
/* Define to the version of this package. */
|
|
769
|
-
#define PACKAGE_VERSION "13.
|
|
772
|
+
#define PACKAGE_VERSION "13.8"
|
|
770
773
|
|
|
771
774
|
/* Define to the name of a signed 128-bit integer type. */
|
|
772
775
|
#define PG_INT128_TYPE __int128
|
|
@@ -785,7 +788,7 @@
|
|
|
785
788
|
#define PG_MAJORVERSION_NUM 13
|
|
786
789
|
|
|
787
790
|
/* PostgreSQL minor version number */
|
|
788
|
-
#define PG_MINORVERSION_NUM
|
|
791
|
+
#define PG_MINORVERSION_NUM 8
|
|
789
792
|
|
|
790
793
|
/* Define to best printf format archetype, usually gnu_printf if available. */
|
|
791
794
|
#define PG_PRINTF_ATTRIBUTE printf
|
|
@@ -794,13 +797,13 @@
|
|
|
794
797
|
#define PG_USE_STDBOOL 1
|
|
795
798
|
|
|
796
799
|
/* PostgreSQL version as a string */
|
|
797
|
-
#define PG_VERSION "13.
|
|
800
|
+
#define PG_VERSION "13.8"
|
|
798
801
|
|
|
799
802
|
/* PostgreSQL version as a number */
|
|
800
|
-
#define PG_VERSION_NUM
|
|
803
|
+
#define PG_VERSION_NUM 130008
|
|
801
804
|
|
|
802
805
|
/* A string containing the version number, platform, and C compiler */
|
|
803
|
-
#define PG_VERSION_STR "PostgreSQL 13.
|
|
806
|
+
#define PG_VERSION_STR "PostgreSQL 13.8 on arm-apple-darwin21.6.0, compiled by Apple clang version 14.0.0 (clang-1400.0.29.202), 64-bit"
|
|
804
807
|
|
|
805
808
|
/* Define to 1 to allow profiling output to be saved separately for each
|
|
806
809
|
process. */
|
|
@@ -845,7 +848,7 @@
|
|
|
845
848
|
#define STRERROR_R_INT 1
|
|
846
849
|
|
|
847
850
|
/* Define to 1 to use ARMv8 CRC Extension. */
|
|
848
|
-
|
|
851
|
+
#define USE_ARMV8_CRC32C 1
|
|
849
852
|
|
|
850
853
|
/* Define to 1 to use ARMv8 CRC Extension with a runtime check. */
|
|
851
854
|
/* #undef USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK */
|
|
@@ -897,7 +900,7 @@
|
|
|
897
900
|
/* #undef USE_SSE42_CRC32C */
|
|
898
901
|
|
|
899
902
|
/* Define to 1 to use Intel SSE 4.2 CRC instructions with a runtime check. */
|
|
900
|
-
#
|
|
903
|
+
/* #undef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK */
|
|
901
904
|
|
|
902
905
|
/* Define to build with systemd support. (--with-systemd) */
|
|
903
906
|
/* #undef USE_SYSTEMD */
|
|
@@ -106,9 +106,9 @@ void pg_query_free_fingerprint_result(PgQueryFingerprintResult result);
|
|
|
106
106
|
void pg_query_exit(void);
|
|
107
107
|
|
|
108
108
|
// Postgres version information
|
|
109
|
-
#define PG_VERSION "13.
|
|
109
|
+
#define PG_VERSION "13.8"
|
|
110
110
|
#define PG_MAJORVERSION "13"
|
|
111
|
-
#define PG_VERSION_NUM
|
|
111
|
+
#define PG_VERSION_NUM 130008
|
|
112
112
|
|
|
113
113
|
// Deprecated APIs below
|
|
114
114
|
|