agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: anand086 <anand086@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Delete failing with -- permission denied
Date: Mon, 05 Jun 2017 17:15:17 -0400
Message-ID: <987.1496697317@sss.pgh.pa.us> (raw)
In-Reply-To: <1496695493471-5964882.post@n3.nabble.com>
References: <1496695493471-5964882.post@n3.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (5+ messages) latest in thread
Message-ID: <987.1496697317@sss.pgh.pa.us>
Permalink: ../987.1496697317@sss.pgh.pa.us/
Also on: postgresql.org/message-id/987.1496697317@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, anand086@gmail.com
Subject: Re: Delete failing with -- permission denied
In-Reply-To: <987.1496697317@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox