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
2f657e4d
Commit
2f657e4d
authored
Jan 07, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More pg_upgrade relfilenode C comments added.
parent
3095643d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
contrib/pg_upgrade/info.c
contrib/pg_upgrade/info.c
+6
-0
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.c
+3
-1
No files found.
contrib/pg_upgrade/info.c
View file @
2f657e4d
...
@@ -132,7 +132,13 @@ create_rel_filename_map(const char *old_data, const char *new_data,
...
@@ -132,7 +132,13 @@ create_rel_filename_map(const char *old_data, const char *new_data,
new_cluster
.
tablespace_suffix
,
new_db
->
db_oid
);
new_cluster
.
tablespace_suffix
,
new_db
->
db_oid
);
}
}
/*
* old_relfilenode might differ from pg_class.oid (and hence
* new_relfilenode) because of CLUSTER, REINDEX, or VACUUM FULL.
*/
map
->
old_relfilenode
=
old_rel
->
relfilenode
;
map
->
old_relfilenode
=
old_rel
->
relfilenode
;
/* new_relfilenode will match old and new pg_class.oid */
map
->
new_relfilenode
=
new_rel
->
relfilenode
;
map
->
new_relfilenode
=
new_rel
->
relfilenode
;
/* used only for logging and error reporing, old/new are identical */
/* used only for logging and error reporing, old/new are identical */
...
...
contrib/pg_upgrade/pg_upgrade.c
View file @
2f657e4d
...
@@ -19,7 +19,9 @@
...
@@ -19,7 +19,9 @@
* in a cluster, but they can diverge due to CLUSTER, REINDEX, or VACUUM
* in a cluster, but they can diverge due to CLUSTER, REINDEX, or VACUUM
* FULL. The new cluster will have matching pg_class.oid and
* FULL. The new cluster will have matching pg_class.oid and
* pg_class.relfilenode values and be based on the old oid value. This can
* pg_class.relfilenode values and be based on the old oid value. This can
* cause the old and new pg_class.relfilenode values to differ.
* cause the old and new pg_class.relfilenode values to differ. In summary,
* old and new pg_class.oid and new pg_class.relfilenode will have the
* same value, and old pg_class.relfilenode might differ.
*
*
* We control all assignments of pg_type.oid because these oids are stored
* We control all assignments of pg_type.oid because these oids are stored
* in user composite type values.
* in user composite type values.
...
...
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