Re: [GENERAL] Row Level Access

2013-11-06 Thread Albe Laurenz
Maciej Mrowiec wrote: > I'm working on RBAC implementation over posgresql and I was wondering is > there any common technique to > achieve row level access control ? > > So far I'm considering using WITH clause in template like this: > > WITH AS ( SELECT . ) ; > > Which would be just prepe

[GENERAL] Row Level Access

2013-11-06 Thread Maciej Mrowiec
Hello List :D I'm working on RBAC implementation over posgresql and I was wondering is there any common technique to achieve row level access control ? So far I'm considering using WITH clause in template like this: WITH AS ( SELECT . ) ; Which would be just prepended to any specified quer

Re: [GENERAL] Row-Level Access Control via FK to pg_catalog.pg_authid

2007-02-21 Thread Tom Lane
David Fetter <[EMAIL PROTECTED]> writes: > I'm working on a way to do row-level access via VIEWs and ROLEs. You sure you're not re-inventing the wheel? http://pgfoundry.org/projects/veil/ regards, tom lane ---(end of broadcast)-

Re: [GENERAL] Row-Level Access Control via FK to pg_catalog.pg_authid

2007-02-21 Thread Alvaro Herrera
David Fetter wrote: > Folks, > > I'm working on a way to do row-level access via VIEWs and ROLEs. The > idea: > > Given a table foo with pk foo_id, which is to be the subject of these > row-level permissions, I'd make another table, say can_read_foo, which > looks like: > > CREATE TABLE can_rea

[GENERAL] Row-Level Access Control via FK to pg_catalog.pg_authid

2007-02-21 Thread David Fetter
Folks, I'm working on a way to do row-level access via VIEWs and ROLEs. The idea: Given a table foo with pk foo_id, which is to be the subject of these row-level permissions, I'd make another table, say can_read_foo, which looks like: CREATE TABLE can_read_foo ( foo_id INTEGER NOT NULL REFE