{"shas":[["90398132417232cb56dcda53a4cb66ed2d579681","ffeaa947aef224da9ba99b6a18bdd74288df0e3e@sss.pgh.pa.us","Fix get_name_for_var_field() to deal with RECORD Params.\n\nWith 9.1's use of Params to pass down values from NestLoop join nodes\nto their inner plans, it is possible for a Param to have type RECORD, in\nwhich case the set of fields comprising the value isn't determinable by\ninspection of the Param alone.  However, just as with a Var of type RECORD,\nwe can find out what we need to know if we can locate the expression that\nthe Param represents.  We already knew how to do this in get_parameter(),\nbut I'd overlooked the need to be able to cope in get_name_for_var_field(),\nwhich led to EXPLAIN failing with \"record type has not been registered\".\n\nTo fix, refactor the search code in get_parameter() so it can be used by\nboth functions.\n\nPer report from Marti Raudsepp.","Tom Lane"]],"ref":"refs/heads/REL9_1_STABLE","size":1,"head":"90398132417232cb56dcda53a4cb66ed2d579681","push_id":41946443}