Re: Problem with function permission test in a view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem with function permission test in a view
Date: 2003-09-11 17:02:47
Message-ID: 28477.1063299767@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Someone asked me a question about view and function permissions. I
> assumed all object access done by a view would be based on the
> permissions on the view, and not the permissions of the objects.

Table references are checked according to the owner of the view, but use
in a view does not change the execution context for function or operator
calls. This is how it's always been done.

> Is this a bug?

Changing it would be a major definitional change (and a pretty major
implementation change too). It might be better, but please don't
pre-judge the issue by labeling it a bug.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2003-09-11 17:05:06 Re: massive quotes?
Previous Message Bruce Momjian 2003-09-11 16:57:14 Re: massive quotes?