@@ -275,7 +275,7 @@ check_cluster_versions(void)
275275 * upgrades
276276 */
277277
278- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
278+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
279279 pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
280280
281281 /* Only current PG version is supported as a target */
@@ -312,7 +312,7 @@ check_cluster_compatibility(bool live_check)
312312 check_control_data (& old_cluster .controldata , & new_cluster .controldata );
313313
314314 /* We read the real port number for PG >= 9.1 */
315- if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) < 901 &&
315+ if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) <= 900 &&
316316 old_cluster .port == DEF_PGUPORT )
317317 pg_fatal ("When checking a pre-PG 9.1 live old server, "
318318 "you must specify the old server's port number.\n" );
@@ -520,7 +520,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
520520 fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
521521 new_cluster .bindir , user_specification .data );
522522 /* Did we copy the free space files? */
523- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
523+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
524524 fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
525525 user_specification .data );
526526
0 commit comments