In pg_upgrade, allow tables using regclass to be upgraded because we

preserve pg_class oids since PG 9.0.
REL9_1_STABLE
Bruce Momjian 15 years ago
parent 7c9557b6f8
commit 98fbce0931
  1. 2
      contrib/pg_upgrade/check.c
  2. 2
      doc/src/sgml/pgupgrade.sgml

@ -686,7 +686,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
" 'pg_catalog.regprocedure'::pg_catalog.regtype, "
" 'pg_catalog.regoper'::pg_catalog.regtype, "
" 'pg_catalog.regoperator'::pg_catalog.regtype, "
" 'pg_catalog.regclass'::pg_catalog.regtype, "
/* allow " 'pg_catalog.regclass'::pg_catalog.regtype, "*/
/* regtype.oid is preserved, so 'regtype' is OK */
" 'pg_catalog.regconfig'::pg_catalog.regtype, "
" 'pg_catalog.regdictionary'::pg_catalog.regtype) AND "

@ -541,7 +541,7 @@ psql --username postgres --file script.sql postgres
<application>pg_upgrade</> does not support upgrading of databases
containing these <type>reg*</> OID-referencing system data types:
<type>regproc</>, <type>regprocedure</>, <type>regoper</>,
<type>regoperator</>, <type>regclass</>, <type>regconfig</>, and
<type>regoperator</>, <type>regconfig</>, and
<type>regdictionary</>. (<type>regtype</> can be upgraded.)
</para>

Loading…
Cancel
Save