@@ -186,18 +186,10 @@ void
186
186
output_completion_banner (char * analyze_script_file_name ,
187
187
char * deletion_script_file_name )
188
188
{
189
- /* Did we copy the free space files? */
190
- if (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 )
191
- pg_log (PG_REPORT ,
192
- "Optimizer statistics are not transferred by pg_upgrade so,\n"
193
- "once you start the new server, consider running:\n"
194
- " %s\n\n" , analyze_script_file_name );
195
- else
196
- pg_log (PG_REPORT ,
197
- "Optimizer statistics and free space information are not transferred\n"
198
- "by pg_upgrade so, once you start the new server, consider running:\n"
199
- " %s\n\n" , analyze_script_file_name );
200
-
189
+ pg_log (PG_REPORT ,
190
+ "Optimizer statistics are not transferred by pg_upgrade so,\n"
191
+ "once you start the new server, consider running:\n"
192
+ " %s\n\n" , analyze_script_file_name );
201
193
202
194
if (deletion_script_file_name )
203
195
pg_log (PG_REPORT ,
@@ -227,7 +219,7 @@ check_cluster_versions(void)
227
219
* upgrades
228
220
*/
229
221
230
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
222
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
231
223
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
232
224
233
225
/* Only current PG version is supported as a target */
@@ -470,19 +462,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
470
462
ECHO_QUOTE , ECHO_QUOTE );
471
463
fprintf (script , "echo %sthis script and run:%s\n" ,
472
464
ECHO_QUOTE , ECHO_QUOTE );
473
- fprintf (script , "echo %s \"%s/vacuumdb\" %s--all %s%s\n" , ECHO_QUOTE ,
474
- new_cluster .bindir , user_specification .data ,
475
- /* Did we copy the free space files? */
476
- (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 ) ?
477
- "--analyze-only" : "--analyze" , ECHO_QUOTE );
465
+ fprintf (script , "echo %s \"%s/vacuumdb\" %s--all --analyze-only%s\n" , ECHO_QUOTE ,
466
+ new_cluster .bindir , user_specification .data , ECHO_QUOTE );
478
467
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
479
468
480
469
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
481
470
new_cluster .bindir , user_specification .data );
482
- /* Did we copy the free space files? */
483
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
484
- fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
485
- user_specification .data );
486
471
487
472
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
488
473
fprintf (script , "echo %sDone%s\n" ,
0 commit comments