Re: createlang difficulty.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: createlang difficulty.
Дата
Msg-id 28233.1003794879@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: createlang difficulty.  (speedboy <speedboy@nomicrosoft.org>)
Список pgsql-hackers
speedboy <speedboy@nomicrosoft.org> writes:
> Ok, so it connects four times. From a users perspective that might be
> confusing. Is it possible to only prompt once for the password,

This would require replacing the createlang shell script with a
specialized C program.  (Or, perhaps, adding conditional-execution
capability to psql scripts ... which would be very useful but an
awful lot of work.)

It's unlikely to get to the top of anyone's to-do list any time soon,
because the fact of the matter is that if you have Postgres configured
to demand passwords for administrator connections, you're going to have
lots of problems like this.  createlang is not the only script that
invokes multiple programs --- pg_dumpall is another example that's
going to be even harder to work around.

The better answer is to arrange things so that local connections don't
need passwords.  One fairly portable approach is to run an IDENTD daemon
and use ident auth for TCP connections through 127.0.0.1; then you just
say PGHOST=127.0.0.1 and you're home free.
        regards, tom lane


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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: [GENERAL] To Postgres Devs : Wouldn't changing the select
Следующее
От: "Command Prompt, Inc."
Дата:
Сообщение: PL/pgSQL RENAME bug?