Re: BUG #4040: psql should provide option to not prompt for password

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4040: psql should provide option to not prompt for password
Дата
Msg-id 8999.1205763990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4040: psql should provide option to not prompt for password  ("Mika Fischer" <mf+ubuntu@zoopnet.de>)
Ответы Re: BUG #4040: psql should provide option to not prompt for password  (Mika Fischer <mf+ubuntu@zoopnet.de>)
Re: BUG #4040: psql should provide option to not prompt for password  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Mika Fischer <mf+ubuntu@zoopnet.de> writes:
> What the current code does is:
> Run "psql -l" to get the list of local databases, and
> run "psql -qtc 'select usename from pg_user' template1" to get the list
> of users. If this fails the system users are used for completion.

> I'm not at all a PostgreSQL expert so I can't even comment on whether
> this is a smart thing to do or not.

It's not, IMHO.  You don't even know if the local database is where the
user is intending to connect to.  Moreover this presupposes some rather
obsolete ideas about what connection parameters might need to be given
on the command line.

Something that might be more useful is to see if there's a connection
service file
http://developer.postgresql.org/pgdocs/postgres/libpq-pgservice.html
and offer the names of service entries in it.

            regards, tom lane

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

Предыдущее
От: Martin Pitt
Дата:
Сообщение: Re: BUG #4040: psql should provide option to not prompt for password
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4039: server closed the connection when use function "makeline_garray"