X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9724E536AF for ; Wed, 27 Apr 2005 13:01:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99679-10 for ; Wed, 27 Apr 2005 16:01:39 +0000 (GMT) Received: from mailgate1.uni-kl.de (mailgate1.uni-kl.de [131.246.120.5]) by svr1.postgresql.org (Postfix) with ESMTP id E1B3F5367C for ; Wed, 27 Apr 2005 13:01:28 -0300 (ADT) Received: from mail.wikon.de (mail.wikon.de [131.246.197.196]) by mailgate1.uni-kl.de (8.13.1/8.13.1) with ESMTP id j3RG1OcX016113 for ; Wed, 27 Apr 2005 18:01:24 +0200 Received: from mail.wikon.de (localhost [127.0.0.1]) by VAMS.dummy (Postfix) with SMTP id 2F6BFA8D1 for ; Wed, 27 Apr 2005 18:01:24 +0200 (CEST) Received: from [192.168.17.92] (enter.wikon.de [131.246.197.200]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.wikon.de (Postfix) with ESMTP id 8FEC2A8D1 for ; Wed, 27 Apr 2005 18:01:23 +0200 (CEST) From: Peter Dockweiler Organization: WIKON Kommunikationstechnik GmbH To: pgsql-admin Subject: Re: security via views Date: Wed, 27 Apr 2005 18:01:46 +0200 User-Agent: KMail/1.8 References: <20050427155202.GA20043@nibiru.borg.metux.de> In-Reply-To: <20050427155202.GA20043@nibiru.borg.metux.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504271801.47297.pdo@wikon.de> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/379 X-Sequence-Number: 17392 Hello, yes this works. Just drop the rights on the table and grand the rights on the view. Peter Am Mittwoch, 27. April 2005 17:52 schrieb Enrico Weigelt: > Hi folks, > > we've got a larger project with several subsystems, which should > run in their own security context / users. > > Most of the database access works over views and functions. > For functions its possible to run them with separate privileges > than the calling user. But is this also possible with views ? > I've noticed that for views also GRANT is necessary (AFAIK a > view is nothing else than a table with appropriate RULEs). > Does it work to grant some user access to his own view, but > not to the tables where the view works on ? > > > thx