diff options
| author | Amit Kapila | 2020-03-18 03:57:14 +0000 |
|---|---|---|
| committer | Amit Kapila | 2020-03-18 03:57:14 +0000 |
| commit | b4f140869f5da081c27c344587b0ff1a02821776 (patch) | |
| tree | f5d1fc73a869be7d8c22ba49b59d7fc88da178ef /src | |
| parent | fdeeb524b4e28affc527548af389c75e0a99c340 (diff) | |
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 cb7b8c8a63d..d708117a406 100644 --- a/src/backend/storage/page/bufpage.c +++ b/src/backend/storage/page/bufpage.c @@ -141,7 +141,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))); |
