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

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Privilege problems: access denied on select for owner?
Дата
Msg-id 20090803185716.GD5407@samason.me.uk
обсуждение исходный текст
Ответ на Privilege problems: access denied on select for owner?  (Nathan Jahnke <njahnke@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: \copy command error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Privilege problems: access denied on select for owner?