]> granicus.if.org Git - postgresql/commit
Fix multiple minor infelicities in aclchk.c error reports.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Jun 2016 17:53:10 +0000 (13:53 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Jun 2016 17:53:10 +0000 (13:53 -0400)
commit783cb6e48b29a34b2cefc401a72d4cc86fa6b2a6
tree67ee06a136472240ace192f38257ce4f701185b8
parent89d53515e53ea080029894939118365b647489b3
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>
src/backend/catalog/aclchk.c