Re: [PATCH] Largeobject access controls

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: [PATCH] Largeobject access controls
Дата
Msg-id 3073cc9b0909232300x7db74456lf4ce5e9abc91e590@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Largeobject access controls  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Ответы Re: [PATCH] Largeobject access controls  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Список pgsql-hackers
2009/9/24 KaiGai Kohei <kaigai@ak.jp.nec.com>:
>
> Example)
>  postgres=# SET SESSION AUTHORIZATION ymj;
>  SET
>  postgres=> SELECT loread(lo_open(16453, x'40000'::int), 20);
>  ERROR:  permission denied for largeobject 16453
>
>  postgres=# SET largeobject_compat_acl = on;           <---- enables compatible mode
>  SET                                                         (Only superuser can set it)
>  postgres=# SET SESSION AUTHORIZATION ymj;
>  SET
>  postgres=> SELECT loread(lo_open(16453, x'40000'::int), 20);
>  NOTICE:  permission denied for largeobject 16453      <---- dose not prevent it

i'm not really sure the warnings are worth the trouble but if you want
to do it then the NOTICE version should use another message... i'm not
comfortable with a "permission denied" that is simply ignored...

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: [PATCH] Largeobject access controls
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Re: [PATCH] Largeobject access controls