Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 6BD122E008A for ; Mon, 9 Jun 2008 12:23:48 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06502-06 for ; Mon, 9 Jun 2008 12:23:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vilnius.balt.net (vilnius.balt.net [195.14.170.14]) by developer.postgresql.org (Postfix) with ESMTP id 3E0782E0087 for ; Mon, 9 Jun 2008 12:23:23 -0300 (ADT) Received: from nSoft.lt (unknown [217.117.29.29]) by vilnius.balt.net (Postfix) with ESMTP id E966139DE09 for ; Mon, 9 Jun 2008 18:23:19 +0300 (EEST) Received: from [192.168.16.1] (unknown [192.168.16.1]) by nSoft.lt (Postfix) with ESMTP id BF5EEBEE07 for ; Mon, 9 Jun 2008 18:58:24 +0000 (GMT) Message-ID: <484D4AE7.60702@nsoft.lt> Date: Mon, 09 Jun 2008 18:23:19 +0300 From: Julius Tuskenis User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 CC: pgsql-admin@postgresql.org Subject: Re: roles and inheritance References: <98544210-C479-4A14-9FF4-CD40BC789E6C@indiana.edu> In-Reply-To: <98544210-C479-4A14-9FF4-CD40BC789E6C@indiana.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.966 tagged_above=0 required=5 tests=AWL=-0.615, MISSING_HEADERS=1.581 X-Spam-Level: X-Archive-Number: 200806/55 X-Sequence-Number: 29393 Hi, Carol. ALTER Role John INHERIT; this will make the role John inherit permitions from the permition role group they are in. Carol Walter rašė: > Greetings, > > I'm creating roles for the first time in Postgres. Up until now, I've > only needed to grant privs to individuals. I've been going over the > documentation on this and there is a part that is not very clear to > me. It concerns inheritance. First of all, if I create the role > database_name_select and add John and Mary to it, the role > database_name_select won't inherit John and Mary's privs, will it? I > do want John and Mary to inherit the privs of the database_name_select > role. Do I set database_name_select with the option inherit or no > inherit? The implication is that roles can inherit from other roles; > is that correct? > > Thanks for your help, > > Carol > -- Julius Tuskenis Programavimo skyriaus vadovas UAB nSoft mob. +37068233050