Kohei KaiGai wrote:
> The attached patch revises error message when security label
> is specified on unsupported object.
> getObjectTypeDescription() may be better than oid of catalog.
Agreed.
> postgres=# SECURITY LABEL FOR selinux ON ROLE kaigai
> postgres-# IS 'system_u:object_r:unlabeled_t:s0';
> ERROR: sepgsql provider does not support labels on role
I'd make itsepgsql provider does not support labels on objects of type "%s"
And perhaps make it an ereport also, with errcode etc.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services