Re: LibPQ: PQresultMemorySize as proxy to transfered bytes - Mailing list pgsql-general

From Tom Lane
Subject Re: LibPQ: PQresultMemorySize as proxy to transfered bytes
Date
Msg-id 1141124.1687951329@sss.pgh.pa.us
Whole thread Raw
In response to Re: LibPQ: PQresultMemorySize as proxy to transfered bytes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: LibPQ: PQresultMemorySize as proxy to transfered bytes
List pgsql-general
I wrote:
> That number is the total space actually requested from malloc() for
> the PGresult object.  But we request space in blocks (typically 2KB
> each), so there's some overhead due to fields not exactly filling
> a block, unused space in the last block, etc.  If you're testing
> with very small result sets (say a couple hundred KB)

Sigh, obviously I meant a couple hundred *bytes* there.  -ENOCAFFEINE

            regards, tom lane



pgsql-general by date:

Previous
From: Rita
Date:
Subject: pgbouncer
Next
From: Sebastiaan Mannem
Date:
Subject: Re: pgbouncer