Skip to content
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 diff in tableam #7771

Open
wants to merge 1 commit into
base: naisila/pg17_support
Choose a base branch
from

Conversation

colm-mchugh
Copy link
Contributor

Test tableam expects that this CREATE TABLE statement: CREATE TABLE test_partitioned(id int, p int, val int) PARTITION BY RANGE (p) USING fake_am;
will produce this error:
specifying a table access method is not supported on a partitioned table

but as of this PG commit it is possible to specify an access method on a partitioned table. This fix moves the CREATE TABLE statement to pg17, and adds an additional test to show parent access method is inherited.

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.61%. Comparing base (c396ce6) to head (a108390).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           naisila/pg17_support    #7771      +/-   ##
========================================================
- Coverage                 89.62%   89.61%   -0.02%     
========================================================
  Files                       274      274              
  Lines                     59689    59689              
  Branches                   7446     7446              
========================================================
- Hits                      53495    53488       -7     
- Misses                     4065     4070       +5     
- Partials                   2129     2131       +2     

@colm-mchugh colm-mchugh changed the title PG17 regress sanity: fix diff in tableam PG17 compatibility: fix diff in tableam Nov 26, 2024
Test `tableam` expects that this CREATE TABLE statement:
`CREATE TABLE test_partitioned(id int, p int, val int) PARTITION BY
RANGE (p) USING fake_am;`
will produce this error:
`specifying a table access method is not supported on a partitioned
table`

but as of this PG commit it is possible to specify an access method
on a partitioned table:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=374c7a229

This fix moves the CREATE TABLE statement to pg17, and adds an
additional test to show parent access method is inherited.
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.

1 participant