Re: Oracle's Virtual Private Database functionality

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Doug Bloebaum <DBloebau(at)luxotticaRetail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Oracle's Virtual Private Database functionality
Date: 2005-03-14 04:44:44
Message-ID: 20050314044444.GA30090@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Mar 09, 2005 at 13:52:28 -0500,
Doug Bloebaum <DBloebau(at)luxotticaRetail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2005-03-14 04:48:16 Re: Postgres stored proc that extracts data from Oracle
Previous Message Bruce Momjian 2005-03-14 02:52:47 Re: [PATCHES] A way to let Vacuum warn if FSM settings are