Add memory context identifier to portal context
Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
This commit is contained in:
parent
bbca77623f
commit
94c1f9ba11
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user