Make useful infrastructure from aset.c generally available.

An upcoming patch introduces a new type of memory context. To avoid
duplicating debugging infrastructure within aset.c, move useful pieces
to memdebug.[ch].

While touching aset.c, fix printf format code in AllocFree* debug
macros.

Author: Tomas Vondra
Reviewed-By: Andres Freund
Discussion: 
https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bfd12cccbd72c1846bfa3e4031155c9bd479d70a

Modified Files
--------------
src/backend/utils/mmgr/Makefile   |   2 +-
src/backend/utils/mmgr/aset.c     | 115 +-------------------------------------
src/backend/utils/mmgr/memdebug.c |  93 ++++++++++++++++++++++++++++++
src/include/utils/memdebug.h      |  48 ++++++++++++++++
4 files changed, 144 insertions(+), 114 deletions(-)


-- 
Sent via pgsql-committers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to