@@ -275,7 +275,7 @@ check_cluster_versions(void)
275
275
* upgrades
276
276
*/
277
277
278
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
278
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
279
279
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
280
280
281
281
/* Only current PG version is supported as a target */
@@ -312,7 +312,7 @@ check_cluster_compatibility(bool live_check)
312
312
check_control_data (& old_cluster .controldata , & new_cluster .controldata );
313
313
314
314
/* 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 &&
316
316
old_cluster .port == DEF_PGUPORT )
317
317
pg_fatal ("When checking a pre-PG 9.1 live old server, "
318
318
"you must specify the old server's port number.\n" );
@@ -520,7 +520,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
520
520
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
521
521
new_cluster .bindir , user_specification .data );
522
522
/* 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 )
524
524
fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
525
525
user_specification .data );
526
526
0 commit comments