Reconcile pg_upgrade omit_column fix into source sql/cat_tools.sql.in#38
Merged
jnasbyupgrade merged 1 commit intoJul 16, 2026
Merged
Conversation
PR Postgres-Extensions#18 (commit 31204e1) fixed binary pg_upgrade compatibility by omitting catalog columns that newer PostgreSQL removed from the pg_class_v / pg_attribute_v views. However that fix was applied ONLY to the generated versioned files (sql/cat_tools--0.2.2.sql.in and the *--0.2.2 update scripts), never to the source sql/cat_tools.sql.in. As a result, running `make` regenerates the current-version file from the source and silently reverts the Postgres-Extensions#18 fix. This applies the same omit_column arguments to the source so regeneration reproduces the released 0.2.2 SQL byte-for-byte: - pg_class: omit oid, relhasoids (PG12), relhaspkey (PG17) - pg_attribute: add attcacheoff (PG17) to the existing oid, attmissingval No shipped SQL changes: the tracked generated sql/cat_tools--0.2.2.sql.in is byte-identical before and after this change. This is a pure source/generated reconcile; the user-facing pg_upgrade fix is already documented under 0.2.2 by Postgres-Extensions#18. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR #18 (commit 31204e1, re-release 0.2.2) fixed binary
pg_upgradecompatibility by omitting catalog columns that newer PostgreSQL removed from thepg_class_v/pg_attribute_vviews:pg_class: omitoid,relhasoids(removed PG12),relhaspkey(removed PG17)pg_attribute: addattcacheoff(removed PG17) to the existingoid,attmissingvalBut #18 applied that fix only to the generated versioned files (
sql/cat_tools--0.2.2.sql.inand the*--0.2.2update scripts), never to the sourcesql/cat_tools.sql.in. So runningmakeregenerates the current-version file from source and silently reverts the #18 fix.