Re: [HACKERS] Improving overflow checks when adding tuple to PGresult Re: [GENERAL] Retrieving query results

2017-08-29 Thread Michael Paquier
On Wed, Aug 30, 2017 at 4:24 AM, Tom Lane wrote: > Michael Paquier writes: >> On Mon, Aug 28, 2017 at 3:05 PM, Michael Paquier >> wrote: >>> Attached are two patches: >>> 1) 0001 refactors the code around pqAddTuple to be able to handle >>> error messages and assign them in PQsetvalue particular

Re: [HACKERS] Improving overflow checks when adding tuple to PGresult Re: [GENERAL] Retrieving query results

2017-08-29 Thread Tom Lane
Michael Paquier writes: > On Mon, Aug 28, 2017 at 3:05 PM, Michael Paquier > wrote: >> Attached are two patches: >> 1) 0001 refactors the code around pqAddTuple to be able to handle >> error messages and assign them in PQsetvalue particularly. >> 2) 0002 adds sanity checks in pqAddTuple for overf

[HACKERS] Improving overflow checks when adding tuple to PGresult Re: [GENERAL] Retrieving query results

2017-08-28 Thread Michael Paquier
On Mon, Aug 28, 2017 at 3:05 PM, Michael Paquier wrote: > Attached are two patches: > 1) 0001 refactors the code around pqAddTuple to be able to handle > error messages and assign them in PQsetvalue particularly. > 2) 0002 adds sanity checks in pqAddTuple for overflows, maximizing the > size of wh