Skip to content

Commit

Permalink
Update README, CHANGELOG for 16-5.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
msepga committed Dec 22, 2023
1 parent 9ff3c5b commit 7ecb431
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All versions are tagged by the major Postgres version, plus an individual semver for this library itself.

## 16-5.0.0 2023-12-22

* Update to Postgres 16.1
* Drop support for arbitrary trailing junk on integer literals
- Support for parsing junk after parameters, e.g. `$1OR` is retained
* Deparser:
- Fix deparsing of `SYSTEM_USER`
- Add support for deparsing `STORAGE` mode
- Add support for deparsing `REVOKE ... CASCADE`

## 15-4.2.4 2023-12-20

* Scanner: Add token `ASCII_36` ("$") to support queries like "SELECT $identifier" [#211](https://github.com/pganalyze/libpg_query/pull/211), [#219](https://github.com/pganalyze/libpg_query/pull/219)
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can find further background to why a query's parse tree is useful here: http
## Installation

```sh
git clone -b 15-latest git://github.com/pganalyze/libpg_query
git clone -b 16-latest git://github.com/pganalyze/libpg_query
cd libpg_query
make
```
Expand Down Expand Up @@ -51,7 +51,7 @@ This will output the parse tree (whitespace adjusted here for better readability

```json
{
"version": 150001,
"version": 160001,
"stmts": [
{
"stmt": {
Expand Down Expand Up @@ -124,7 +124,7 @@ int main() {
This will output the following:

```
version: 150001, tokens: 7, size: 77
version: 160001, tokens: 7, size: 77
"SELECT" = [ 0, 6, SELECT, RESERVED_KEYWORD ]
"update" = [ 7, 13, UPDATE, UNRESERVED_KEYWORD ]
"AS" = [ 14, 16, AS, RESERVED_KEYWORD ]
Expand Down Expand Up @@ -231,7 +231,8 @@ Each major version is maintained in a dedicated git branch. Only the latest Post
| PostgreSQL Major Version | Branch | Status |
|--------------------------|------------|---------------------|
| 15 | 15-latest | Active development |
| 16 | 16-latest | Active development |
| 15 | 15-latest | Critical fixes only |
| 14 | 14-latest | Critical fixes only |
| 13 | 13-latest | Critical fixes only |
| 12 | (n/a) | Not supported |
Expand Down

0 comments on commit 7ecb431

Please sign in to comment.