]> granicus.if.org Git - postgresql/commit
Fix more problems with rewriter failing to set Query.hasSubLinks when inserting
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Sep 2008 16:53:00 +0000 (16:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Sep 2008 16:53:00 +0000 (16:53 +0000)
commita36a20aa5223787a74d9c282362403b52dbed6be
tree98799408098f2e5ed3efa38a6e4c0c2403c53b3e
parentc4e5ec592fb04def28fbcb63da6573520047d89c
Fix more problems with rewriter failing to set Query.hasSubLinks when inserting
a SubLink expression into a rule query.  We missed cases where the original
query contained a sub-SELECT in a function in FROM, a multi-row VALUES list,
or a RETURNING list.  Per bug #4434 from Dean Rasheed and subsequent
investigation.

Back-patch to 8.1; older releases don't have the issue because they didn't
try to be smart about setting hasSubLinks only when needed.
src/backend/rewrite/rewriteHandler.c