-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PG17 compatibility: fix pg16 to pg17 upgrade #7788
base: naisila/pg17_support
Are you sure you want to change the base?
Conversation
(cherry picked from commit ae3ed7d)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## naisila/pg17_support #7788 +/- ##
=======================================================
Coverage ? 89.62%
=======================================================
Files ? 274
Lines ? 59707
Branches ? 7448
=======================================================
Hits ? 53510
Misses ? 4065
Partials ? 2132 |
b37b114
to
84710e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix, I remember I have implemented this so sorry for that mistake :)
However we can't merge as it is as we need to create a new .sql
file for the new citus version. We don't modify old .sql
files. I don't remember where the ocumentation for this part is, but basically we need to add a new 13.0-1.sql file with the modified script, and also an upgrade and downgrade path for Citus https://github.com/citusdata/citus/tree/release-13.0/src/backend/distributed/sql
1c39f95
to
e8352a8
Compare
e8352a8
to
5ce353b
Compare
In citus_prepapre_upgrade(), don't drop any_value when upgrading from PG16+, because PG16+ has its own any_value function. Attempting to do so results in an error. When 16 becomes the minimum supported Postgres version, the drop statements can be removed.
84710e9
to
b0d624f
Compare
The latest push reverts the modification to the existing citus sql file and adds a new one; however it probably needs #7792 to enable the pg16 -> pg17 upgrade to pass (?) |
c8c79ec
to
3f72611
Compare
In
citus_prepapre_upgrade()
, don't drop any_value when upgrading from PG16+, because PG16+ has its own any_value function. Attempting to do so results in the error seen in pg16-pg17 upgrade:When 16 becomes the minimum supported Postgres version, the drop statements can be removed.