diff options
author | Amit Kapila <akapila@postgresql.org> | 2020-03-18 09:33:01 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2020-03-18 09:33:01 +0530 |
commit | e37824136f060aefcb9e95ee3968446434c783c7 (patch) | |
tree | 2ff4cf129ff9177351c902c86380adf1be00525e /src | |
parent | c5b6b9c0d74400300b77d44194f6679f470352f2 (diff) | |
download | postgresql-e37824136f060aefcb9e95ee3968446434c783c7.tar.gz postgresql-e37824136f060aefcb9e95ee3968446434c783c7.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/page/bufpage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/page/bufpage.c b/src/backend/storage/page/bufpage.c index 6b49810e378..169430835c3 100644 --- a/src/backend/storage/page/bufpage.c +++ b/src/backend/storage/page/bufpage.c @@ -148,7 +148,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))); |