Skip to content

Adds PG17.1 support - Regression tests sanity#7661

Merged
naisila merged 4 commits intorelease-13.0from
naisila/pg17_support
Dec 24, 2024
Merged

Adds PG17.1 support - Regression tests sanity#7661
naisila merged 4 commits intorelease-13.0from
naisila/pg17_support

Conversation

@naisila
Copy link
Contributor

@naisila naisila commented Jul 25, 2024

Compilation PR: #7699
Ruleutils PR: #7725

Sister PR for tests: citusdata/the-process#159

This PR keeps track of Regression tests sanity with PG17. It is used as a reference for tests in all the small PRs listed below.
Fixes #7653

Helpful smaller PRs:

@codecov
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release-13.0@743f0eb). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-13.0    #7661   +/-   ##
===============================================
  Coverage                ?   89.63%           
===============================================
  Files                   ?      274           
  Lines                   ?    59713           
  Branches                ?     7449           
===============================================
  Hits                    ?    53525           
  Misses                  ?     4055           
  Partials                ?     2133           

@naisila naisila force-pushed the naisila/pg17_support branch 6 times, most recently from 5d4c7db to ba0b06b Compare July 30, 2024 16:03
@naisila naisila changed the title Adds PG17beta2 support Adds PG17.0 support Oct 6, 2024
@naisila naisila changed the title Adds PG17.0 support Adds PG17beta2 support Oct 6, 2024
@naisila naisila force-pushed the naisila/pg17_support branch from 70cf729 to e4040dd Compare November 10, 2024 20:03
@naisila naisila changed the title Adds PG17beta2 support Adds PG17.0 support Nov 10, 2024
@naisila naisila changed the base branch from main to release-13.0 November 10, 2024 20:03
@naisila naisila force-pushed the naisila/pg17_support branch from 9240944 to 3447abc Compare November 10, 2024 20:56
@naisila naisila changed the title Adds PG17.0 support Adds PG17.0 support - Regression tests sanity Nov 10, 2024
@naisila naisila force-pushed the naisila/pg17_support branch 2 times, most recently from b29c332 to 1cf690f Compare November 17, 2024 20:46
@naisila naisila force-pushed the naisila/pg17_support branch 9 times, most recently from e108bb8 to c396ce6 Compare November 22, 2024 13:27
@naisila naisila force-pushed the naisila/pg17_support branch 2 times, most recently from a12026b to 6be0649 Compare December 4, 2024 10:51
@naisila naisila force-pushed the naisila/pg17_support branch from 6be0649 to a8139f9 Compare December 5, 2024 10:18
@naisila naisila force-pushed the naisila/pg17_support branch from 1c39f95 to e8352a8 Compare December 18, 2024 11:45
@naisila naisila force-pushed the naisila/pg17_support branch 6 times, most recently from c8c79ec to 3f72611 Compare December 20, 2024 17:14
@naisila naisila changed the title Adds PG17.0 support - Regression tests sanity Adds PG17.1 support - Regression tests sanity Dec 23, 2024
@naisila naisila force-pushed the naisila/pg17_support branch from 4a25781 to 7902d59 Compare December 23, 2024 10:31
@naisila naisila force-pushed the naisila/pg17_support branch 2 times, most recently from 3cde05a to a53615e Compare December 23, 2024 12:25
@naisila naisila marked this pull request as ready for review December 23, 2024 12:25
@naisila naisila force-pushed the naisila/pg17_support branch 3 times, most recently from 97af2b6 to 3d6c111 Compare December 23, 2024 14:31
naisila and others added 3 commits December 24, 2024 11:44
In `citus_prepare_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](https://github.com/citusdata/citus/actions/runs/11768444117/job/32778340003?pr=7661):
```
ERROR:  cannot drop function any_value(anyelement) because it is required by the database system
CONTEXT:  SQL statement "DROP AGGREGATE IF EXISTS pg_catalog.any_value(anyelement)"
```
When 16 becomes the minimum supported Postgres version, the drop
statements can be removed.
@naisila naisila force-pushed the naisila/pg17_support branch from 3d6c111 to 83e7371 Compare December 24, 2024 08:44
@naisila naisila requested a review from onurctirtir December 24, 2024 09:45
naisila added a commit to citusdata/the-process that referenced this pull request Dec 24, 2024
PG17: Bison and Flex are now hard build requirements in configure

postgres/postgres@721856f

Sister PR citusdata/citus#7661
@naisila naisila merged commit 6fed917 into release-13.0 Dec 24, 2024
@naisila naisila deleted the naisila/pg17_support branch December 24, 2024 14:56
naisila added a commit that referenced this pull request Mar 11, 2025
This is the final commit that adds
PG17 compatibility with Citus's current capabilities.

You can use Citus community, release-13.0 branch, with PG17.1.

---------

Specifically, this commit:

- Enables PG17 in the configure script.

- Adds PG17 tests to CI using test images that have 17.1

- Fixes an upgrade test: see below for details
In `citus_prepare_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](https://github.com/citusdata/citus/actions/runs/11768444117/job/32778340003?pr=7661):
```
ERROR:  cannot drop function any_value(anyelement) because it is required by the database system
CONTEXT:  SQL statement "DROP AGGREGATE IF EXISTS pg_catalog.any_value(anyelement)"
```
When 16 becomes the minimum supported Postgres version, the drop
statements can be removed.

---------

Several PG17 Compatibility commits have been merged before this final one.
All these subtasks are done #7653

See the list below:

Compilation PR: #7699
Ruleutils PR: #7725
Sister PR for tests: citusdata/the-process#159

Helpful smaller PRs:
- #7714
- #7726
- #7731
- #7732
- #7733
- #7738
- #7745
- #7747
- #7748
- #7749
- #7752
- #7755
- #7757
- #7759
- #7760
- #7761
- #7762
- #7765
- #7766
- #7768
- #7769
- #7771
- #7774
- #7776
- #7780
- #7781
- #7785
- #7788
- #7793
- #7796

---------

Co-authored-by: Colm <[email protected]>
naisila added a commit that referenced this pull request Mar 12, 2025
This is the final commit that adds
PG17 compatibility with Citus's current capabilities.

You can use Citus community, release-13.0 branch, with PG17.1.

---------

Specifically, this commit:

- Enables PG17 in the configure script.

- Adds PG17 tests to CI using test images that have 17.1

- Fixes an upgrade test: see below for details
In `citus_prepare_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](https://github.com/citusdata/citus/actions/runs/11768444117/job/32778340003?pr=7661):
```
ERROR:  cannot drop function any_value(anyelement) because it is required by the database system
CONTEXT:  SQL statement "DROP AGGREGATE IF EXISTS pg_catalog.any_value(anyelement)"
```
When 16 becomes the minimum supported Postgres version, the drop
statements can be removed.

---------

Several PG17 Compatibility commits have been merged before this final one.
All these subtasks are done #7653

See the list below:

Compilation PR: #7699
Ruleutils PR: #7725
Sister PR for tests: citusdata/the-process#159

Helpful smaller PRs:
- #7714
- #7726
- #7731
- #7732
- #7733
- #7738
- #7745
- #7747
- #7748
- #7749
- #7752
- #7755
- #7757
- #7759
- #7760
- #7761
- #7762
- #7765
- #7766
- #7768
- #7769
- #7771
- #7774
- #7776
- #7780
- #7781
- #7785
- #7788
- #7793
- #7796

---------

Co-authored-by: Colm <[email protected]>
naisila added a commit that referenced this pull request Mar 12, 2025
This is the final commit that adds
PG17 compatibility with Citus's current capabilities.

You can use Citus community, release-13.0 branch, with PG17.1.

---------

Specifically, this commit:

- Enables PG17 in the configure script.

- Adds PG17 tests to CI using test images that have 17.1

- Fixes an upgrade test: see below for details
In `citus_prepare_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](https://github.com/citusdata/citus/actions/runs/11768444117/job/32778340003?pr=7661):
```
ERROR:  cannot drop function any_value(anyelement) because it is required by the database system
CONTEXT:  SQL statement "DROP AGGREGATE IF EXISTS pg_catalog.any_value(anyelement)"
```
When 16 becomes the minimum supported Postgres version, the drop
statements can be removed.

---------

Several PG17 Compatibility commits have been merged before this final one.
All these subtasks are done #7653

See the list below:

Compilation PR: #7699
Ruleutils PR: #7725
Sister PR for tests: citusdata/the-process#159

Helpful smaller PRs:
- #7714
- #7726
- #7731
- #7732
- #7733
- #7738
- #7745
- #7747
- #7748
- #7749
- #7752
- #7755
- #7757
- #7759
- #7760
- #7761
- #7762
- #7765
- #7766
- #7768
- #7769
- #7771
- #7774
- #7776
- #7780
- #7781
- #7785
- #7788
- #7793
- #7796

---------

Co-authored-by: Colm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PG17.1 Support - Regression tests sanity

3 participants