From: Michael A Nachbaur <mike@nachbaur.com>
To: pgsql-sql@postgresql.org
Subject: "Permission denied" on view
Date: Tue, 25 Nov 2003 08:55:13 -0800
Message-ID: <200311250855.13335.mike@nachbaur.com> (raw)
I'm having a strange problem that, though I found an appropriate thread in the
mailing list archive, archives.postgresql.org seems to be down so I cannot
see what the resolution was.
I have a database "scamp", with my own administrator user and a user "dialup".
Inside the "scamp" database I've created the "dialup" schema, where a few
tables reside. I've created a view called "Dialup.UserGroups" as the
administrator user, and then granted select access to the dialup user on all
the tables that view uses (which are all in the public schema).
When I log into the database with the user dialup, if I perform the raw SQL
statement it returns all the expected results, but I get the following when I
try to select from the view:
scamp=> select * from Dialup.UserGroup;
ERROR: dialup: permission denied
I have tried to create a similar, but differently named, view in the public
schema to no avail.
Essentially, I want to have the dialup user have access to the tables it
needs, but except for one table, they should all be read-only. As such, I
haven't set the ownership for the "dialup" schema to be owned by the "dialup"
user. Could this perhaps be causing some problems?
Any help on the matter would be appreciated (or getting the mailing list
archives website up and running again ;)
--
/* Michael A. Nachbaur <mike@nachbaur.com>
* http://nachbaur.com/pgpkey.asc
*/
"He expanded his chest to make it totally clear that here
was the sort of man you only dared to cross if you had a
team of Sherpas with you. "
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@nachbaur.com
Subject: Re: "Permission denied" on view
In-Reply-To: <200311250855.13335.mike@nachbaur.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox