Oliver Jowett wrote:
It seems like we should pass the original parameters from execution of the DECLARE utility portal down through PortalRunUtility -> ProcessUtility -> PerformCursorOpen, copy them into the newly created portal's memory context, and pass the copies to PortalStart on the new portal.
I'll also have to add a type Oid to ParamListInfoData to be able to do the copying of parameters (either that or pass type info around with the portal which seems nasty).
-O
---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match