Re: How to change database owner in 7.4 - Mailing list pgsql-general

From Scott Marlowe
Subject Re: How to change database owner in 7.4
Date
Msg-id 1133381975.16010.6.camel@state.g2switchworks.com
Whole thread Raw
In response to How to change database owner in 7.4  (frank church <pgsql@adontendev.net>)
List pgsql-general
On Wed, 2005-11-30 at 12:08, frank church wrote:
> Hi guys,
>
> What is the command change database owner in PostgreSQL 7.4?
>
> I think the 'ALTER DATABASE foo OWNER TO blob;' is not implemented in 7.4
>


update pg_database set datdba=(select usesysid from pg_user where
usename='newowner');


pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: Why pgAdmin III guru suggests VACUUM in 8.1
Next
From: Scott Marlowe
Date:
Subject: Re: Finding uniques across a big join