@@ -234,18 +234,10 @@ void
234234output_completion_banner (char * analyze_script_file_name ,
235235 char * deletion_script_file_name )
236236{
237- /* Did we copy the free space files? */
238- if (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 )
239- pg_log (PG_REPORT ,
240- "Optimizer statistics are not transferred by pg_upgrade so,\n"
241- "once you start the new server, consider running:\n"
242- " %s\n\n" , analyze_script_file_name );
243- else
244- pg_log (PG_REPORT ,
245- "Optimizer statistics and free space information are not transferred\n"
246- "by pg_upgrade so, once you start the new server, consider running:\n"
247- " %s\n\n" , analyze_script_file_name );
248-
237+ pg_log (PG_REPORT ,
238+ "Optimizer statistics are not transferred by pg_upgrade so,\n"
239+ "once you start the new server, consider running:\n"
240+ " %s\n\n" , analyze_script_file_name );
249241
250242 if (deletion_script_file_name )
251243 pg_log (PG_REPORT ,
@@ -275,7 +267,7 @@ check_cluster_versions(void)
275267 * upgrades
276268 */
277269
278- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
270+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
279271 pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
280272
281273 /* Only current PG version is supported as a target */
@@ -510,19 +502,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
510502 ECHO_QUOTE , ECHO_QUOTE );
511503 fprintf (script , "echo %sthis script and run:%s\n" ,
512504 ECHO_QUOTE , ECHO_QUOTE );
513- fprintf (script , "echo %s \"%s/vacuumdb\" %s--all %s%s\n" , ECHO_QUOTE ,
514- new_cluster .bindir , user_specification .data ,
515- /* Did we copy the free space files? */
516- (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 ) ?
517- "--analyze-only" : "--analyze" , ECHO_QUOTE );
505+ fprintf (script , "echo %s \"%s/vacuumdb\" %s--all --analyze-only%s\n" , ECHO_QUOTE ,
506+ new_cluster .bindir , user_specification .data , ECHO_QUOTE );
518507 fprintf (script , "echo%s\n\n" , ECHO_BLANK );
519508
520509 fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
521510 new_cluster .bindir , user_specification .data );
522- /* Did we copy the free space files? */
523- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
524- fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
525- user_specification .data );
526511
527512 fprintf (script , "echo%s\n\n" , ECHO_BLANK );
528513 fprintf (script , "echo %sDone%s\n" ,
0 commit comments