Add PQresultMemorySize function to report allocated size of a PGresult.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2970afa6cf1057107c998bf3cdd1fbf6dc78cf6c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-09-11T22:45:12Z
Releases: 12.0
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

Files

Documentation touched

Discussion