chore: drop PostgreSQL 14 support #137
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PostgreSQL 14's pg_get_viewdef() function produces different output compared to PostgreSQL 15+, causing systematic test failures in view definitions.
The key difference is in how column references are formatted:
This behavior change in PostgreSQL's internal ruleutils.c code affects all views (regular and materialized) and makes it impossible to maintain version-consistent output. The difference appears when pg_get_viewdef() reconstructs view definitions from stored metadata.
Test failure example (TestDumpCommand_Employee):
This is a PostgreSQL behavior change, not a pgschema bug. Since pgschema relies on pg_get_viewdef() for view introspection, supporting PG 14 would require version-specific view normalization logic that would be complex and error-prone.
Changes:
Minimum supported version is now PostgreSQL 15.
🤖 Generated with Claude Code