Re: BUG #1161: User permissions are kept, even if user is

From: dd <rigalkin(at)luch(dot)podolsk(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1161: User permissions are kept, even if user is
Date: 2004-07-02 08:40:15
Message-ID: 40E51F6F.2010701@luch.podolsk.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

little example of generating usesysid

create user test sysid 2147483647;
CREATE USER
create user test1;
CREATE USER
select * from pg_shadow;
usename | usesysid | usecreatedb | usesuper | usecatupd | passwd |
valuntil | useconfig
----------+-------------+-------------+----------+-----------+--------+----------+-----------
postgres | 1 | t | t | t |
| |
test | 2147483647 | f | f | f |
| |
test1 | -2147483648 | f | f | f |
| |
(3 rows)

create user test2;
psql:./tt:5: ERROR: duplicate key violates unique constraint
"pg_shadow_usesysid_index"

And I have still a question:
How to remove privileges of the nonexistent (removed) user?
And the offer:
Can realize removal of privileges of nonexistent users during time vacuum?

PS: Sorry for my ugly english

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fabien COELHO 2004-07-02 09:23:16 Re: BUG #1161: User permissions are kept, even if user is
Previous Message PostgreSQL Bugs List 2004-07-02 07:50:07 BUG #1186: Broken Index?