From: | Yogesh Ashok Powar <yogesh(at)cse(dot)iitb(dot)ac(dot)in> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Cc: | yogesh(at)cse(dot)iitb(dot)ac(dot)in |
Subject: | VPD implementaion . howto? |
Date: | 2005-11-28 23:59:30 |
Message-ID: | 438B99E2.7090101@cse.iitb.ac.in |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
hi people,
I wanted to implement fine grain authorization.
Which part of backend i should work on ?
to get the idea of VPD(virtual private database /FGA)
there are 2 table nurse and patient;
both of them have attribute floor , which tells about which floor these
nurses work and patients lay.
So if a nurse gives query select * from patient; She should see only
those patients who are on the same floor as hers.
so
select * from patient;
|
|
V
select * from patient where floor in (select floor from nurse
where name=USER);
yes, i want to execute upper query and want result of lower query.
how do is do it?
If we can consider 'patient' as view which store 'select * from where
floor in ......name=USER) then problem is solved.
But new problem is WE CAN NOT CREATE VIEW FOR EVERY TABLE...
SO how do i do it?
SOS
--
```````````o__````````````
``````````_.>/ _``````````
_________(_)_\(_)___________
Life is like riding a bicycle. To keep your balance you must keep moving
--Albert Einstein
__________________________________________________________________________
Yogesh Ashok Powar
http://www.cse.iitb.ac.in/~yogesh
9869922761
_________________________________________________________________________
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-11-29 01:25:50 | pgsql: Fix EXPLAIN and EXECUTE commands to pass portal parameters |
Previous Message | Tom Lane | 2005-11-28 23:46:25 | pgsql: Tweak hash join code to use an additional heuristic for deciding |