Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 98fbce0

Browse files
committed
In pg_upgrade, allow tables using regclass to be upgraded because we
preserve pg_class oids since PG 9.0.
1 parent 7c9557b commit 98fbce0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_upgrade/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
686686
" 'pg_catalog.regprocedure'::pg_catalog.regtype, "
687687
" 'pg_catalog.regoper'::pg_catalog.regtype, "
688688
" 'pg_catalog.regoperator'::pg_catalog.regtype, "
689-
" 'pg_catalog.regclass'::pg_catalog.regtype, "
689+
/* allow " 'pg_catalog.regclass'::pg_catalog.regtype, "*/
690690
/* regtype.oid is preserved, so 'regtype' is OK */
691691
" 'pg_catalog.regconfig'::pg_catalog.regtype, "
692692
" 'pg_catalog.regdictionary'::pg_catalog.regtype) AND "

doc/src/sgml/pgupgrade.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ psql --username postgres --file script.sql postgres
541541
<application>pg_upgrade</> does not support upgrading of databases
542542
containing these <type>reg*</> OID-referencing system data types:
543543
<type>regproc</>, <type>regprocedure</>, <type>regoper</>,
544-
<type>regoperator</>, <type>regclass</>, <type>regconfig</>, and
544+
<type>regoperator</>, <type>regconfig</>, and
545545
<type>regdictionary</>. (<type>regtype</> can be upgraded.)
546546
</para>
547547

0 commit comments

Comments
 (0)