pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: josh@agliodbs.com
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Delete denied?
Date: Fri, 22 Aug 2003 19:55:28 -0400
Message-ID: <11256.1061596528@sss.pgh.pa.us> (raw)
In-Reply-To: <200308221624.13158.josh@agliodbs.com>
References: <200308221624.13158.josh@agliodbs.com>

Josh Berkus <josh@agliodbs.com> writes:
> Contributing could be that the table holding the deleted records is a child 
> table with an "ON CASCADE DELETE" of one of the tables being updated 
> elsewhere in the function.  And the function works if called by the owner of 
> the table (and the function).

I seem to recall that the original coding of the RI triggers was
careless about executing the RI operations as the "right" user (namely
the table owner).  This very possibly was still broken in 7.2.4.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <11256.1061596528@sss.pgh.pa.us>
Permalink:  ../11256.1061596528@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11256.1061596528@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, josh@agliodbs.com, sszabo@megazone.bigpanda.com
  Subject: Re: Delete denied?
  In-Reply-To: <11256.1061596528@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox