Re: Creating DB

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating DB
Дата
Msg-id 9406.996675222@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Creating DB  ("Lorenzo De Vito" <lorenzodevito@email.it>)
Список pgsql-novice
"Lorenzo De Vito" <lorenzodevito@email.it> writes:
> Is the only way to create DB in a C code to connect to Template1 and then e=
> xec the SQL string "CREATE DATABASE databasename" ?
> Can I create DB without connecting to template1 ?

You have to connect to *some* DB.  Doesn't have to be template1, but
that's the most usual choice since it's certain to exist.

            regards, tom lane

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

Предыдущее
От: Helge Bahmann
Дата:
Сообщение: Re: How to restart postmaster after a violent shutdown ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to restart postmaster after a violent shutdown ?