@@ -159,10 +159,6 @@ check_and_dump_old_cluster(bool live_check)
159
159
if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 903 )
160
160
old_9_3_check_for_line_data_type_usage (& old_cluster );
161
161
162
- /* Pre-PG 9.0 had no large object permissions */
163
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 804 )
164
- new_9_0_populate_pg_largeobject_metadata (& old_cluster , true);
165
-
166
162
/*
167
163
* While not a check option, we do this now because this is the only time
168
164
* the old server is running.
@@ -233,10 +229,6 @@ issue_warnings_and_set_wal_level(void)
233
229
*/
234
230
start_postmaster (& new_cluster , true);
235
231
236
- /* Create dummy large object permissions for old < PG 9.0? */
237
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 804 )
238
- new_9_0_populate_pg_largeobject_metadata (& new_cluster , false);
239
-
240
232
/* Reindex hash indexes for old < 10.0 */
241
233
if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 906 )
242
234
old_9_6_invalidate_hash_indexes (& new_cluster , false);
@@ -295,8 +287,8 @@ check_cluster_versions(void)
295
287
* upgrades
296
288
*/
297
289
298
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
299
- pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
290
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 902 )
291
+ pg_fatal ("This utility can only upgrade from PostgreSQL version 9.2 and later.\n" );
300
292
301
293
/* Only current PG version is supported as a target */
302
294
if (GET_MAJOR_VERSION (new_cluster .major_version ) != GET_MAJOR_VERSION (PG_VERSION_NUM ))
@@ -331,12 +323,6 @@ check_cluster_compatibility(bool live_check)
331
323
get_control_data (& new_cluster , false);
332
324
check_control_data (& old_cluster .controldata , & new_cluster .controldata );
333
325
334
- /* We read the real port number for PG >= 9.1 */
335
- if (live_check && GET_MAJOR_VERSION (old_cluster .major_version ) <= 900 &&
336
- old_cluster .port == DEF_PGUPORT )
337
- pg_fatal ("When checking a pre-PG 9.1 live old server, "
338
- "you must specify the old server's port number.\n" );
339
-
340
326
if (live_check && old_cluster .port == new_cluster .port )
341
327
pg_fatal ("When checking a live server, "
342
328
"the old and new port numbers must be different.\n" );
@@ -479,11 +465,6 @@ check_databases_are_compatible(void)
479
465
* they do, it would cause an error while restoring global objects.
480
466
* This allows the failure to be detected at check time, rather than
481
467
* during schema restore.
482
- *
483
- * Note, v8.4 has no tablespace_suffix, which is fine so long as the
484
- * version being upgraded *to* has a suffix, since it's not allowed
485
- * to pg_upgrade from a version to the same version if tablespaces are
486
- * in use.
487
468
*/
488
469
static void
489
470
check_for_new_tablespace_dir (ClusterInfo * new_cluster )
@@ -597,11 +578,6 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
597
578
int dbnum ;
598
579
599
580
fprintf (script , "\n" );
600
- /* remove PG_VERSION? */
601
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 804 )
602
- fprintf (script , RM_CMD " %s%cPG_VERSION\n" ,
603
- fix_path_separator (os_info .old_tablespaces [tblnum ]),
604
- PATH_SEPARATOR );
605
581
606
582
for (dbnum = 0 ; dbnum < old_cluster .dbarr .ndbs ; dbnum ++ )
607
583
fprintf (script , RMDIR_CMD " %c%s%c%u%c\n" , PATH_QUOTE ,
0 commit comments