Skip site navigation (1) Skip section navigation (2)

bug

From: Victor Vislobokov <victor_v(at)permonline(dot)ru>
To: bugs(at)postgresql(dot)org
Subject: bug
Date: 1999-08-12 17:30:11
Message-ID: 37B304A3.1227F965@permonline.ru (view raw or flat)
Thread:
Lists: pgsql-bugs
Hello!

I'm sorry for my bad English.

I found a bug with user rights.

Situation:

CREATE TABLE kaka;
CREATE USER baka;
GRANT SELECT ON kaka TO baka;
SELECT relname, relacl FROM pg_class WHERE relname='kaka';

relname|relacl
-------+---------------
kaka   |{"=","baka=r"}

DROP USER baka;
SELECT relname, relacl FROM pg_class WHERE relname='kaka';

relname|relacl
-------+---------------
kaka   |{"=","33=r"}
              ^^^- Wow! Why? 

CREATE USER abc;
SELECT relname, relacl FROM pg_class WHERE relname='kaka';

relname|relacl
-------+---------------
kaka   |{"=","abc=r"}

Wait, wait... I don't make access to user 'abc'.
User 'abc' got access to table kaka AUTOMATICALY!


With best wishes,
Victor Vislobokov
Perm, Russia


pgsql-bugs by date

Next:From: Mark DalphinDate: 1999-08-13 22:57:23
Subject: UNIQUE constraint no longer works under 6.5.1
Previous:From: Giampiero RaschettiDate: 1999-08-12 15:44:54
Subject: GROUP BY bug report

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group