From: | Roy's Email <rmw256(at)hotmail(dot)com> |
---|---|
To: | <jayadevan(dot)maymala(at)ibsplc(dot)com> |
Cc: | <pgsql-novice(at)postgresql(dot)org>, <pgsql-novice-owner(at)postgresql(dot)org> |
Subject: | Re: Creating DB programmatically? |
Date: | 2011-07-12 04:00:17 |
Message-ID: | BAY161-w17306132AC7B0667B5E01E96440@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
This is on Windows, I'm afraid.
Regards,
- Roy
=*=*=
Always do right.
This will gratify some people and astonish the rest. - Mark Twain
The truth is rarely pure, and never simple. - Oscar Wilde
To: rmw256(at)hotmail(dot)com
CC: pgsql-novice(at)postgresql(dot)org; pgsql-novice-owner(at)postgresql(dot)org
Subject: Re: [NOVICE] Creating DB programmatically?
From: Jayadevan(dot)Maymala(at)ibsplc(dot)com
Date: Tue, 12 Jul 2011 08:46:01 +0530
Hello,
>
> I would like to create my DB programmatically. I.e. If the DB does
> not already exist, I would like to be able to create (and populate)
> it from within my application. Is there some way to do this?
> Everything I see seems to require connecting to an existing DB
> before you can do anything.
If it is unix/linux, couldn't you do
[postgres(at)tcctest ~]$ psql -l | grep mydatabase
and then create one if it did not fetch any data?
If it exists, you will get something like
mydatabase | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
Regards,
Jayadevan
DISCLAIMER:
"The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2011-07-12 04:34:35 | Re: Creating DB programmatically? |
Previous Message | Jayadevan M | 2011-07-12 03:16:01 | Re: Creating DB programmatically? |