Re: su not working with psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: su not working with psql
Дата
Msg-id 27185.1250622016@sss.pgh.pa.us
обсуждение исходный текст
Ответ на su not working with psql  (The PandaWare Company <lists@pandaware.com>)
Ответы Re: su not working with psql  (The PandaWare Company <lists@pandaware.com>)
Список pgsql-novice
The PandaWare Company <lists@pandaware.com> writes:
> I'm running version 8.2 in Mac OS X 10.5.8. I installed it in a new
> "postgres" user account. I can access it via PGAdmin and via a test
> application I'm writing, both from my normal user account, "david". I
> can also access it in the Terminal using psql when logged into the
> postgres user account. But when I'm logged into my "david" account and
> try to access the database via sql I get the following:

> imac:~ david$ su - postgres
> Password:
> imac:~ postgres$ psql fcddb
> psql: FATAL:  role "david" does not exist
> imac:~ postgres$ whoami
> postgres

Huh.  Do you have Kerberos credentials by any chance?  I'm not sure
if "su" would affect that.

            regards, tom lane

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

Предыдущее
От: The PandaWare Company
Дата:
Сообщение: su not working with psql
Следующее
От: The PandaWare Company
Дата:
Сообщение: Re: su not working with psql