From: David Hartwig <daybee@bellatlantic.net>
To: Bill Brandt <brandtwr-pgsql@draaw.net>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] change username
Date: Mon, 28 Dec 1998 19:03:22 -0500
Message-ID: <002701be32be$a782e120$d37dc497@daveh> (raw)
Pg_user is a view. Non-updatable I might add. Pg_shadow is the table
you want.
----- Original Message -----
From: Bill Brandt <brandtwr-pgsql@draaw.net>
To: <pgsql-sql@postgreSQL.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@draaw.net http://www.draaw.net/
>
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: daybee@bellatlantic.net, brandtwr-pgsql@draaw.net
Subject: Re: [SQL] change username
In-Reply-To: <002701be32be$a782e120$d37dc497@daveh>
References: <002701be32be$a782e120$d37dc497@daveh>
* 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