From: Hans-Jürgen Schönig <hs@cybertec.at>
To: pgsql-sql@postgresql.org
Subject: Dropping users with no name
Date: Wed, 11 Apr 2001 18:29:04 +0200
Message-ID: <3AD48650.E18D0615@cybertec.at> (raw)
I have accidentally created a user with no name. How can I delete this
user?
I have compiled my attempts below:
Hans
persons=# SELECT * FROM pg_user;
usename | usesysid | usecreatedb | usetrace | usesuper | usecatupd |
passwd |
valuntil
----------+----------+-------------+----------+----------+-----------+----------+----------
postgres | 26 | t | t | t | t |
******** |
| 27 | f | f | f | f |
******** |
(2 rows)
persons=# DELETE FROM pg_user where usesysid>26;
DELETE 0
persons=# SELECT '$'|| usename||'$' FROM pg_user;
?column?
------------
$postgres$
$$
(2 rows)
persons=# DROP USER '';
ERROR: parser: parse error at or near "'"
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: hs@cybertec.at
Subject: Re: Dropping users with no name
In-Reply-To: <3AD48650.E18D0615@cybertec.at>
References: <3AD48650.E18D0615@cybertec.at>
* 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