Re: PQresultMemorySize of ResultSet larger than expected

2022-03-10 Thread Tom Lane
Dominique Devienne writes: > I've instrumented by libpq code, to show the byte size of the result-set. > And I'm suprised that it's never smaller than 2,264 bytes, then the next > size I see is 3,288, etc... Even when receiving no rows at all, in fact. See PGRESULT_DATA_BLOCKSIZE and associated c

PQresultMemorySize of ResultSet larger than expected

2022-03-10 Thread Dominique Devienne
Hi, I've instrumented by libpq code, to show the byte size of the result-set. And I'm suprised that it's never smaller than 2,264 bytes, then the next size I see is 3,288, etc... Even when receiving no rows at all, in fact. I've trimmed-out the SQL, but these are all SELECT statements. The output