Thread: using libpq create database

using libpq create database

From
"墨香"
Date:
When i use libpq create database with a template,  the template database is opened. But when i do it once again,it   tells me there is an error - the template database is opened. I wish the tenplate database can shut down automatically .
Thank you!
                                                                                                                                  From a chinese user

Re: using libpq create database

From
Guillaume Lelarge
Date:
On Thu, 2012-09-13 at 20:08 +0800, 墨香 wrote:
> When i use libpq create database with a template,  the template database is opened. But when i do it once again,it
tellsme there is an error - the template database is opened. I wish the tenplate database can shut down automatically . 

You should connect to another database, not the template one.

BTW, this is a pgadmin mailing list, and I don't see the connection with
your post. You should better send this to pgsql-general.


--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com