Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5df1403

Browse files
committed
Add pg_upgrade ENABLE_SAME_CATVERSION_UPGRADES macro for testing to
allow upgrades of the same catalog version. (Doesn't work fortablespaces, as indicated by C comment.)
1 parent604d4c4 commit5df1403

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎contrib/pg_upgrade/check.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ check_cluster_versions(void)
242242
* We can't allow downgrading because we use the target pg_dumpall, and
243243
* pg_dumpall cannot operate on new database versions, only older versions.
244244
*/
245+
#ifndefENABLE_SAME_CATVERSION_UPGRADES/* does not allow tablespace upgrades */
245246
if (old_cluster.major_version>new_cluster.major_version)
246247
pg_log(PG_FATAL,"This utility cannot be used to downgrade to older major PostgreSQL versions.\n");
248+
#endif
247249

248250
/* get old and new binary versions */
249251
get_bin_version(&old_cluster);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp