Renaming a PostreSQL database

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Renaming a PostreSQL database

Postby DrewOnTilt » Sun Mar 21, 2010 7:15 pm

What is the SQL command to rename a PostrgreSQL database in pgAdmin?
DrewOnTilt
 
Posts: 134
Joined: Fri Jan 25, 2008 6:34 pm

Re: Renaming a PostreSQL database

Postby kraada » Mon Mar 22, 2010 10:13 am

ALTER DATABASE name RENAME TO newname

See here for more documentation on the ALTER DATABASE command.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests