mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user