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

Add workaround for pg_depend bug in PG < 15.4 #7508

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erimatnor
Copy link
Contributor

@erimatnor erimatnor commented Dec 2, 2024

PostgreSQL versions prior to 15.4 didn't properly update object dependencies when setting a new access method on a table. The fix for the bug is found in this commit:

postgres/postgres@97d8910

The hypercore_create test failed on buggy PG versions (e.g., 15.0) due to wrong contents of pg_depend showing up in test output when converting a table from Hypercore TAM back to regular heap.

This change adds a workaround that updates pg_depend with the correct information when compiling against PG versions that suffer from the bug.

Disable-check: force-changelog-file
Disable-check: approval-count

PostgreSQL versions prior to 15.4 didn't properly update object
dependencies when setting a new access method on a table. The fix for
the bug is found in this commit:

postgres/postgres@97d8910

The `hypercore_create` test failed on buggy PG versions (e.g., 15.0)
due to wrong contents of pg_depend showing up in test output when
converting a table from Hypercore TAM back to regular heap.

This change adds a workaround that updates pg_depend with the correct
information when compiling against PG versions that suffer from the
bug.
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.13%. Comparing base (59f50f2) to head (b0e3602).
Report is 634 commits behind head on main.

Files with missing lines Patch % Lines
tsl/src/compression/api.c 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7508      +/-   ##
==========================================
+ Coverage   80.06%   82.13%   +2.07%     
==========================================
  Files         190      230      +40     
  Lines       37181    43190    +6009     
  Branches     9450    10868    +1418     
==========================================
+ Hits        29770    35476    +5706     
- Misses       2997     3388     +391     
+ Partials     4414     4326      -88     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants