forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfa33956
committed
Error out in pg_checksums on incompatible block size
pg_checksums is compiled with a given block size and has a harddependency to it per the way checksums are calculated viachecksum_impl.h, and trying to use the tool on a data folder which hasnot the same block size would result in incorrect checksum calculationsand/or block read errors, meaning that the data folder is corrupted.This is harmless as checksums are only checked now, but very confusingfor the user so issue an error properly if the block size used atcompilation and the block size used in the data folder do not match.Reported-by: Sergei KornilovAuthor: Michael Banck, Michael PaquierReviewed-by: Fabien Coelho, Magnus HaganderDiscussion:https://postgr.es/m/20190317054657.GA3357@paquier.xyzackpatch-through: 111 parent4178d8b commitfa33956
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
330 | 339 |
| |
331 | 340 |
| |
332 | 341 |
| |
|
0 commit comments
Comments
(0)