pgsql: Fix multiple minor infelicities in aclchk.c error reports. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix multiple minor infelicities in aclchk.c error reports.
Date
Msg-id E1bCW3R-0005PK-4N@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix multiple minor infelicities in aclchk.c error reports.

pg_type_aclmask reported the wrong type's OID when complaining that
it could not find a type's typelem.  It also failed to provide a
suitable errcode when the initially given OID doesn't exist (which
is a user-facing error, since that OID can be user-specified).
pg_foreign_data_wrapper_aclmask and pg_foreign_server_aclmask likewise
lacked errcode specifications.  Trivial cosmetic adjustments too.

The wrong-type-OID problem was reported by Petru-Florin Mihancea in
bug #14186; the other issues noted by me while reading the code.
These errors all seem to be aboriginal in the respective routines, so
back-patch as necessary.

Report: <20160613163159.5798.52928@wrigleys.postgresql.org>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ba6421808b61340a16df566beea0d6d81b10124c

Modified Files
--------------
src/backend/catalog/aclchk.c | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix multiple minor infelicities in aclchk.c error reports.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix multiple minor infelicities in aclchk.c error reports.