pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard George <rcgeorge23@hotmail.com>
To: Devrim GUNDUZ <devrim@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Changing a database owner on postgres 7.3
Date: Mon, 17 Jul 2006 13:43:42 +0000
Message-ID: <BAY123-W10E19DBD033E3F144A45D3C2620@phx.gbl> (raw)

thanks for this- worked a treat!

> Subject: Re: [ADMIN] Changing a database owner on postgres 7.3> From: devrim@commandprompt.com> To: rcgeorge23@hotmail.com> CC: pgsql-admin@postgresql.org> Date: Mon, 17 Jul 2006 16:26:00 +0300> > Hi,> > On Mon, 2006-07-17 at 12:33 +0000, Richard George wrote:> > I've run into trouble attempting to change the owner of a particular> > database. The offending line is -> >  > > ALTER DATABASE test OWNER TO epg;> > There is no way to change ownership of a database with ALTER DATABASE in> 7.3.X . > > > Can someone suggest an alternative way of changing the owner of a> > database for 7.3? > > AFAIR there is no quick-and-easy way to do that for 7.3. I'd create a> new database with a new username, and I'd use the old database as the> template:> > CREATE DATABASE newdb WITH OWNER newuser TEMPLATE olddb;> > could work for you.> > Regards,> -- > The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564> PostgreSQL Replication, Consulting, Custom Development, 24x7 support> Managed Services, Shared and Dedicated Hosting> Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/; > > > ---------------------------(end of broadcast)---------------------------> TIP 9: In versions below 8.0, the planner will ignore your desire to>        choose an index scan if your joining column's datatypes do not>        match
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d=

view thread (4+ messages)  latest in thread

Message-ID: <BAY123-W10E19DBD033E3F144A45D3C2620@phx.gbl>
Permalink:  ../BAY123-W10E19DBD033E3F144A45D3C2620@phx.gbl/
Also on:    postgresql.org/message-id/BAY123-W10E19DBD033E3F144A45D3C2620@phx.gbl

 · 

reply

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-admin@postgresql.org
  Cc: rcgeorge23@hotmail.com, devrim@commandprompt.com
  Subject: Re: Changing a database owner on postgres 7.3
  In-Reply-To: <BAY123-W10E19DBD033E3F144A45D3C2620@phx.gbl>
  References: <BAY123-W10E19DBD033E3F144A45D3C2620@phx.gbl>

* 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