Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from pganalyze/15-latest-dev
This upgrades `libpg_query` to Postgres 15.1. All tests have been updated, and tests were added for new constructs. - `Boolean` nodes have been added to the parser, replacing usage of integers with the values `1`/`0`. - In the postgres parser, `Value` was changed to be a union stored in the `A_Const` type. For this upgrade, we block `A_Const` from code generation, and instead manually implement the relevant required functions. - The `COPY` statement deparser was also updated to attempt deparsing into the old Postgres 8.4-style syntax (e.g. `COPY foo FROM STDIN FREEZE CSV`). This ensures that the regression tests keep working, as new changes in the parse structures mean that these two syntaxes result in equivalent but slightly different parse trees. - Support was added for `MERGE` statements. - Support was added for more advanced publication objects, e.g. `CREATE PUBLICATION foo FOR TABLES IN SCHEMA CURRENT_SCHEMA` - Support was added for `ALTER TABLE ALL IN TABLESPACE ...` statements
- Loading branch information