X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id EBDB6924DB3 for ; Wed, 21 May 2003 20:14:43 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 32706-04 for ; Wed, 21 May 2003 20:13:58 -0400 (EDT) Received: from cfftechnologies.com (dsl081-147-127.chi1.dsl.speakeasy.net [64.81.147.127]) by developer.postgresql.org (Postfix) with ESMTP id 6B9BA924EE5 for ; Wed, 21 May 2003 18:42:45 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by cfftechnologies.com (Postfix on SuSE Linux 8.0 (i386)) with ESMTP id BAF8320C0A5 for ; Wed, 21 May 2003 17:31:53 -0500 (CDT) Received: from cfftechnologies.com ([127.0.0.1]) by localhost (coral [127.0.0.1]) (amavisd-new) with ESMTP id 16688-10 for ; Wed, 21 May 2003 17:31:53 -0000 (CDT) Received: from CFFtechnologies.com (garm-x.sosmarketplace.com [67.98.180.194]) by cfftechnologies.com (Postfix on SuSE Linux 8.0 (i386)) with ESMTP id 29CE720C09A for ; Wed, 21 May 2003 17:31:52 -0500 (CDT) Date: Wed, 21 May 2003 17:35:49 -0500 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: functions and grants question From: Avi Schwartz To: pgsql-odbc@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: <9215DB99-8BDC-11D7-9862-000393AE5044@CFFtechnologies.com> X-Mailer: Apple Mail (2.552) X-Virus-Scanned: by amavisd-new amavisd-new-20020630 X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=4.9 tests=whitelisted X-Razor-id: 272777f83d18a478c131591ee94250f096aca4de X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/49 X-Sequence-Number: 2949 In other databases, stored procedures run under the privilege of the stored procedure owner. Is it supposed to work the same in postgresql? I am the owner of the database, tables and functions. When I grant execute permission on a function to another user, that user gets permission denied errors on the tables the stored procedure is accessing. Any idea what I may be doing wrong? Thanks, Avi -- Avi Schwartz avi@CFFtechnologies.com