Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B5B18475C98 for ; Mon, 6 Jan 2003 05:12:37 -0500 (EST) Received: from aristote2.infomaniak.ch (aristote2.infomaniak.ch [212.23.249.227]) by postgresql.org (Postfix) with ESMTP id BEB91475957 for ; Mon, 6 Jan 2003 05:12:36 -0500 (EST) Received: from cedserver (unverified [213.221.138.60]) by aristote2.infomaniak.ch (Rockliffe SMTPRA 4.5.6) with ESMTP id for ; Mon, 6 Jan 2003 11:10:18 +0100 From: =?iso-8859-1?Q?C=E9dric_Dufour_=28public=29?= To: Subject: Grant execute on functions; related objects permissions ? Date: Mon, 6 Jan 2003 11:12:25 +0100 Message-ID: <000401c2b56c$1c1419d0$3c8addd5@cednetwork.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/31 X-Sequence-Number: 10896 Hello, PostgreSQL 7.3 happily introduced permissions on functions. Now, having granted execution to a given function to a given user, I find myself with "access denied" errors on the objects that the function actually uses (e.g. a table on which it makes a select). So: 1. Am I missing something about how the GRANT ... ON FUNCTION works ? 2. Is there any way to automatically obtain privileges on the objects the function uses, without having to GRANT specific permissions on those object (the same way it works on MS-SQL) ? 3. Am I following the wrong direction (I understand question 2. might actually introduce a permission "hole" on the objects that functions might use; a user might obtain access to these objects through defining its own function, am I right ?) ? Thank you for you help, Cédric Dufour - Cogito Ergo Soft _____ Cogito Ergo Soft - Your think partner