Re: [GENERAL] How to rename a database? - Mailing list pgsql-general

From James Olin Oden
Subject Re: [GENERAL] How to rename a database?
Date
Msg-id 81Jul8.113559edt.35713@gateway.lee.k12.nc.us
Whole thread Raw
In response to Re: [GENERAL] How to rename a database?  (Aleksey Dashevsky <postgres@luckynet.co.il>)
List 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
> >
> >




pgsql-general by date:

Previous
From: Stuart Rison
Date:
Subject: Re: [GENERAL] more nodeError problems and general view failures!
Next
From: Kurt Seel
Date:
Subject: upgrade question