From: mkumbale <mkumbale@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Creating a new database with a TEMPLATE did not work
Date: Mon, 25 Feb 2013 14:49:28 -0800 (PST)
Message-ID: <1361832568260-5746627.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Hi, I am new to PostgreSQL. I have an empty PostgreSQL DB containing tables
but no data. I issued the following command in PGADMIN SQL editor:
CREATE DATABASE "NewDefault"
WITH OWNER = postgres
ENCODING = 'UTF8'
TEMPLATE = Default
TABLESPACE = pg_default
LC_COLLATE = 'English_United States.1252'
LC_CTYPE = 'English_United States.1252'
CONNECTION LIMIT = -1;
Although it created the NewDefault DB, it does not contain any of the tables
in Default. Default was disconnected when I executed this command.
What am I doing something wrong?
Thanks,
Murali
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Creating-a-new-database-with-a-TEMPLATE-did-not-work-tp57466...
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mkumbale@gmail.com
Subject: Re: Creating a new database with a TEMPLATE did not work
In-Reply-To: <1361832568260-5746627.post@n5.nabble.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