| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера