Add PQresultMemorySize function to report allocated size of a PGresult.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +34 −0 |
| src/interfaces/libpq/exports.txt | modified | +1 −0 |
| src/interfaces/libpq/fe-exec.c | modified | +32 −6 |
| src/interfaces/libpq/libpq-fe.h | modified | +1 −0 |
| src/interfaces/libpq/libpq-int.h | modified | +2 −0 |
Documentation touched
Discussion
- Retrieve memory size allocated by libpq 5 messages · 2018-06-23 → 2018-09-12