@@ -268,7 +268,7 @@ check_cluster_versions(void)
268
268
* upgrades
269
269
*/
270
270
271
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
271
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
272
272
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
273
273
274
274
/* Only current PG version is supported as a target */
@@ -305,7 +305,7 @@ check_cluster_compatibility(bool live_check)
305
305
check_control_data (& old_cluster .controldata , & new_cluster .controldata );
306
306
307
307
/* We read the real port number for PG >= 9.1 */
308
- if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) < 901 &&
308
+ if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) <= 900 &&
309
309
old_cluster .port == DEF_PGUPORT )
310
310
pg_fatal ("When checking a pre-PG 9.1 live old server, "
311
311
"you must specify the old server's port number.\n" );
@@ -513,7 +513,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
513
513
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
514
514
new_cluster .bindir , user_specification .data );
515
515
/* Did we copy the free space files? */
516
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
516
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
517
517
fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
518
518
user_specification .data );
519
519
0 commit comments