@@ -234,18 +234,10 @@ void
234
234
output_completion_banner (char * analyze_script_file_name ,
235
235
char * deletion_script_file_name )
236
236
{
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 );
249
241
250
242
if (deletion_script_file_name )
251
243
pg_log (PG_REPORT ,
@@ -275,7 +267,7 @@ check_cluster_versions(void)
275
267
* upgrades
276
268
*/
277
269
278
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
270
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
279
271
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
280
272
281
273
/* Only current PG version is supported as a target */
@@ -510,19 +502,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
510
502
ECHO_QUOTE , ECHO_QUOTE );
511
503
fprintf (script , "echo %sthis script and run:%s\n" ,
512
504
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 );
518
507
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
519
508
520
509
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
521
510
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 );
526
511
527
512
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
528
513
fprintf (script , "echo %sDone%s\n" ,
0 commit comments