Re: Expression index with function based on current_user?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fredrik Olsson <fredrik(dot)olsson(at)treyst(dot)se>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Expression index with function based on current_user?
Date: 2006-02-08 15:59:55
Message-ID: 14149.1139414395@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fredrik Olsson <fredrik(dot)olsson(at)treyst(dot)se> writes:
> CREATE VIEW foo AS
> SELECT * FROM private.t_foo WHERE private.haveaccess();
> GRANT ALL ON foo TO public;

If the function is parameterless as you show, what is it accomplishing
that could not be done with grant/revoke on the view?

If it is not parameterless, you had better be more specific about what
it depends on.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-02-08 16:06:10 Upcoming re-releases
Previous Message Alvaro Herrera 2006-02-08 15:56:00 Re: adding a new catalog