Move codes for pg_backend_memory_contexts from mmgr/mcxt.c to adt/mcxtfuncs.c.
authorFujii Masao <fujii@postgresql.org>
Wed, 26 Aug 2020 01:51:31 +0000 (10:51 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 26 Aug 2020 01:51:31 +0000 (10:51 +0900)
commit50db5964ee333bc148e0c8844ffafaf585c719c6
tree264bde84462ab8a3a3fd5e0917b0f51f082d5289
parent29dd6d8bc631eebc3e50493c115f7a215f03bd0a
Move codes for pg_backend_memory_contexts from mmgr/mcxt.c to adt/mcxtfuncs.c.

Previously the codes for pg_backend_memory_contexts were in
src/backend/utils/mmgr/mcxt.c. This commit moves them to
src/backend/utils/adt/mcxtfuncs.c so that mcxt.c basically includes
only the low-level interface for memory contexts.

Author: Atsushi Torikoshi
Reviewed-by: Michael Paquier, Fujii Masao
Discussion: https://postgr.es/m/20200819135545.GC19121@paquier.xyz
src/backend/utils/adt/Makefile
src/backend/utils/adt/mcxtfuncs.c [new file with mode: 0644]
src/backend/utils/mmgr/mcxt.c