Re: LibPQ: PQresultMemorySize as proxy to transfered bytes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: LibPQ: PQresultMemorySize as proxy to transfered bytes
Date: 2023-06-28 11:22:09
Message-ID: 1141124.1687951329@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sebastiaan Mannem 2023-06-28 12:23:00 Re: pgbouncer
Previous Message Rita 2023-06-28 11:19:23 pgbouncer