Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6ce6a61

Browse files
committed
pg_upgrade: Remove dead code
Remove code meant for upgrading to a particular version of PostgreSQL 9.0. Since pg_upgrade only supports upgrading to the current major version, this code is no longer useful.
1 parent fe77741 commit 6ce6a61

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/bin/pg_upgrade/check.c

-6
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,6 @@ check_cluster_compatibility(bool live_check)
279279
get_control_data(&new_cluster, false);
280280
check_control_data(&old_cluster.controldata, &new_cluster.controldata);
281281

282-
/* Is it 9.0 but without tablespace directories? */
283-
if (GET_MAJOR_VERSION(new_cluster.major_version) == 900 &&
284-
new_cluster.controldata.cat_ver < TABLE_SPACE_SUBDIRS_CAT_VER)
285-
pg_fatal("This utility can only upgrade to PostgreSQL version 9.0 after 2010-01-11\n"
286-
"because of backend API changes made during development.\n");
287-
288282
/* We read the real port number for PG >= 9.1 */
289283
if (live_check && GET_MAJOR_VERSION(old_cluster.major_version) < 901 &&
290284
old_cluster.port == DEF_PGUPORT)

0 commit comments

Comments
 (0)