@@ -159,10 +159,6 @@ check_and_dump_old_cluster(bool live_check)
159159 if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 903 )
160160 old_9_3_check_for_line_data_type_usage (& old_cluster );
161161
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-
166162 /*
167163 * While not a check option, we do this now because this is the only time
168164 * the old server is running.
@@ -233,10 +229,6 @@ issue_warnings_and_set_wal_level(void)
233229 */
234230 start_postmaster (& new_cluster , true);
235231
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-
240232 /* Reindex hash indexes for old < 10.0 */
241233 if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 906 )
242234 old_9_6_invalidate_hash_indexes (& new_cluster , false);
@@ -295,8 +287,8 @@ check_cluster_versions(void)
295287 * upgrades
296288 */
297289
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" );
300292
301293 /* Only current PG version is supported as a target */
302294 if (GET_MAJOR_VERSION (new_cluster .major_version ) != GET_MAJOR_VERSION (PG_VERSION_NUM ))
@@ -331,12 +323,6 @@ check_cluster_compatibility(bool live_check)
331323 get_control_data (& new_cluster , false);
332324 check_control_data (& old_cluster .controldata , & new_cluster .controldata );
333325
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-
340326 if (live_check && old_cluster .port == new_cluster .port )
341327 pg_fatal ("When checking a live server, "
342328 "the old and new port numbers must be different.\n" );
@@ -479,11 +465,6 @@ check_databases_are_compatible(void)
479465 * they do, it would cause an error while restoring global objects.
480466 * This allows the failure to be detected at check time, rather than
481467 * 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.
487468 */
488469static void
489470check_for_new_tablespace_dir (ClusterInfo * new_cluster )
@@ -597,11 +578,6 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
597578 int dbnum ;
598579
599580 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 );
605581
606582 for (dbnum = 0 ; dbnum < old_cluster .dbarr .ndbs ; dbnum ++ )
607583 fprintf (script , RMDIR_CMD " %c%s%c%u%c\n" , PATH_QUOTE ,
0 commit comments