pgsql: Add PQresultMemorySize function to report allocated size of a PG

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add PQresultMemorySize function to report allocated size of a PG
Date: 2018-09-11 22:45:24
Message-ID: E1fzrPQ-0001vo-V1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add PQresultMemorySize function to report allocated size of a PGresult.

This number can be useful for application memory management, and the
overhead to track it seems pretty trivial.

Lars Kanis, reviewed by Pavel Stehule, some mods by me

Discussion: https://postgr.es/m/fa16a288-9685-14f2-97c8-b8ac84365a4f@greiz-reinsdorf.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2970afa6cf1057107c998bf3cdd1fbf6dc78cf6c

Modified Files
--------------
doc/src/sgml/libpq.sgml | 34 ++++++++++++++++++++++++++++++++++
src/interfaces/libpq/exports.txt | 1 +
src/interfaces/libpq/fe-exec.c | 38 ++++++++++++++++++++++++++++++++------
src/interfaces/libpq/libpq-fe.h | 1 +
src/interfaces/libpq/libpq-int.h | 2 ++
5 files changed, 70 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-09-12 12:40:51 pgsql: ecpg: Change --version output to common style
Previous Message Michael Paquier 2018-09-11 21:48:56 pgsql: Parse more strictly integer parameters from connection strings i