From: David Sauer <davids@orfinet.cz>
To: pgsql-sql@postgresql.org
Subject: how to delete access rights from non-existent user ?
Date: 02 Jun 1999 21:10:04 +0200
Message-ID: <m2r9nu771v.fsf@orfinet.cz> (raw)
Hello,
Now, the problem: (current CVS snapshot)
Suppose, we have user "test" (uid=1000), which has some rights on some table.
Ex.:
Database = david
+----------+-----------------------------+
| Relation | Grant/Revoke Permissions |
+----------+-----------------------------+
| t | {"=","postgres=a","test=a"} |
+----------+-----------------------------+
Now, I delete user "test" from database:
david=> drop user test;
DROP USER
david=> \z
Database = david
+----------+-----------------------------+
| Relation | Grant/Revoke Permissions |
+----------+-----------------------------+
| t | {"=","postgres=a","1000=a"} |
+----------+-----------------------------+
david=> revoke all on t from 1000;
ERROR: parser: parse error at or near "1000"
david=> revoke all on t from '1000';
ERROR: parser: parse error at or near "'"
david=> revoke all on t from "1000";
ERROR: aclparse: non-existent user "1000"
Is there way, how to revoke rights from user with uid = 1000 ?
I can create new user with uid = 1000, then revoke rights and drop user,
but this is too complex for me ...
thanks for any help,
--
* David Sauer, student of Czech Technical University
* electronic mail: davids@orfinet.cz (mime compatible)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: davids@orfinet.cz
Subject: Re: how to delete access rights from non-existent user ?
In-Reply-To: <m2r9nu771v.fsf@orfinet.cz>
References: <m2r9nu771v.fsf@orfinet.cz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox