Re: [SQL] change username

From: "David Hartwig" <daybee(at)bellatlantic(dot)net>
To: "Bill Brandt" <brandtwr-pgsql(at)draaw(dot)net>, <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] change username
Date: 1998-12-29 00:03:22
Message-ID: 002701be32be$a782e120$d37dc497@daveh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Pg_user is a view. Non-updatable I might add. Pg_shadow is the table
you want.

----- Original Message -----
From: Bill Brandt <brandtwr-pgsql(at)draaw(dot)net>
To: <pgsql-sql(at)postgreSQL(dot)org>
Sent: Monday, December 28, 1998 1:15 PM
Subject: [SQL] change username

>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?
>
>--
>Bill Brandt
>brandtwr(at)draaw(dot)net http://www.draaw.net/
>

Browse pgsql-sql by date

  From Date Subject
Next Message Trever Adams 1998-12-29 00:07:44 Binary anding
Previous Message Jan Wieck 1998-12-28 20:19:59 Re: [SQL] change username