Re: SET Role doesn't work from Security Definer Function...

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: SET Role doesn't work from Security Definer Function...
Дата
Msg-id 20100223150639.GD3672@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: SET Role doesn't work from Security Definer Function...  (dipti shah <shahdipti1980@gmail.com>)
Ответы Re: SET Role doesn't work from Security Definer Function...  (dipti shah <shahdipti1980@gmail.com>)
Список pgsql-general
dipti shah escribió:

> For your reference I did something like this:
>
> 1. Create Function foo1 .... (this is without SECURITY DEFINER where I am
> using SET ROLE to current user).
>
> 2. Create Function foo2 with SECURITY DEFINER ...
>          spi_exe_query("select foo1()"); ==> Here it throws the error.

Shouldn't it be the other way around?  The normal function calls the
security-definer one.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Subqueries or Joins? Problems with multiple table query
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump new version