Delete denied?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Delete denied?
Date: 2003-08-22 23:24:13
Message-ID: 200308221624.13158.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Stephan, Tom:

Hey, I have a function which can involve some records being deleted at the
end. The user calling the function has permission to delete records (and
I've tested this), but when I run the function I get "permission denied".

Any clue? I remember in 7.1.x that you couldn't delete records in a function,
but this is on 7.2.4.

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).

--
-Josh Berkus
Aglio Database Solutions
San Francisco

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2003-08-22 23:48:14 Re: Delete denied?
Previous Message floyds 2003-08-22 19:32:27 composite type in a table