pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Update portal-related memory context names and API
Date: Tue, 09 Jan 2018 18:59:41 +0000
Message-ID: <E1eYz7d-00070K-Lf@gemulon.postgresql.org> (raw)

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>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0f7c49e85518dd846ccd0a044d49a922b9132983

Modified Files
--------------
src/backend/commands/portalcmds.c  | 10 +++++-----
src/backend/commands/prepare.c     |  2 +-
src/backend/executor/spi.c         |  6 +++---
src/backend/tcop/postgres.c        |  2 +-
src/backend/tcop/pquery.c          | 16 ++++++++--------
src/backend/utils/mmgr/portalmem.c | 32 ++++++++++++++++----------------
src/include/utils/portal.h         |  3 +--
7 files changed, 35 insertions(+), 36 deletions(-)



Message-ID: <E1eYz7d-00070K-Lf@gemulon.postgresql.org>
Permalink:  ../E1eYz7d-00070K-Lf@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eYz7d-00070K-Lf@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Update portal-related memory context names and API
  In-Reply-To: <E1eYz7d-00070K-Lf@gemulon.postgresql.org>
  References: <E1eYz7d-00070K-Lf@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox