Otherwise just printing an empty string makes the memory context debug
output slightly confusing.
Discussion: https://www.postgresql.org/message-id/flat/
ccb353ef-89ff-09b3-8046-
1d2514624b9c%402ndquadrant.com
/* put portal in table (sets portal->name) */
PortalHashTableInsert(portal, name);
- /* reuse portal->name copy */
- MemoryContextSetIdentifier(portal->portalContext, portal->name);
+ /* for named portals reuse portal->name copy */
+ MemoryContextSetIdentifier(portal->portalContext, portal->name[0] ? portal->name : "");
return portal;
}