Re: How to get connection details from psql -> \e

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: How to get connection details from psql -> \e
Дата
Msg-id 20180813160414.lojhxm7uhqpqeroh@depesz.com
обсуждение исходный текст
Ответ на Re: How to get connection details from psql -> \e  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, Aug 13, 2018 at 10:00:56AM -0400, Tom Lane wrote:
> The only likely reason I can guess at is that you want vim to make its
> own connection to the database for some purpose like autocompletion.

That's precisely what I'm looking for.

> That's a cute idea, but from a security standpoint it sounds like a
> disaster in the making.  There isn't any secure way to pass down e.g.
> a password (neither command line nor environment variables can be
> trusted not to be visible to other users), and even if there was
> I'm not sure people would be really happy with handing out their
> database credentials to any random piece of code psql invokes.

I think that passing all-but-password would be good enough.

At the very least for my usecases, as I tend to use pgpass and other
non-interactive authentications.

Best regards,

depesz



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Fwd: is there any adverse effect on DB if I set autovacuum scalefactor to zero?
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: How to get connection details from psql -> \e