Update portal-related memory context names and API
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 16 Dec 2017 22:26:26 +0000 (17:26 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 9 Jan 2018 18:47:56 +0000 (13:47 -0500)
commit0f7c49e85518dd846ccd0a044d49a922b9132983
tree1bcbff190de4cc6f8c02e3ecbb2e9b753bbb1ef5
parent3cb1b2a8804da8365fe17f687d96b720df4a583d
Update portal-related memory context names and API

Rename PortalMemory to TopPortalContext, to avoid confusion with
PortalContext and align naming with similar top-level memory contexts.

Rename PortalData's "heap" field to portalContext.  The "heap" naming
seems quite antiquated and confusing.  Also get rid of the
PortalGetHeapMemory() macro and access the field directly, which we do
for other portal fields, so this abstraction doesn't buy anything.

Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
src/backend/commands/portalcmds.c
src/backend/commands/prepare.c
src/backend/executor/spi.c
src/backend/tcop/postgres.c
src/backend/tcop/pquery.c
src/backend/utils/mmgr/portalmem.c
src/include/utils/portal.h