Fix markTargetListOrigin() to not fail on a simple-Var reference to a

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

Commit: 08142504743bc79feb233f42ae24246273102813
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-10-05T22:20:17Z
Releases: 8.4.0
Fix markTargetListOrigin() to not fail on a simple-Var reference to a
recursive CTE that we're still in progress of analyzing.  Add a similar guard
to the similar code in expandRecordVariable(), and tweak regression tests to
cover this case.  Per report from Dickson S. Guedes.

Files