Commit 94c1f9ba authored by Peter Eisentraut's avatar Peter Eisentraut

Add memory context identifier to portal context

Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
parent bbca7762
...@@ -220,6 +220,9 @@ CreatePortal(const char *name, bool allowDup, bool dupSilent) ...@@ -220,6 +220,9 @@ CreatePortal(const char *name, bool allowDup, bool dupSilent)
/* put portal in table (sets portal->name) */ /* put portal in table (sets portal->name) */
PortalHashTableInsert(portal, name); PortalHashTableInsert(portal, name);
/* reuse portal->name copy */
MemoryContextSetIdentifier(portal->portalContext, portal->name);
return portal; return portal;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment