Re: Oracle's Virtual Private Database functionality

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Oracle's Virtual Private Database functionality
Дата
Msg-id 20050314044444.GA30090@wolff.to
обсуждение исходный текст
Ответ на Oracle's Virtual Private Database functionality  ("Doug Bloebaum" <DBloebau@luxotticaRetail.com>)
Список pgsql-general
On Wed, Mar 09, 2005 at 13:52:28 -0500,
  Doug Bloebaum <DBloebau@luxotticaRetail.com> wrote:
>
> It's apparent why: the view determines which table it's going to use at
> view creation time, not at query time, so this method is no good.
>
> Is there a "right way" to accomplish what I'm trying to do?

I think the normal way is to have the base tables have an extra attribute
column, an extra table mapping users (or something about the current
session) to attributes and a view for each base table combining the
base table with user to attribute table so that only appropiate rows
show up. If these need to be updatable, you will need to use rules on
the views.

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] A way to let Vacuum warn if FSM settings are
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Postgres stored proc that extracts data from Oracle