Re: Notes on implementing URI syntax for libpq

Поиск
Список
Период
Сортировка
От Alexander Shulgin
Тема Re: Notes on implementing URI syntax for libpq
Дата
Msg-id 1322596520-sup-884@moon
обсуждение исходный текст
Ответ на Re: Notes on implementing URI syntax for libpq  (Alexander Shulgin <ash@commandprompt.com>)
Ответы Re: Notes on implementing URI syntax for libpq  (Daniel Farina <daniel@heroku.com>)
Список pgsql-hackers
Excerpts from Alexander Shulgin's message of Sat Nov 26 22:07:21 +0200 2011:
>
> So how about this:
>
>   postgresql:ssl://user:pw@host:port/dbname?sslmode=...
>
> The "postgresql:ssl://" designator would assume "sslmode=require", if not overriden in extra parameters and
"postgresql://"would imply "sslmode=prefer".  And to disable SSL you would pick either designator and append
"sslmode=disable".
>
> The JDBC's "ssl=true" will translate to "sslmode=require".

Hey, I'm going to assume "no objections" equals "positive feedback" and continue hacking in this direction.

> If we can decide on this, we should also put reasonable effort into making JDBC support the same syntax.

What would be our plan on this?  Since the syntax proposed here is strictly a superset of the existing JDBC syntax, I
wouldthink this qualifies as an improvement and it would be backwards compatible with any previous version of the JDBC
connector.

--
Alex


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

Предыдущее
От: Alexander Shulgin
Дата:
Сообщение: Re: Notes on implementing URI syntax for libpq
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [patch] Include detailed information about a row failing a CHECK constraint into the error message