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 C69A3D1B99B for ; Fri, 22 Aug 2003 22:22:35 -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 27252-09 for ; Fri, 22 Aug 2003 22:22:34 -0300 (ADT) Received: from megazone.bigpanda.com (45.mufb.snfc.sffca01r18.dsl.att.net [12.103.249.45]) by svr1.postgresql.org (Postfix) with ESMTP id 976D7D1B52C for ; Fri, 22 Aug 2003 22:22:24 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 1DA93D626; Fri, 22 Aug 2003 18:22:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 134D75C0D; Fri, 22 Aug 2003 18:22:34 -0700 (PDT) Date: Fri, 22 Aug 2003 18:22:34 -0700 (PDT) From: Stephan Szabo To: Josh Berkus Cc: Subject: Re: Delete denied? In-Reply-To: <200308221648.14119.josh@agliodbs.com> Message-ID: <20030822181933.T2037-100000@megazone.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/282 X-Sequence-Number: 14898 On Fri, 22 Aug 2003, Josh Berkus wrote: > Guys: > > > 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). > > Further update: I tried changing the owner of the function and table to no > avail. Also tried dropping the FK. It seems to work if called by the > owner of the database, but not otherwise. It still failed after you dropped the FK (I'd have otherwise agreed with Tom that there were some cases that I think were broken as recently as 7.3.x for some value of x on permissions)? How much of the definitions can you let us see?