Re: [GENERAL] initdb in 6.5 not creating 'postgres' db

Поиск
Список
Период
Сортировка
От John M. Flinchbaugh
Тема Re: [GENERAL] initdb in 6.5 not creating 'postgres' db
Дата
Msg-id Pine.LNX.4.10.9906161749430.10193-100000@butterfly.hjsoft.com
обсуждение исходный текст
Ответ на Re: [GENERAL] initdb in 6.5 not creating 'postgres' db  ("Robert Chalmers" <robert@chalmers.com.au>)
Список pgsql-general
On Thu, 17 Jun 1999, Robert Chalmers wrote:
> Thats what I thought but when I tried to run the backend to test it with
> postmaster -i
> It complained that the database 'postgres' didnt exist...  I know., use
> postmaster -i template1 I suppose?

actually, start postmaster as usual.

by default, initdb only creates template1, and psql defaults to trying to
open a database with the user's name, so user john's default database name
is `john'.  psql run as user postgres tries to open the `postgres'
database.

`psql template1' to open a database other than the default.  the
postmaster still manages all the different databases, so you don't need to
tell it on the commandline.

if you want to create new databases, then just run `createdb <name>', so
if you wanted postgres to have it's `postgres' database you must run
`createdb postgres'.

____________________}John Flinchbaugh{______________________
| -> glynis@hjsoft.com <-             john@cs.millersv.edu |
|    glynis@netrax.net      http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~


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

Предыдущее
От: "Robert Chalmers"
Дата:
Сообщение: Re: [GENERAL] initdb in 6.5 not creating 'postgres' db
Следующее
От: "Tim Perdue"
Дата:
Сообщение: Rebuilding Primary Key???