Partial fix for copied-plan bugs reported by Hiroshi Inoue:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e0345e09bf420833ce0647c616414a2913148f1e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 1999-03-03T00:02:42Z
Releases: 7.1.1
Partial fix for copied-plan bugs reported by Hiroshi Inoue:
_copyResult didn't copy subPlan structure completely.  _copyAgg is still
busted, apparently because of changes from EXCEPT/INTERSECT patch
(get_agg_tlist_references is no longer sufficient to find all aggregates).
No time to look at that tonight, however.

Files