-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pg15] fix: move ybctid out of ItemPointer
Summary: The initial merge commit (55782d5) moved ybctid into ItemPointer struct. While there are some merits to it, like common APIs for YB and PG, it comes with a bunch of issues: - Before this change, PG type 'tid' corresponded to ItemPointer struct. This is no longer true. As a result, the tests PgTypeTest.YbTypeDetailsMatch and TestPgEstimatedDocdbResultWidth#testDocdbResultWidthEstimationArrays fail. - More work is required to get this integration right. For instance, the current definition of macro `ItemPointerIsValid` is problematic. It returns true as long as at least one of pg/yb fields is set without taking into account whether the row (that item pointer points to) belongs to a YB relation or not. - When upgrading the pre-existing pg11 based YB clusters (that do not have ybctid inside ItemPointer), the following error will be hit: `FATAL: database files are incompatible with server DETAIL: The database cluster was initialized with TOAST_MAX_CHUNK_SIZE 1996, but the server was compiled with TOAST_MAX_CHUNK_SIZE 1988.` While all the above issues are solvable, putting ybctid inside ItemPointer is an orthogonal decision to the project-pg15 effort. Hence, revert this change by moving ybctid out. YB master branch has the same behaviour. When this revision reaches the existing pg15 clusters, they will hit the following issue: FATAL: database files are incompatible with server DETAIL: The database cluster was initialized with TOAST_MAX_CHUNK_SIZE 1988, but the server was compiled with TOAST_MAX_CHUNK_SIZE 1996. Since we have limited pg15 clusters as of today, and all those are either dev or test, it is best to destroy these and create fresh ones. Test Plan: Jenkins: rebase: pg15 for _ in {1..50}; do grep -E 'YbTypeDetailsMatch|TestPgEstimatedDocdbResultWidth' pg15_tests/passing_tests.tsv; done | pg15_tests/run_tests.sh Reviewers: jason, tfoucher, amartsinchyk Reviewed By: amartsinchyk Subscribers: tfoucher, jason, yql Differential Revision: https://phorge.dev.yugabyte.com/D36731
- Loading branch information
Showing
38 changed files
with
235 additions
and
208 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.