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