Re: libpq connection timeout mismanagement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq connection timeout mismanagement
Дата
Msg-id 5106.1534267032@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq connection timeout mismanagement  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> Right.  As before, I'm not excited about rejecting trailing junk,
>> considering we never did before.

> My 0.02¤: accepting trailing junk is just a recipee for hiding bugs:
>   sh> psql "connect_timeout=2,port=5433"
>   psql> \conninfo
>   ... port=5432 # port directive was silently ignored
> So erroring out would be a good thing, and it could be done on a new 
> release.

Perhaps.  That should certainly be a separate patch, though, and
it should cover everything not just connection_timeout (I see at
least five parameters that are parsed with atoi() and nothing else).
I'm still not excited, but feel free to send a patch.

            regards, tom lane


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