Re: LibPQ: PQresultMemorySize as proxy to transfered bytes

Поиск
Список
Период
Сортировка
От Dominique Devienne
Тема Re: LibPQ: PQresultMemorySize as proxy to transfered bytes
Дата
Msg-id CAFCRh-9Pm-7UigRSCfmC0GnFXigq8ZjKL3_m63FkUWccUtdChw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: LibPQ: PQresultMemorySize as proxy to transfered bytes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Jun 28, 2023 at 1:22 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
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

Thanks Tom. --DD

PS: I was hoping for answers to my other questions too,
  but I guess that means there are no good answers to those. 

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Wrong passwords allowed
Следующее
От: Dominique Devienne
Дата:
Сообщение: Topological sort of tables, based on FK relationships