Re: Proposal: access control jails (and introduction as aspiring GSoC student)

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: Proposal: access control jails (and introduction as aspiring GSoC student)
Дата
Msg-id 4BAC81E5.7030405@cs.helsinki.fi
обсуждение исходный текст
Ответ на Re: Proposal: access control jails (and introduction as aspiring GSoC student)  (Joseph Adams <joeyadams3.14159@gmail.com>)
Список pgsql-hackers
On 3/26/10 5:42 AM +0200, Joseph Adams wrote:
> // New libpq function
> pg_set('current_user', 'bob');
>
> $result = pg_query_params(
>     'SELECT answer FROM secrets WHERE user=current_user AND question=$1',
>     array('Birth place'));
>
>
> What this really does is something like:
>
> $result = pg_query_params(
>     'LET current_user=$1 DO $2 $3',
>     array(
>         'bob',
>         'SELECT answer FROM secrets WHERE user=current_user AND question=$1',
>         'Birth place')
>     ));

Looks to me like this is already achievable with custom GUCs and views.


Regards,
Marko Tiikkaja


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Incrementally Updated Backups and restartpoints
Следующее
От: Mike Lewis
Дата:
Сообщение: Postgres 9.0 Alpha, GIN indexes, and intarray contrib module, and SQL Functions