]> granicus.if.org Git - postgresql/commit
Make useful infrastructure from aset.c generally available.
authorAndres Freund <andres@anarazel.de>
Mon, 27 Feb 2017 11:41:44 +0000 (03:41 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 27 Feb 2017 11:41:44 +0000 (03:41 -0800)
commitbfd12cccbd72c1846bfa3e4031155c9bd479d70a
tree39550de06e9645074bd8288d4033b8d450bef922
parent1513dbea7f89053476a5e95e2f2e952135a5b34c
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/b3b2245c-b37a-e1e5-ebc4-857c914bc747@2ndquadrant.com
src/backend/utils/mmgr/Makefile
src/backend/utils/mmgr/aset.c
src/backend/utils/mmgr/memdebug.c [new file with mode: 0644]
src/include/utils/memdebug.h