Wednesday, September 24, 2008

[COMMITTERS] pgsql: Fix more problems with rewriter failing to set Query.hasSubLinks

Log Message:
-----------
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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/rewrite:
rewriteHandler.c (r1.158.2.3 -> r1.158.2.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/rewrite/rewriteHandler.c?r1=1.158.2.3&r2=1.158.2.4)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

No comments: