Skip to content

[Cherry-pick to branch-1.3] [#11122 ][#11112] docs(upgrade): Improve PostgreSQL backup format and add rollback instructions (#11461)#11535

Merged
yuqi1129 merged 1 commit into
branch-1.3from
cherry-pick-fcb3bb4c-to-branch-1.3
Jun 9, 2026
Merged

[Cherry-pick to branch-1.3] [#11122 ][#11112] docs(upgrade): Improve PostgreSQL backup format and add rollback instructions (#11461)#11535
yuqi1129 merged 1 commit into
branch-1.3from
cherry-pick-fcb3bb4c-to-branch-1.3

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Cherry-pick Information:

  • Original commit: fcb3bb4
  • Target branch: branch-1.3
  • Status: ✅ Clean cherry-pick (no conflicts)

… add rollback instructions (#11461)

### What changes were proposed in this pull request?

This PR improves the `docs/how-to-upgrade.md` documentation with the
following changes:

1. Changed the PostgreSQL data backup command to use `-Fc` (custom
compressed binary format) instead of `-F c`, producing a `.dump` file
instead of `.sql`, and added a note explaining the custom format.
2. Changed the PostgreSQL schema dump command to use plain-text format
(`-f`) instead of custom format (`-F c`), making it easier to diff
against official schema files.
3. Improved the wording in Step 4 (schema comparison) to clarify which
differences are acceptable (e.g., object ordering, comments) and which
need manual resolution (e.g., table structures, column types, missing
tables/indexes).
4. Added a new "Rollback if Upgrade Fails" section with restore
instructions for MySQL, H2, and PostgreSQL backends.

### Why are the changes needed?

1. The previous PostgreSQL backup command used `-F c` (custom format)
but saved to a `.sql` extension, which is misleading. The custom format
should use a `.dump` extension and be restored with `pg_restore`.
2. The schema dump should be in plain-text format so users can directly
diff it against the official schema SQL files.
3. The original documentation lacked rollback guidance, leaving users
without a clear recovery path if an upgrade fails.

Fix: #11112
Fix: #11122

### Does this PR introduce _any_ user-facing change?

No. This is a documentation-only change.

### How was this patch tested?

Documentation-only change. Verified the commands are correct by
reviewing PostgreSQL and MySQL official documentation.
@github-actions github-actions Bot requested a review from jerryshao June 9, 2026 11:57
@yuqi1129 yuqi1129 closed this Jun 9, 2026
@yuqi1129 yuqi1129 reopened this Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Author

Code Coverage Report

Overall Project 67.05% 🟢
Files changed No Java source files changed -

Module Coverage
aliyun 1.72% 🔴
api 46.8% 🟢
authorization-common 85.96% 🟢
aws 3.66% 🔴
azure 2.47% 🔴
catalog-common 10.42% 🔴
catalog-fileset 80.35% 🟢
catalog-glue 67.41% 🟢
catalog-hive 79.35% 🟢
catalog-jdbc-clickhouse 80.02% 🟢
catalog-jdbc-common 45.31% 🟢
catalog-jdbc-doris 80.28% 🟢
catalog-jdbc-hologres 54.03% 🟢
catalog-jdbc-mysql 79.23% 🟢
catalog-jdbc-oceanbase 78.38% 🟢
catalog-jdbc-postgresql 82.29% 🟢
catalog-jdbc-starrocks 78.51% 🟢
catalog-kafka 77.01% 🟢
catalog-lakehouse-generic 58.53% 🟢
catalog-lakehouse-hudi 79.1% 🟢
catalog-lakehouse-iceberg 85.94% 🟢
catalog-lakehouse-paimon 79.29% 🟢
catalog-model 77.72% 🟢
cli 44.51% 🟢
client-java 77.91% 🟢
common 50.17% 🟢
core 82.51% 🟢
filesystem-hadoop3 76.97% 🟢
flink 0.0% 🔴
flink-common 46.3% 🟢
flink-runtime 0.0% 🔴
gcp 14.12% 🔴
hadoop-common 10.39% 🔴
hive-metastore-common 53.9% 🟢
iceberg-common 57.41% 🟢
iceberg-rest-server 73.88% 🟢
idp-basic 86.18% 🟢
integration-test-common 0.0% 🔴
jobs 66.17% 🟢
lance-common 20.81% 🔴
lance-rest-server 60.54% 🟢
lineage 53.02% 🟢
optimizer 82.95% 🟢
optimizer-api 21.95% 🔴
server 85.73% 🟢
server-common 73.28% 🟢
spark 28.57% 🔴
spark-common 41.01% 🟢
trino-connector 39.97% 🔴

@yuqi1129 yuqi1129 merged commit c884c8b into branch-1.3 Jun 9, 2026
28 checks passed
@jerryshao jerryshao deleted the cherry-pick-fcb3bb4c-to-branch-1.3 branch June 11, 2026 21:24
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