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 E2DB45362A for ; Wed, 27 Apr 2005 12:52:18 -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 96889-10 for ; Wed, 27 Apr 2005 15:52:10 +0000 (GMT) Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id F255E535E8 for ; Wed, 27 Apr 2005 12:52:08 -0300 (ADT) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id j3RFq2Gx023890 for pgsql-admin@postgresql.org; Wed, 27 Apr 2005 17:52:02 +0200 Date: Wed, 27 Apr 2005 17:52:02 +0200 From: Enrico Weigelt To: pgsql-admin Subject: security via views Message-ID: <20050427155202.GA20043@nibiru.borg.metux.de> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-admin Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i 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/377 X-Sequence-Number: 17390 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 -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- ---------------------------------------------------------------------