@@ -181,18 +181,10 @@ void
181
181
output_completion_banner (char * analyze_script_file_name ,
182
182
char * deletion_script_file_name )
183
183
{
184
- /* Did we copy the free space files? */
185
- if (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 )
186
- pg_log (PG_REPORT ,
187
- "Optimizer statistics are not transferred by pg_upgrade so,\n"
188
- "once you start the new server, consider running:\n"
189
- " %s\n\n" , analyze_script_file_name );
190
- else
191
- pg_log (PG_REPORT ,
192
- "Optimizer statistics and free space information are not transferred\n"
193
- "by pg_upgrade so, once you start the new server, consider running:\n"
194
- " %s\n\n" , analyze_script_file_name );
195
-
184
+ pg_log (PG_REPORT ,
185
+ "Optimizer statistics are not transferred by pg_upgrade so,\n"
186
+ "once you start the new server, consider running:\n"
187
+ " %s\n\n" , analyze_script_file_name );
196
188
197
189
if (deletion_script_file_name )
198
190
pg_log (PG_REPORT ,
@@ -222,7 +214,7 @@ check_cluster_versions(void)
222
214
* upgrades
223
215
*/
224
216
225
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
217
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
226
218
pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
227
219
228
220
/* Only current PG version is supported as a target */
@@ -459,19 +451,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
459
451
ECHO_QUOTE , ECHO_QUOTE );
460
452
fprintf (script , "echo %sthis script and run:%s\n" ,
461
453
ECHO_QUOTE , ECHO_QUOTE );
462
- fprintf (script , "echo %s \"%s/vacuumdb\" %s--all %s%s\n" , ECHO_QUOTE ,
463
- new_cluster .bindir , user_specification .data ,
464
- /* Did we copy the free space files? */
465
- (GET_MAJOR_VERSION (old_cluster .major_version ) >= 804 ) ?
466
- "--analyze-only" : "--analyze" , ECHO_QUOTE );
454
+ fprintf (script , "echo %s \"%s/vacuumdb\" %s--all --analyze-only%s\n" , ECHO_QUOTE ,
455
+ new_cluster .bindir , user_specification .data , ECHO_QUOTE );
467
456
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
468
457
469
458
fprintf (script , "\"%s/vacuumdb\" %s--all --analyze-in-stages\n" ,
470
459
new_cluster .bindir , user_specification .data );
471
- /* Did we copy the free space files? */
472
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
473
- fprintf (script , "\"%s/vacuumdb\" %s--all\n" , new_cluster .bindir ,
474
- user_specification .data );
475
460
476
461
fprintf (script , "echo%s\n\n" , ECHO_BLANK );
477
462
fprintf (script , "echo %sDone%s\n" ,
0 commit comments