Add missing errcode() in a few ereport calls.
authorAmit Kapila <akapila@postgresql.org>
Wed, 18 Mar 2020 04:03:01 +0000 (09:33 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 18 Mar 2020 04:03:01 +0000 (09:33 +0530)
commite37824136f060aefcb9e95ee3968446434c783c7
tree2ff4cf129ff9177351c902c86380adf1be00525e
parentc5b6b9c0d74400300b77d44194f6679f470352f2
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