New group roles always inherit privileges...

From: "Allen, Mike" <Mike(dot)Allen(at)durrusa(dot)com>
To: <pgadmin-support(at)postgresql(dot)org>
Subject: New group roles always inherit privileges...
Date: 2005-11-04 16:59:41
Message-ID: A4BA5B349A98B749A175B694244463010898A2@plye001.ad.durrusa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Platform: Windows XP (with SP2)

Language: en-us

Distribution: Windows binary installer

Version: 1.4-rc1

To reproduce:

1. Right-click on Group Roles, select "New Group Role".

2. New Group Role dialog appears.

3. Enter "test" for role name, leave all privilege settings
cleared & click OK. Dialog closes, new group role created.

4. Click on "test" under "Group Roles" (expand latter and refresh
if necessary). Under "Properties" tab in the upper right-hand window
frame, you will see "Inherits?" Yes - even though this setting was left
cleared when creating the group role.

Problem is that, when creating a new group role, the SQL produced is
either:

CREATE ROLE somegrouprole

VALID UNTIL 'infinity';

(if the "Inherits rights from parent roles" Role Privilege is clear) or

CREATE ROLE somegrouprole

INHERIT

VALID UNTIL 'infinity';

(if the "Inherits rights from parent roles" Role Privilege is set).

The latter is fine, but since PostgreSQL supplies INHERIT as a default,
the former should read:

CREATE ROLE somegrouprole

NOINHERIT

VALID UNTIL 'infinity';

----

Mike

Simulation Engineers do it with models virtually every day!

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2005-11-04 17:15:34 Re: New group roles always inherit privileges...
Previous Message Joost Kraaijeveld 2005-11-04 16:12:05 Re: Debian AMD64 compile problem