@@ -202,18 +202,10 @@ void
202
202
output_completion_banner (char * analyze_script_file_name ,
203
203
char * deletion_script_file_name )
204
204
{
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 );
217
209
218
210
if (deletion_script_file_name )
219
211
pg_log (PG_REPORT ,
@@ -243,7 +235,7 @@ check_cluster_versions(void)
243
235
* upgrades
244
236
*/
245
237
246
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
238
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
247
239
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
248
240
249
241
/* Only current PG version is supported as a target */
@@ -476,19 +468,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
476
468
ECHO_QUOTE , ECHO_QUOTE );
477
469
fprintf (script , "echo %sthis script and run:%s\n" ,
478
470
ECHO_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 );
484
473
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
485
474
486
475
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
487
476
new_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 );
492
477
493
478
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
494
479
fprintf (script , "echo %sDone%s\n" ,
0 commit comments