X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D86B4475458 for ; Wed, 9 Apr 2003 07:52:31 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 7C28E474E42 for ; Wed, 9 Apr 2003 07:52:31 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 64AB943A89E; Wed, 9 Apr 2003 07:52:31 -0400 (EDT) From: "Gaetano Mendola" X-Newsgroups: comp.databases.postgresql.admin Subject: Permission on Views Date: Wed, 9 Apr 2003 13:52:35 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 38 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-admin@postgresql.org X-Spam-Status: No, hits=-5.2 required=5.0 tests=BAYES_10,PRIORITY_NO_NAME version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/135 X-Sequence-Number: 8290 Hi all, I'm going to use the Postgres permission features. I found a not simmetrical behavior about permission on view and function. Let me explain: If I use the view/table T inside the view V is enough give the select permission on view V. If I user the view/table T inside the funcion F is enough declare F with the "Secuity definer" attribute and of course give the execution permission. In these two cases all is working fine, the following case have some problems: If the view V use a function F. In this last case is not enough have the select permisson on V but you should give also the Execution permission on F!!! This fact are driving us to put 1) Select permission on V 2) Exceute permission + Security Definer attr on F. why this behavior? Are you thing that in version 7.4 will exist a sort of Security definer for views ? Regards Gaetano Mendola