Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0e8f6bf0
Commit
0e8f6bf0
authored
Dec 05, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In pg_upgrade, allow tables using regclass to be upgraded because we
preserve pg_class oids since PG 9.0.
parent
ff68b256
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
contrib/pg_upgrade/check.c
contrib/pg_upgrade/check.c
+10
-10
doc/src/sgml/pgupgrade.sgml
doc/src/sgml/pgupgrade.sgml
+1
-1
No files found.
contrib/pg_upgrade/check.c
View file @
0e8f6bf0
...
@@ -611,11 +611,11 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
...
@@ -611,11 +611,11 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
/*
/*
* check_for_reg_data_type_usage()
* check_for_reg_data_type_usage()
* pg_upgrade only preserves these system values:
* pg_upgrade only preserves these system values:
* pg_class.
relfilenode
* pg_class.
oid
* pg_type.oid
* pg_type.oid
* pg_enum.oid
* pg_enum.oid
*
*
* M
ost
of the reg* data types reference system catalog info that is
* M
any
of the reg* data types reference system catalog info that is
* not preserved, and hence these data types cannot be used in user
* not preserved, and hence these data types cannot be used in user
* tables upgraded by pg_upgrade.
* tables upgraded by pg_upgrade.
*/
*/
...
@@ -656,7 +656,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
...
@@ -656,7 +656,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
" 'pg_catalog.regprocedure'::pg_catalog.regtype, "
" 'pg_catalog.regprocedure'::pg_catalog.regtype, "
" 'pg_catalog.regoper'::pg_catalog.regtype, "
" 'pg_catalog.regoper'::pg_catalog.regtype, "
" 'pg_catalog.regoperator'::pg_catalog.regtype, "
" 'pg_catalog.regoperator'::pg_catalog.regtype, "
" 'pg_catalog.regclass'::pg_catalog.regtype, "
/* regclass.oid is preserved, so 'regclass' is OK */
/* regtype.oid is preserved, so 'regtype' is OK */
/* regtype.oid is preserved, so 'regtype' is OK */
" 'pg_catalog.regconfig'::pg_catalog.regtype, "
" 'pg_catalog.regconfig'::pg_catalog.regtype, "
" 'pg_catalog.regdictionary'::pg_catalog.regtype) AND "
" 'pg_catalog.regdictionary'::pg_catalog.regtype) AND "
...
...
doc/src/sgml/pgupgrade.sgml
View file @
0e8f6bf0
...
@@ -557,7 +557,7 @@ psql --username postgres --file script.sql postgres
...
@@ -557,7 +557,7 @@ psql --username postgres --file script.sql postgres
<application>pg_upgrade</> does not support upgrading of databases
<application>pg_upgrade</> does not support upgrading of databases
containing these <type>reg*</> OID-referencing system data types:
containing these <type>reg*</> OID-referencing system data types:
<type>regproc</>, <type>regprocedure</>, <type>regoper</>,
<type>regproc</>, <type>regprocedure</>, <type>regoper</>,
<type>regoperator</>, <type>regc
lass</>, <type>regc
onfig</>, and
<type>regoperator</>, <type>regconfig</>, and
<type>regdictionary</>. (<type>regtype</> can be upgraded.)
<type>regdictionary</>. (<type>regtype</> can be upgraded.)
</para>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment