Re: libpq stricter integer parsing - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: libpq stricter integer parsing
Date
Msg-id 1241c86a-e243-8d2e-88eb-d056adfc2cad@2ndquadrant.com
Whole thread Raw
In response to libpq stricter integer parsing  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: libpq stricter integer parsing  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On 17/08/2018 12:13, Fabien COELHO wrote:
>    sh> psql "connect_timeout=2,port=5433"
> 
> The timeout is set to 2, and the port directive is silently ignored.
> However, URL parsing is stricter, eg on "port".
> 
> The attached patch checks integer syntax errors and overflows, and report 
> errors.

This looks useful and the patch looks reasonable, but it doesn't apply
anymore.  Can you send in an update?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: libpq debug log
Next
From: Peter Eisentraut
Date:
Subject: Re: Removing useless \. at the end of copy in pgbench