Content-Length: 258372 | pFad | http://github.com/postgrespro/postgres_cluster/commit/94c1f9ba11d1241a2b3b2be7177604b26b08bc3d

2D Add memory context identifier to portal context · postgrespro/postgres_cluster@94c1f9b · GitHub
Skip to content

Commit 94c1f9b

Browse files
committed
Add memory context identifier to portal context
Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
1 parent bbca776 commit 94c1f9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/utils/mmgr/portalmem.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ CreatePortal(const char *name, bool allowDup, bool dupSilent)
220220
/* put portal in table (sets portal->name) */
221221
PortalHashTableInsert(portal, name);
222222

223+
/* reuse portal->name copy */
224+
MemoryContextSetIdentifier(portal->portalContext, portal->name);
225+
223226
return portal;
224227
}
225228

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/94c1f9ba11d1241a2b3b2be7177604b26b08bc3d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy