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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nathan Jahnke <njahnke(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Privilege problems: access denied on select for owner?
Date: 2009-08-03 18:58:40
Message-ID: 6190.1249325920@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nathan Jahnke <njahnke(at)gmail(dot)com> writes:
> 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."

Owning the database has little or nothing to do with owning the objects
within it. You have not shown us who owns the table users, but I bet
it's not "sample".

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message erobles 2009-08-03 19:03:23 how can i mark date function like iscachable
Previous Message Sam Mason 2009-08-03 18:57:16 Re: Privilege problems: access denied on select for owner?