Re: [HACKERS] Here it is - view permissions

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: [HACKERS] Here it is - view permissions
Дата
Msg-id Pine.BSF.3.96.980223231732.230C-100000@thelab.hub.org
обсуждение исходный текст
Ответ на Here it is - view permissions  (jwieck@debis.com (Jan Wieck))
Ответы Re: [PATCHES] Re: [HACKERS] Here it is - view permissions
Список pgsql-hackers
On Fri, 20 Feb 1998, Jan Wieck wrote:

> First step done,
>
>     below  is  the patch to have views to override the permission
>     checks for the accessed tables. Now we can do the following:
>
>     CREATE VIEW db_user AS SELECT
>          usename,
>          usesysid,
>          usecreatedb,
>          usetrace,
>          usecatupd,
>          '**********'::text as passwd,
>          valuntil
>         FROM pg_user;

    I used the rewrite RULE here, instead of the above VIEW, with the
VIEW being merely a 'SELECT * FROM pg_user'...by using the RULE (unless
I'm mistaken?), if we change pg_user (ie. add another field at some later
date), the view itself shouldn't require a change...



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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] regression: select_views.sql
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Re: Appended a string of text to each line in a file