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
dc01efa5
Commit
dc01efa5
authored
Feb 11, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_upgrade: improve checksum mismatch error message
Patch by Greg Sabino Mullane, slight adjustments by me
parent
056764b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
contrib/pg_upgrade/controldata.c
contrib/pg_upgrade/controldata.c
+8
-4
No files found.
contrib/pg_upgrade/controldata.c
View file @
dc01efa5
...
@@ -572,10 +572,14 @@ check_control_data(ControlData *oldctrl,
...
@@ -572,10 +572,14 @@ check_control_data(ControlData *oldctrl,
* We might eventually allow upgrades from checksum to no-checksum
* We might eventually allow upgrades from checksum to no-checksum
* clusters.
* clusters.
*/
*/
if
(
oldctrl
->
data_checksum_version
!=
newctrl
->
data_checksum_version
)
if
(
oldctrl
->
data_checksum_version
==
0
&&
{
newctrl
->
data_checksum_version
!=
0
)
pg_fatal
(
"old and new pg_controldata checksum versions are invalid or do not match
\n
"
);
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
"
);
}
}
...
...
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