Re: [GENERAL] How to rename a database?

From: James Olin Oden <joden(at)Lee(dot)k12(dot)nc(dot)us>
To: Aleksey Dashevsky <postgres(at)luckynet(dot)co(dot)il>
Cc: Farzad FARID <farzy(at)publicis(dot)fr>, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] How to rename a database?
Date: 1998-07-09 16:44:33
Message-ID: 81Jul8.113559edt.35713@gateway.lee.k12.nc.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Use following syntax:
> alter table <Old_Table_Name> rename to <New_Table_Name>
>
>

I don't think that will work for the entire database. Remember a table is
part of the database. So I don't think alter will change the actual
database's name...

> >
> > How do I rename an existing database? Is it enough to just rename the
> > directory? If that's the only way to do it do I have to first shut the
> > server down?
> >
> > --
> > Farzad FARID
> > Administrateur Reseau
> > Publicis Technology
> >
> >

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kurt Seel 1998-07-09 16:56:27 upgrade question
Previous Message Stuart Rison 1998-07-09 16:06:14 Re: [GENERAL] more nodeError problems and general view failures!