Re: BUG #5249: PGUSER has to be set in the console for PSQL to authenticate

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #5249: PGUSER has to be set in the console for PSQL to authenticate
Дата
Msg-id 20091219002722.GX4055@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #5249: PGUSER has to be set in the console for PSQL to authenticate  ("Ashis Anand" <Ashish.The.Dev@Gmail.com>)
Ответы Re: BUG #5249: PGUSER has to be set in the console for PSQL to authenticate  (Ashish Anand <Ashish.The.Dev@gmail.com>)
Список pgsql-bugs
Ashis Anand escribió:

> Problem Statement: PGUSER has to be set for PSQL to authenticate. If left
> unset the connection to database fails with the error mentioned below.
>
> STEPS:
> 1. Install PostgreSQL.
> 2. Start psql from start menu
> 3. create a role for the user 'foo' through the following statement
>         CREATE ROLE foo LOGIN CREATEDB CREATEROLE PASSWORD 'bar'
> 4. Create a database mydb
>          CREATE DATABASE mydb WITH OWNER = foo
> 5. Open your normal console where pguser is not set
> 6. Run: "psql mydb"
> 7. Enter the password as 'bar'
>
> Actual output:
> psql: FATAL:  password authentication failed for user "foo"

Hmm.  Do you have a pgpass.conf file with a conflicting password for
user foo?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Nagy Daniel
Дата:
Сообщение: Re: BUG #5238: frequent signal 11 segfaults
Следующее
От: Ashish Anand
Дата:
Сообщение: Re: BUG #5249: PGUSER has to be set in the console for PSQL to authenticate