Re: Privilege problems: access denied on select for owner? - Mailing list pgsql-general

From Sam Mason
Subject Re: Privilege problems: access denied on select for owner?
Date
Msg-id 20090803185716.GD5407@samason.me.uk
Whole thread Raw
In response to Privilege problems: access denied on select for owner?  (Nathan Jahnke <njahnke@gmail.com>)
List 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/

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: \copy command error
Next
From: Tom Lane
Date:
Subject: Re: Privilege problems: access denied on select for owner?