Add missing errcode() in a few ereport calls.
authorAmit Kapila <akapila@postgresql.org>
Wed, 18 Mar 2020 03:57:14 +0000 (09:27 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 18 Mar 2020 03:57:14 +0000 (09:27 +0530)
commitb4f140869f5da081c27c344587b0ff1a02821776
treef5d1fc73a869be7d8c22ba49b59d7fc88da178ef
parentfdeeb524b4e28affc527548af389c75e0a99c340
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
contrib/adminpack/adminpack.c
src/backend/storage/page/bufpage.c