Re: Notes on implementing URI syntax for libpq

Поиск
Список
Период
Сортировка
От Alexander Shulgin
Тема Re: Notes on implementing URI syntax for libpq
Дата
Msg-id 1322119250-sup-6088@moon
обсуждение исходный текст
Ответ на Re: Notes on implementing URI syntax for libpq  (Dmitriy Igrishin <dmitigr@gmail.com>)
Ответы Re: Notes on implementing URI syntax for libpq  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-hackers
Excerpts from Dmitriy Igrishin's message of Thu Nov 24 09:19:02 +0200 2011:
>
> > If host part of the URI points to localhost, the UNIX domain socket would
> > be considered by libpq just as if you would pass "-h localhost -p 5433".
> >
> But what if the user wants to connect exactly via socket or
> TCP/IP ?
> And what if the user needs to specify a socket file name extension?

How do you achieve that with the current psql set of command line options (and, possibly environment variables?)

I would think the same method will work with URI, as with the proposed approach the URI is just decomposed into host,
portand dbname parts and the rest of the code works like if you've had specified "-h example.net -p 5433 -d mydb"
insteadof the URI parameter. 

--
Alex


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

Предыдущее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: Notes on implementing URI syntax for libpq
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Notes on implementing URI syntax for libpq