Teach MemoryContext infrastructure not to depend on Node. aset_frontend
authorRobert Haas <[email protected]>
Fri, 24 Jan 2020 22:01:59 +0000 (14:01 -0800)
committerRobert Haas <[email protected]>
Fri, 24 Jan 2020 22:01:59 +0000 (14:01 -0800)
commit73600bfbcef11e79cfff27ce5f4300658f8695ab
treef95dfb6dc2ccf7c726aa7683ce0a4e027a602939
parent0ce38730ac72029f3f2c95ae80b44f5b9060cbcc
Teach MemoryContext infrastructure not to depend on Node.

There's no real reason why a MemoryContext's type needs to be a
Node type. So use a separate enum instead.

This makes memory contexts less dependent on backend-only
infrastructure.
src/backend/utils/mmgr/aset.c
src/backend/utils/mmgr/generation.c
src/backend/utils/mmgr/mcxt.c
src/backend/utils/mmgr/slab.c
src/include/nodes/memnodes.h
src/include/nodes/nodes.h
src/include/utils/memutils.h