]> 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:52:46 +0000 (16:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Sep 2008 16:52:46 +0000 (16:52 +0000)
commit96a25d393cac5b0f9d36f32c8a874b6ea662ebc1
tree7efc9b3eeeafc8b739c2e65dfa98111bb9decfc2
parent93eab311e4a650f2e01b7134155ccef7ccb6a8f4
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