Re: Auto-explain patch

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: Auto-explain patch
Дата
Msg-id e51f66da0807090422i23ae7345h2b4ba807951532b4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Auto-explain patch  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: Auto-explain patch  (Dean Rasheed <dean_rasheed@hotmail.com>)
Список pgsql-hackers
On 7/9/08, ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> wrote:
>  Dean Rasheed <dean_rasheed@hotmail.com> wrote:
> > * client_sql_trace = on | off - settable by a normal user to allow a
>  > client session to see the sql_trace output. If this parameter is on,
>  > the sql_trace will be logged as NOTICE output.
>
>
> In terms of security, is it ok to show normal users SQLs used in functions
>  that are owned by other users? Users can call not-owned functions only if
>  they have EXECUTE privilege on them. -- presently we can see function
>  bodies from pg_proc.prosrc freely, though.

Different owner is not a problem, but SECURITY DEFINER may be.

That can be solved by turning the setting off on entry to such function,
by non-superuser.  Like we handle search_path.

-- 
marko


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Auto-explain patch
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Identifier case folding notes