Re: Row-based authorization - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Row-based authorization
Date
Msg-id 20061205222501.GA10873@wolff.to
Whole thread Raw
In response to Row-based authorization  ("Thiago Silva" <thiago.silva@kdemail.net>)
List pgsql-general
On Tue, Dec 05, 2006 at 12:52:15 -0200,
  Thiago Silva <thiago.silva@kdemail.net> wrote:
>
> I was wondering if PostgreSQL authorization rules can be aplied on
> specific rows of a given table. I mean, AFAIK the GRANT statement
> cannot be used for such purpose.

You can do this kind of thing using a view that joins a column in the
table to current_user. You would probably want some other table which
maps something in this extra column to authorized users (unless each
row is only going to be accessible to one user).

pgsql-general by date:

Previous
From: Josh Berkus
Date:
Subject: Re: [ANNOUNCE] PostgreSQL 8.2 Now Available
Next
From: Ragnar
Date:
Subject: Re: Anything I can do to speed up this query?