From: | jwieck(at)debis(dot)com (Jan Wieck) |
---|---|
To: | brandtwr-pgsql(at)draaw(dot)net (Bill Brandt) |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] change username |
Date: | 1998-12-28 20:19:59 |
Message-ID: | m0zuj8x-000EBPC@orion.SAPserv.Hamburg.dsh.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
>
> I have a user on my system whose username has recently changed. The user
> owns and is a non-owning user of multiple database. I have tried a command
> of the form:
>
> update pg_user set usename='newname' where usesysid=###;
>
> When I try this I get an error. Does anyone know how to change this
> information? If I delete the user and recreate the user with the same uid
> does that retain all the existing database permissions?
pg_user is a system view. Update pg_shadow instead.
But what error do you get? The command should respond with
"UPDATE 0" and do nothing!
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #
From | Date | Subject | |
---|---|---|---|
Next Message | David Hartwig | 1998-12-29 00:03:22 | Re: [SQL] change username |
Previous Message | Bill Brandt | 1998-12-28 18:15:03 | change username |