pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: db rename
Date: Mon, 25 Oct 2004 18:42:21 +0530
Message-ID: <417CFBB5.9090907@trade-india.com> (raw)
In-Reply-To: <417CF897.1020701@virginia.edu>
References: <417CF897.1020701@virginia.edu>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt><br>
Dear Jodi,<br>
<br>
<br>
psql&gt;\h CREATE DATABASE<br>
Command:&nbsp;&nbsp;&nbsp;&nbsp; CREATE DATABASE<br>
Description: create a new database<br>
Syntax:<br>
CREATE DATABASE name<br>
&nbsp;&nbsp;&nbsp; [ [ WITH ] [ OWNER [=] dbowner ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ LOCATION [=] 'dbpath' ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ TEMPLATE [=] template ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ ENCODING [=] encoding ] ]<br>
<br>
tradein_clients=#<br>
<br>
</tt><br>
You might consider using the TEMPLATE=template option<br>
by default its template1 , if you put the existing database name<br>
a replica of specified database is made<br>
<br>
Hope it helps.<br>
<br>
Regds<br>
Mallah.<br>
<br>
Jodi Kanter wrote:
<blockquote cite="mid417CF897.1020701@virginia.edu" type="cite">
  <meta http-equiv="Content-Type" content="text/html;">
  <title></title>
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.<br>
Is there a rename option out there for our version?<br>
thanks<br>
Jodi <br>
  <div class="moz-signature">-- <br>
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 10 (filtered)">
  <title>_______________________________</title>
  <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><i><span
 style="font-size: 9pt; font-family: Arial;">_______________________________<br>
  </span></i><i><span style="font-size: 10pt;">Jodi L Kanter<br>
BioInformatics Database Administrator<br>
University of Virginia<br>
(434) 924-2846<br>
  <a href="mailto:jkanter@virginia.edu100">jkanter@virginia.edu</a></span></i></p>
  <p class="MsoNormal">&nbsp;</p>
  </div>
  </div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

regds
Mallah.

Rajesh Kumar Mallah
+---------------------------------------------------+
| Tradeindia.com  (3,11,246) Registered Users 	    | 
| Indias' Leading B2B eMarketPlace                  |
| <a class="moz-txt-link-freetext" href="http://www.tradeindia.com/">http://www.tradeindia.com/</a;			    |
+---------------------------------------------------+
</pre>
</body>
</html>



view thread (4+ messages)  latest in thread

Message-ID: <417CFBB5.9090907@trade-india.com>
Permalink:  ../417CFBB5.9090907@trade-india.com/
Also on:    postgresql.org/message-id/417CFBB5.9090907@trade-india.com

 · 

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: mallah@trade-india.com, jkanter@virginia.edu
  Subject: Re: db rename
  In-Reply-To: <417CFBB5.9090907@trade-india.com>
  References: <417CF897.1020701@virginia.edu> <417CFBB5.9090907@trade-india.com>

* 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