@@ -243,7 +243,7 @@ check_cluster_versions(void)
243
243
* upgrades
244
244
*/
245
245
246
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
246
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
247
247
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
248
248
249
249
/* Only current PG version is supported as a target */
@@ -280,7 +280,7 @@ check_cluster_compatibility(bool live_check)
280
280
check_control_data (& old_cluster .controldata , & new_cluster .controldata );
281
281
282
282
/* We read the real port number for PG >= 9.1 */
283
- if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) < 901 &&
283
+ if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) <= 900 &&
284
284
old_cluster .port == DEF_PGUPORT )
285
285
pg_fatal ("When checking a pre-PG 9.1 live old server, "
286
286
"you must specify the old server's port number.\n" );
@@ -486,7 +486,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
486
486
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
487
487
new_cluster .bindir , user_specification .data );
488
488
/* Did we copy the free space files? */
489
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
489
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
490
490
fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
491
491
user_specification .data );
492
492
0 commit comments