Re: [SQL] Delete failing with -- permission denied - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] Delete failing with -- permission denied
Date
Msg-id 987.1496697317@sss.pgh.pa.us
Whole thread Raw
In response to [SQL] Delete failing with -- permission denied  (anand086 <anand086@gmail.com>)
Responses Re: [SQL] Delete failing with -- permission denied  (anand086 <anand086@gmail.com>)
List 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 by date:

Previous
From: anand086
Date:
Subject: [SQL] Delete failing with -- permission denied
Next
From: anand086
Date:
Subject: Re: [SQL] Delete failing with -- permission denied