diff options
author | Amit Kapila <akapila@postgresql.org> | 2020-03-18 10:10:27 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2020-03-18 10:10:27 +0530 |
commit | 6bdfe428d3994bfaed814e818fe93ad9635a31d6 (patch) | |
tree | 812921a127884a6f053769b2956851e6f4a12609 /src | |
parent | f99363e23102c1dceb83d066e3b16c4688079634 (diff) | |
download | postgresql-6bdfe428d3994bfaed814e818fe93ad9635a31d6.tar.gz postgresql-6bdfe428d3994bfaed814e818fe93ad9635a31d6.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 b64e27b82c4..4e81afbcb05 100644 --- a/src/backend/storage/page/bufpage.c +++ b/src/backend/storage/page/bufpage.c @@ -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))); |