Re: One question about security label command

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: One question about security label command
Дата
Msg-id CA+TgmoY9CEDu0mTLyHU-jzBuDKegspJGip=aE1hOTumDAzYYnw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: One question about security label command  (Kouhei Kaigai <kaigai@ak.jp.nec.com>)
Ответы Re: One question about security label command  (Kohei KaiGai <kaigai@kaigai.gr.jp>)
Список pgsql-hackers
On Tue, Mar 3, 2015 at 5:01 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:
> From standpoint of SQL syntax, yep, SECURITY LABEL command support
> the object types below, however, it fully depends on security label
> provider; sepgsql.so in this case.
> At this moment, it supports database, schema, function, tables and
> column are supported by sepgsql. So, it is expected behavior.

If the core system supports labels on other object types and sepgsql
does not, it should give a better error for those cases, like:

ERROR: sepgsql provider does not support labels on roles

Errors like "ERROR:  unsupported object type: 1260" are a good way to
report a failure that is never expected to happen, but they shouldn't
be used as user-facing error messages.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: MD5 authentication needs help -SCRAM
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_rewind in contrib