Re: View permission error after upgrading from 8.4 -> 9.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brian Hirt <bhirt(at)me(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: View permission error after upgrading from 8.4 -> 9.2
Date: 2013-08-13 18:03:18
Message-ID: 24100.1376416998@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brian Hirt <bhirt(at)me(dot)com> writes:
> I'm upgrading our database from 8.4 to 9.2 and I've run across a view that is no longer working. When selecting from the view, I get a permission denied error on one of the referenced tables. However, I can run the view's query directly without problems and I have read access to all the tables the view accesses.

Permissions checks for tables referenced by a view are done as the view's
owner. I'm suspicious that one of the relations used in your view
vcredit_info is itself a view that references developer_title, and
is owned by some other user with less privilege than you.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2013-08-13 18:40:17 Re: MinGW compiled client library
Previous Message François Beausoleil 2013-08-13 17:44:43 Re: Difference between terminate/cancel?