Re: [SQL] Delete failing with -- permission denied

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Delete failing with -- permission denied
Дата
Msg-id 987.1496697317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [SQL] Delete failing with -- permission denied  (anand086 <anand086@gmail.com>)
Ответы Re: [SQL] Delete failing with -- permission denied  (anand086 <anand086@gmail.com>)
Список pgsql-sql
anand086 <anand086@gmail.com> writes:
> Delete from table test.entities_all is failing with "permission denied for
> relation". The table from which row has to be deleted, is referenced by
> another table "attribute_types" with ON DELETE CASCADE.

> I tried deleting the row from attribute_types table and then deleting from
> test.entities_all succeed.

Probably you have permissions to do such deletion, but the owner of the
entities_all table does not.  FK CASCADE queries are run as the owner
of the table in question.
        regards, tom lane



В списке pgsql-sql по дате отправления:

Предыдущее
От: anand086
Дата:
Сообщение: [SQL] Delete failing with -- permission denied
Следующее
От: anand086
Дата:
Сообщение: Re: [SQL] Delete failing with -- permission denied