Re: psql trying twice to connect to local DB

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql trying twice to connect to local DB
Дата
Msg-id 3202243.1696720486@sss.pgh.pa.us
обсуждение исходный текст
Ответ на psql trying twice to connect to local DB  (Steve Baldwin <steve.baldwin@gmail.com>)
Список pgsql-general
Steve Baldwin <steve.baldwin@gmail.com> writes:
> If I make a connection to that DB from most clients I see log entries like
> this:
> ...
> If however I use psql I see two connection log entries - sometimes almost a
> second apart. For example:

These log entries show that you're using password-based authentication.
I believe what is happening is that psql tries to connect, discovers
that it needs a password, and then tries again after it's got a
password.  The delay would correspond to the time for you to type
your password (I take it you're a fast typist).

If you don't like the extra log entries, there's a command-line
switch that forces psql to prompt for password before connecting
the first time.  Of course, that might result in prompting for
a password that's not really needed.

            regards, tom lane



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

Предыдущее
От: Steve Baldwin
Дата:
Сообщение: Re: psql trying twice to connect to local DB
Следующее
От: Ron
Дата:
Сообщение: Re: psql trying twice to connect to local DB