Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2f657e4d
Commit
2f657e4d
authored
14 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
More pg_upgrade relfilenode C comments added.
parent
3095643d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/pg_upgrade/info.c
+6
-0
6 additions, 0 deletions
contrib/pg_upgrade/info.c
contrib/pg_upgrade/pg_upgrade.c
+3
-1
3 additions, 1 deletion
contrib/pg_upgrade/pg_upgrade.c
with
9 additions
and
1 deletion
contrib/pg_upgrade/info.c
+
6
−
0
View file @
2f657e4d
...
...
@@ -132,7 +132,13 @@ create_rel_filename_map(const char *old_data, const char *new_data,
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
;
/* new_relfilenode will match old and new pg_class.oid */
map
->
new_relfilenode
=
new_rel
->
relfilenode
;
/* used only for logging and error reporing, old/new are identical */
...
...
This diff is collapsed.
Click to expand it.
contrib/pg_upgrade/pg_upgrade.c
+
3
−
1
View file @
2f657e4d
...
...
@@ -19,7 +19,9 @@
* in a cluster, but they can diverge due to CLUSTER, REINDEX, or VACUUM
* 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
* 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
* in user composite type values.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment