Re: changing ownership of db

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Nelson <MCN(at)cc(dot)usu(dot)edu>
Cc: PGSQL-NOVICE(at)postgresql(dot)org
Subject: Re: changing ownership of db
Date: 2003-07-04 19:36:49
Message-ID: 4539.1057347409@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Mark Nelson <MCN(at)cc(dot)usu(dot)edu> writes:
> One of our databases was created with a user that we no longer
> want to use. I cannot drop the user because it owns one of the
> dbs and some other objects.
> Is there a way to change ownership, or REVOKE all of the owners
> privileges and give them to another user, so I can drop that
> user?

Not very easily. You could just rename the username to something
you do want to keep using (a quick UPDATE on pg_shadow would work
for that).

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Boget, Chris 2003-07-05 15:25:03 Replace into...
Previous Message Daniel Phlander 2003-07-04 19:28:36 Mailing list