Re: Privilege problems: access denied on select for owner?

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Privilege problems: access denied on select for owner?
Date: 2009-08-03 18:57:16
Message-ID: 20090803185716.GD5407@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 03, 2009 at 01:39:08PM -0500, Nathan Jahnke wrote:
> So the role "sample" owns the database "sample" and has default
> privileges on the table "users" in that database. From the manual:
>
> "There is no need to grant privileges to the owner of an object
> (usually the user that created it), as the owner has all privileges by
> default."

I think all those owners are different because the user that creates
an object is its owner. So if your users table wasn't created by your
sample user then it won't have permissions to access it.

You probably need to do:

ALTER TABLE users OWNER TO sample;

--
Sam http://samason.me.uk/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-08-03 18:58:40 Re: Privilege problems: access denied on select for owner?
Previous Message Sam Mason 2009-08-03 18:49:25 Re: \copy command error