Re: psql - better support pipe line

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: psql - better support pipe line
Дата
Msg-id CAFj8pRAcj7ofeto1WLFrVgqumZ7XHTc-L0tqRj24vi1528zZ2g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql - better support pipe line  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql - better support pipe line  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
Список pgsql-hackers
Hi

2015-08-25 17:21 GMT+02:00 Tom Lane <tgl@sss.pgh.pa.us>:
Jim Nasby <Jim.Nasby@bluetreble.com> writes:
> What I've had problems with is trying to correlate psql specified
> connection attributes with things like DBI. It would be nice if there
> was a way to get a fully formed connection URI for the current connection.

Yeah, although I'd think the capability to create such a URI is libpq's
province not psql's.  Maybe a PQgetConnectionURI(PGConn) function in
libpq, and some psql backslash command to access that?  Or maybe a nicer
API would be that there's a magic psql variable containing the URI; not
sure.

proof concept of PQGetConnectionUri and \uri command.

missing:

connection options
uri encoding

 

                        regards, tom lane

Вложения

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: exposing pg_controldata and pg_config as functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WIP: Rework access method interface