mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Add missing errcode() in a few ereport calls.
This will allow to specifying SQLSTATE error code for the errors in the missing places. Reported-by: Sawada Masahiko Author: Sawada Masahiko Backpatch-through: 9.5 Discussion: https://postgr.es/m/CA+fd4k6N8EjNvZpM8nme+y+05mz-SM8Z_BgkixzkA34R+ej0Kw@mail.gmail.com
This commit is contained in:
@ -140,7 +140,7 @@ PageIsVerified(Page page, BlockNumber blkno)
|
||||
if (checksum_failure)
|
||||
{
|
||||
ereport(WARNING,
|
||||
(ERRCODE_DATA_CORRUPTED,
|
||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
||||
errmsg("page verification failed, calculated checksum %u but expected %u",
|
||||
checksum, p->pd_checksum)));
|
||||
|
||||
|
Reference in New Issue
Block a user