diff options
| author | Peter Eisentraut | 2018-04-06 16:34:15 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2018-04-06 16:37:54 +0000 |
| commit | 94c1f9ba11d1241a2b3b2be7177604b26b08bc3d (patch) | |
| tree | ae3264f0281fde4e1d9cdc35a8693c499e72b6ea /src/backend | |
| parent | bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0 (diff) | |
Add memory context identifier to portal context
Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/utils/mmgr/portalmem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/utils/mmgr/portalmem.c b/src/backend/utils/mmgr/portalmem.c index 4307f5cc70f..53225d6f1b4 100644 --- a/src/backend/utils/mmgr/portalmem.c +++ b/src/backend/utils/mmgr/portalmem.c @@ -220,6 +220,9 @@ CreatePortal(const char *name, bool allowDup, bool dupSilent) /* put portal in table (sets portal->name) */ PortalHashTableInsert(portal, name); + /* reuse portal->name copy */ + MemoryContextSetIdentifier(portal->portalContext, portal->name); + return portal; } |
