]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add PQresultMemorySize function to report allocated size of a PGresult.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Sep 2018 22:45:02 +0000 (18:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Sep 2018 22:45:12 +0000 (18:45 -0400)
commit2970afa6cf1057107c998bf3cdd1fbf6dc78cf6c
tree278f0ae05b7fb72fdde9422f16a231373014da99
parente7a2217978d9cbb2149bfcb4ef1e45716cfcbefb
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
doc/src/sgml/libpq.sgml
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h