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
dc01efa5
Commit
dc01efa5
authored
10 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
pg_upgrade: improve checksum mismatch error message
Patch by Greg Sabino Mullane, slight adjustments by me
parent
056764b1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/pg_upgrade/controldata.c
+8
-4
8 additions, 4 deletions
contrib/pg_upgrade/controldata.c
with
8 additions
and
4 deletions
contrib/pg_upgrade/controldata.c
+
8
−
4
View file @
dc01efa5
...
...
@@ -572,10 +572,14 @@ check_control_data(ControlData *oldctrl,
* We might eventually allow upgrades from checksum to no-checksum
* clusters.
*/
if
(
oldctrl
->
data_checksum_version
!=
newctrl
->
data_checksum_version
)
{
pg_fatal
(
"old and new pg_controldata checksum versions are invalid or do not match
\n
"
);
}
if
(
oldctrl
->
data_checksum_version
==
0
&&
newctrl
->
data_checksum_version
!=
0
)
pg_fatal
(
"old cluster does not use data checksums but the new one does
\n
"
);
else
if
(
oldctrl
->
data_checksum_version
!=
0
&&
newctrl
->
data_checksum_version
==
0
)
pg_fatal
(
"old cluster uses data checksums but the new one does not
\n
"
);
else
if
(
oldctrl
->
data_checksum_version
!=
newctrl
->
data_checksum_version
)
pg_fatal
(
"old and new cluster pg_controldata checksum versions do not match
\n
"
);
}
...
...
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