@@ -202,18 +202,10 @@ void
202202output_completion_banner (char * analyze_script_file_name ,
203203char * deletion_script_file_name )
204204{
205- /* Did we copy the free space files? */
206- if (GET_MAJOR_VERSION (old_cluster .major_version ) >=804 )
207- pg_log (PG_REPORT ,
208- "Optimizer statistics are not transferred by pg_upgrade so,\n"
209- "once you start the new server, consider running:\n"
210- " %s\n\n" ,analyze_script_file_name );
211- else
212- pg_log (PG_REPORT ,
213- "Optimizer statistics and free space information are not transferred\n"
214- "by pg_upgrade so, once you start the new server, consider running:\n"
215- " %s\n\n" ,analyze_script_file_name );
216-
205+ pg_log (PG_REPORT ,
206+ "Optimizer statistics are not transferred by pg_upgrade so,\n"
207+ "once you start the new server, consider running:\n"
208+ " %s\n\n" ,analyze_script_file_name );
217209
218210if (deletion_script_file_name )
219211pg_log (PG_REPORT ,
@@ -243,7 +235,7 @@ check_cluster_versions(void)
243235 * upgrades
244236 */
245237
246- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
238+ if (GET_MAJOR_VERSION (old_cluster .major_version )< 804 )
247239pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
248240
249241/* Only current PG version is supported as a target */
@@ -476,19 +468,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
476468ECHO_QUOTE ,ECHO_QUOTE );
477469fprintf (script ,"echo %sthis script and run:%s\n" ,
478470ECHO_QUOTE ,ECHO_QUOTE );
479- fprintf (script ,"echo %s \"%s/vacuumdb\" %s--all %s%s\n" ,ECHO_QUOTE ,
480- new_cluster .bindir ,user_specification .data ,
481- /* Did we copy the free space files? */
482- (GET_MAJOR_VERSION (old_cluster .major_version ) >=804 ) ?
483- "--analyze-only" :"--analyze" ,ECHO_QUOTE );
471+ fprintf (script ,"echo %s \"%s/vacuumdb\" %s--all --analyze-only%s\n" ,ECHO_QUOTE ,
472+ new_cluster .bindir ,user_specification .data ,ECHO_QUOTE );
484473fprintf (script ,"echo%s\n\n" ,ECHO_BLANK );
485474
486475fprintf (script ,"\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
487476new_cluster .bindir ,user_specification .data );
488- /* Did we copy the free space files? */
489- if (GET_MAJOR_VERSION (old_cluster .major_version ) <=803 )
490- fprintf (script ,"\"%s/vacuumdb\" %s--all\n" ,new_cluster .bindir ,
491- user_specification .data );
492477
493478fprintf (script ,"echo%s\n\n" ,ECHO_BLANK );
494479fprintf (script ,"echo %sDone%s\n" ,