Re: Running postgres with a different user/group

Поиск
Список
Период
Сортировка
От Gabriele Bartolini
Тема Re: Running postgres with a different user/group
Дата
Msg-id ccd4c543b3e2cea4490a811e2c4caa82@mail.xcon.it
обсуждение исходный текст
Ответ на Re: Running postgres with a different user/group  (Gabriele Bartolini <Gabriele.Bartolini@2ndQuadrant.it>)
Ответы Re: Running postgres with a different user/group  (Gabriele Bulfon <gbulfon@sonicle.com>)
Список pgsql-general
Hi Gabriele,

   I forgot to mention one thing.

> That means that PostgreSQL is successfully running. Try and connect to
the
> database using a different user by passing the '-U' option to psql or by
> setting the PGUSER environment variable.

PostgreSQL creates a role/user inside the cluster with the same name as
the user that ran initdb.

Try and connect to either the postgres or the template1 database, by
executing:

psql template1

or

psql postgres

and then type:

\du

This will give you a list of the roles (users) inside the database.

Please make sure you specify the right port and host (or Unix socket) to
psql.

Ciao,
Gabriele

--
 Gabriele Bartolini - 2ndQuadrant Italia
 PostgreSQL Training, Services and Support
 Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it

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

Предыдущее
От: Gabriele Bartolini
Дата:
Сообщение: Re: Running postgres with a different user/group
Следующее
От: Gabriele Bulfon
Дата:
Сообщение: Re: Running postgres with a different user/group