Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id EB022643E9D for ; Sun, 1 Nov 2009 15:13:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48604-01-2 for ; Sun, 1 Nov 2009 19:13:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 744416387CF for ; Sun, 1 Nov 2009 15:10:01 -0400 (AST) Received: by tamriel.snowman.net (Postfix, from userid 1000) id A05D3222AD; Sun, 1 Nov 2009 14:09:59 -0500 (EST) Date: Sun, 1 Nov 2009 14:09:59 -0500 From: Stephen Frost To: Andrew Hall Cc: PostgreSQL Mailing List Subject: Re: PostgreSQL Security/Roles/Grants Message-ID: <20091101190959.GD17756@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5asni2pzAWIbIUvo" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.26-1-amd64 (x86_64) X-Uptime: 14:08:16 up 66 days, 6:33, 14 users, load average: 0.10, 0.18, 0.12 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/2 X-Sequence-Number: 33353 --5asni2pzAWIbIUvo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andrew, * Andrew Hall (andrewah@hotmail.com) wrote: > 2. Non-default role -> a role which has to be explicitly activated during= the lifecycle of an application in order to gain access to database resour= ces. There are no limits on the number of non-default roles. This type of r= ole helps us to only provide a user with the minimal set of privileges that= they require at any given time, and minimise their access to database reso= urces. >=20 > I have looked through the PostgreSQL documentation, and cannot find anyth= ing analogous to the 'non-default role' which I have outlined above - altho= ugh obviously it does support roles. >=20 > I just want to confirm that all roles in postgreSQL are activated at logi= n time? No. You need to read the documentation on the 'noinherit' attribute of roles. See: http://www.postgresql.org/docs/8.4/static/role-membership.html > Secondly, is there a limit on the number of roles which can be assigned t= o a user (or more accurately a 'login role') in postgreSQL? No. Thanks, Stephen --5asni2pzAWIbIUvo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkrt3QcACgkQrzgMPqB3kijf9QCeLYBLMR5U2gRIsus8SmuDi2q9 NdEAn3ZS5PZ07J1uorZDR+Ss8m8ARu4c =wm4i -----END PGP SIGNATURE----- --5asni2pzAWIbIUvo--