Skip to content

Commit 91bb771

Browse files
authored
Upgrade to Postgres 17 and libpg_query 6.0.0 (#321)
* Bump libpg_query tag and checksum * Update sources * Fix tests * Update CHANGELOG, version
1 parent 42da42b commit 91bb771

File tree

476 files changed

+123327
-94534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+123327
-94534
lines changed

Diff for: CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44

55
* ...
66

7+
## 6.0.0 2024-11-26
8+
9+
* Upgrade to libpg_query 17-6.0.0
10+
- Updates to the Postgres 17 parser
11+
- Deparser improvements:
12+
- Add support for deparsing `JSON_TABLE`, `JSON_QUERY`, `JSON_EXISTS`, `JSON_VALUE`
13+
- Add support for deparsing `JSON`, `JSON_SCALAR`, `JSON_SERIALIZE`
14+
- Add support for deparsing `COPY ... FORCE_NULL(*)`
15+
- Add support for deparsing `ALTER COLUMN ... SET EXPRESSION AS`
16+
- Add support for deparsing `SET STATISTICS DEFAULT`
17+
- Add support for deparsing `SET ACCESS METHOD DEFAULT`
18+
- Add support for deparsing `... AT LOCAL`
19+
- Add support for deparsing `merge_action()`
20+
- Add support for deparsing `MERGE ... RETURNING`
21+
- Add support for deparsing `NOT MATCHED [ BY TARGET ]`
22+
* Improve treewalker performance by avoiding allocations [(#309)](https://github.com/pganalyze/pg_query_go/pull/309)
23+
* Fix FreeBSD builds [(#313)](https://github.com/pganalyze/pg_query_go/pull/313)
24+
725
## 5.1.0 2024-01-09
826

927
* Update to libpg_query 16-5.1.0

Diff for: Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
pg_query (5.1.0)
4+
pg_query (6.0.0)
55
google-protobuf (>= 3.25.3)
66

77
GEM

Diff for: Rakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ require 'rspec/core/rake_task'
55
require 'rubocop/rake_task'
66
require 'open-uri'
77

8-
LIB_PG_QUERY_TAG = '16-5.1.0'.freeze
9-
LIB_PG_QUERY_SHA256SUM = '31f25b573da1c966bc762b0313b0a50cdd03aabdbaf666d90469eddcb1656df7'.freeze
8+
LIB_PG_QUERY_TAG = '17-6.0.0'.freeze
9+
LIB_PG_QUERY_SHA256SUM = '98cf618ec94595d530c5fdff21c77cb2403187fd660993aeab4ad73ca06bbabd'.freeze
1010

1111
Rake::ExtensionTask.new 'pg_query' do |ext|
1212
ext.lib_dir = 'lib/pg_query'

Diff for: ext/pg_query/include/pg_query.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ extern "C" {
9696
#endif
9797

9898
PgQueryNormalizeResult pg_query_normalize(const char* input);
99+
PgQueryNormalizeResult pg_query_normalize_utility(const char* input);
99100
PgQueryScanResult pg_query_scan(const char* input);
100101
PgQueryParseResult pg_query_parse(const char* input);
101102
PgQueryParseResult pg_query_parse_opts(const char* input, int parser_options);
@@ -131,9 +132,9 @@ void pg_query_free_fingerprint_result(PgQueryFingerprintResult result);
131132
void pg_query_exit(void);
132133

133134
// Postgres version information
134-
#define PG_MAJORVERSION "16"
135-
#define PG_VERSION "16.1"
136-
#define PG_VERSION_NUM 160001
135+
#define PG_MAJORVERSION "17"
136+
#define PG_VERSION "17.0"
137+
#define PG_VERSION_NUM 170000
137138

138139
// Deprecated APIs below
139140

0 commit comments

Comments
 (0)