]> git.ipfire.org Git - thirdparty/postgresql.git/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:53 +0000 (16:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Sep 2008 16:52:53 +0000 (16:52 +0000)
commit7ef00979980b964456577454e4e0e5076d284970
tree5d6d6821fc893a871c0aac4c6293c7de146d4c98
parent7898ff7185b7d0658e680b01dbecf61dada9c17e
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