It is possible for ResolveNew to be used to insert a sublink into a
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Oct 2003 20:02:30 +0000 (20:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Oct 2003 20:02:30 +0000 (20:02 +0000)
commitf50f12822ae35857b3d8742675a1ff7f852fe97c
tree8c26ba578e60f1e0d1b1b26d128aeaa700a4e3d2
parente970d6c36dfed016be6c012a9501e2803f7ec4b6
It is possible for ResolveNew to be used to insert a sublink into a
subquery that didn't previously have one.  We have traditionally made
the caller of ResolveNew responsible for updating the hasSubLinks flag
of the outermost query, but this fails to account for hasSubLinks in
subqueries.  Fix ResolveNew to handle this.  We might later want to
change the calling convention of ResolveNew so that it can fix the
outer query too, simplifying callers.  But I went with the localized
fix for now.  Per bug report from J Smith, 20-Oct-03.
src/backend/rewrite/rewriteManip.c