From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Joseph Brenner <doom(at)kzsu(dot)stanford(dot)edu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to do a "CREATE DATABASE" and then connect to it? |
Date: | 2006-06-02 20:31:11 |
Message-ID: | 4480A00F.1060201@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Joseph Brenner wrote:
> After you do a "CREATE DATABASE", how do you programatically
> connect to what you just created?
>
> In the psql monitor, you'd use the "\c" command.
>
> If the DATABASE already exists when you connect to postgresql,
> you use the name when you connect (e.g. "dbname=...").
>
> I'm getting the impression I need to do this in multiple steps,
> which is workable, but seems a little silly.
>
Have you tried reading the documentation?
Sincerely,
Joshua D. Drake
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Leif B. Kristensen | 2006-06-02 20:45:14 | Me And My Database |
Previous Message | Joseph Brenner | 2006-06-02 19:46:24 | How to do a "CREATE DATABASE" and then connect to it? |