Re: db rename
| От | Rajesh Kumar Mallah |
|---|---|
| Тема | Re: db rename |
| Дата | |
| Msg-id | 417CFBB5.9090907@trade-india.com обсуждение исходный текст |
| Ответ на | db rename (Jodi Kanter <jkanter@virginia.edu>) |
| Список | pgsql-admin |
Dear Jodi,
psql>\h CREATE DATABASE
Command: CREATE DATABASE
Description: create a new database
Syntax:
CREATE DATABASE name
[ [ WITH ] [ OWNER [=] dbowner ]
[ LOCATION [=] 'dbpath' ]
[ TEMPLATE [=] template ]
[ ENCODING [=] encoding ] ]
tradein_clients=#
You might consider using the TEMPLATE=template option
by default its template1 , if you put the existing database name
a replica of specified database is made
Hope it helps.
Regds
Mallah.
Jodi Kanter wrote: I thought there was an option to rename a database? I cannot seem to find the syntax in any of my books or on the web site. Am I incorrect? We are running 7.3.4. We have to bring our sytem down to upgrade the release this afternoon. There are a number of db changes taking place so I was thinking instead of taking the system down for an extended amount of time I could build another database with all our new items and then just rename it when we are ready.
Is there a rename option out there for our version?
thanks
Jodi
--
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu
-- regds Mallah. Rajesh Kumar Mallah +---------------------------------------------------+ | Tradeindia.com (3,11,246) Registered Users | | Indias' Leading B2B eMarketPlace | | http://www.tradeindia.com/ | +---------------------------------------------------+
В списке pgsql-admin по дате отправления: