X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 75FECD1BA8C for ; Fri, 22 Aug 2003 20:28:39 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 01321-01 for ; Fri, 22 Aug 2003 20:28:37 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 75DE3D1BAB4 for ; Fri, 22 Aug 2003 20:28:28 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3540358; Fri, 22 Aug 2003 16:26:02 -0700 Content-Type: text/plain; charset="us-ascii" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Stephan Szabo , pgsql-sql@postgresql.org Subject: Delete denied? Date: Fri, 22 Aug 2003 16:24:13 -0700 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308221624.13158.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/279 X-Sequence-Number: 14895 Stephan, Tom: Hey, I have a function which can involve some records being deleted at the= =20 end. The user calling the function has permission to delete records (and= =20 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 functi= on,=20 but this is on 7.2.4.=20=20=20 Contributing could be that the table holding the deleted records is a child= =20 table with an "ON CASCADE DELETE" of one of the tables being updated=20 elsewhere in the function. And the function works if called by the owner o= f=20 the table (and the function). --=20 -Josh Berkus Aglio Database Solutions San Francisco