Re: DNS SRV support for LDAP authentication

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: DNS SRV support for LDAP authentication
Дата
Msg-id CAEepm=1a4MejOOA65f0XdBR+5GBqpRpLvgSX9wkMbBCXJ3Sw4Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: DNS SRV support for LDAP authentication  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: DNS SRV support for LDAP authentication  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
On Sat, Feb 2, 2019 at 12:48 AM Daniel Gustafsson <daniel@yesql.se> wrote:
> +               new_uris = psprintf("%s%s%s://%s:%d",
>
> While this construction isn't introduced in this patch, would it not make sense
> to convert uris to StringInfo instead to improve readability?

Yeah.  This coding is ugly and StringInfo would be much nicer.
Thinking about that made me realise that the proposed SRV case should
also handle multiple SRV records by building a multi-URL string too
(instead of just taking the first one).  I will make it so.

-- 
Thomas Munro
http://www.enterprisedb.com


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

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: [Patch][WiP] Tweaked LRU for shared buffers
Следующее
От: Ramanarayana
Дата:
Сообщение: Re: libpq host/hostaddr/conninfo inconsistencies