Re: GRANT access rights on rows

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: Jarom=?ISO-8859-1?B?7Q==?=r Kamler <kamler(at)centrum(dot)cz>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: GRANT access rights on rows
Date: 2006-01-04 23:15:04
Message-ID: BFE1C128.307C%sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 1/4/06 5:56 PM, "Jaromír Kamler" <kamler(at)centrum(dot)cz> wrote:

> Hallo,
> I need GRANT some privilegies to one row. I know, that it si possible to do
> that for columns, but I do not know how do it for rows. Any ideas?
>
> Thanks for your advices.

Make a view that contains only the rows that you want to allow access to.
Then, grant access to that view.

Create view as select * from mytable where mytable.id=1;

Hope that helps.

Sean

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message operationsengineer1 2006-01-04 23:23:15 Re: Problem UPDATE Statement
Previous Message Jaromír Kamler 2006-01-04 22:56:53 GRANT access rights on rows