Re: How to do a "CREATE DATABASE" and then connect to it?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: How to do a "CREATE DATABASE" and then connect to it?
Дата
Msg-id 4480A00F.1060201@commandprompt.com
обсуждение исходный текст
Ответ на How to do a "CREATE DATABASE" and then connect to it?  (Joseph Brenner <doom@kzsu.stanford.edu>)
Ответы Re: How to do a "CREATE DATABASE" and then connect to it?  (Joseph Brenner <doom@kzsu.stanford.edu>)
Список 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/



В списке pgsql-general по дате отправления:

Предыдущее
От: Joseph Brenner
Дата:
Сообщение: Re: Querying for strings that match after prefix
Следующее
От: "Mike G"
Дата:
Сообщение: New version of DBD::Pg for 8.1.4?