-
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.
[#25329] YSQL: Address YB_TODOs in pg_upgrade.c::main
Summary: Addressed a few YB_TODOs in `main` in `pg_upgrade.c`: === `copy_xact_xlog_xid` === copy_xact_xlog_xid and start_postmaster were both wrapped in an `#ifdef YB_TODO` block. `copy_xact_xlog_xid` copies Postgres commit and WAL data around. Any data that is actually required by YB for data integrity should be in DocDB, which isn't impacted by the upgrade. Therefore it should be safe to fully disable this function. === `start_postmaster` / `stop_postmaster` === Previous work on `pg_upgrade` had wrapped calls to `start_postmaster` or `stop_postmaster` with a `!is_yugabyte_enabled()` check, as we don't need to stop / start the postmaster in the YB upgrade. === Cleaning up the old cluster === Because Yugabyte data resides on DocDB and is reused from pg11 to pg15, we don't need to remove it. The Upgrade RPCs will handle removing old masters during the upgrade finalize step, so there is nothing required to clean up the old cluster. Jira: DB-14539 Test Plan: Jenkins ``` ./yb_build.sh release --cxx-test pg15_upgrade-test ``` Reviewers: hsunder Reviewed By: hsunder Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D40720
- Loading branch information
Showing
1 changed file
with
51 additions
and
45 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