Improve reporting of permission errors for array types

Peter Eisentraut <peter_e@gmx.net>

Commit: 0b847cba696b0426694e5f48aa95455269624e87
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-06-15T20:03:50Z
Releases: 9.2.0
Improve reporting of permission errors for array types

Because permissions are assigned to element types, not array types,
complaining about permission denied on an array type would be
misleading to users.  So adjust the reporting to refer to the element
type instead.

In order not to duplicate the required logic in two dozen places,
refactor the permission denied reporting for types a bit.

pointed out by Yeb Havinga during the review of the type privilege
feature

Files