@@ -227,18 +227,10 @@ void
227
227
output_completion_banner (char * analyze_script_file_name ,
228
228
char * deletion_script_file_name )
229
229
{
230
- /* Did we copy the free space files? */
231
- if (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 )
232
- pg_log (PG_REPORT ,
233
- "Optimizer statistics are not transferred by pg_upgrade so,\n"
234
- "once you start the new server, consider running:\n"
235
- " %s\n\n" , analyze_script_file_name );
236
- else
237
- pg_log (PG_REPORT ,
238
- "Optimizer statistics and free space information are not transferred\n"
239
- "by pg_upgrade so, once you start the new server, consider running:\n"
240
- " %s\n\n" , analyze_script_file_name );
241
-
230
+ pg_log (PG_REPORT ,
231
+ "Optimizer statistics are not transferred by pg_upgrade so,\n"
232
+ "once you start the new server, consider running:\n"
233
+ " %s\n\n" , analyze_script_file_name );
242
234
243
235
if (deletion_script_file_name )
244
236
pg_log (PG_REPORT ,
@@ -268,7 +260,7 @@ check_cluster_versions(void)
268
260
* upgrades
269
261
*/
270
262
271
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
263
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
272
264
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
273
265
274
266
/* Only current PG version is supported as a target */
@@ -503,19 +495,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
503
495
ECHO_QUOTE , ECHO_QUOTE );
504
496
fprintf (script , "echo %sthis script and run:%s\n" ,
505
497
ECHO_QUOTE , ECHO_QUOTE );
506
- fprintf (script , "echo %s \"%s/vacuumdb\" %s--all %s%s\n" , ECHO_QUOTE ,
507
- new_cluster .bindir , user_specification .data ,
508
- /* Did we copy the free space files? */
509
- (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 ) ?
510
- "--analyze-only" : "--analyze" , ECHO_QUOTE );
498
+ fprintf (script , "echo %s \"%s/vacuumdb\" %s--all --analyze-only%s\n" , ECHO_QUOTE ,
499
+ new_cluster .bindir , user_specification .data , ECHO_QUOTE );
511
500
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
512
501
513
502
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
514
503
new_cluster .bindir , user_specification .data );
515
- /* Did we copy the free space files? */
516
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
517
- fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
518
- user_specification .data );
519
504
520
505
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
521
506
fprintf (script , "echo %sDone%s\n" ,
0 commit comments