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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix more problems with rewriter failing to set Query.hasSubLinks
Date: 2008-09-24 16:53:07
Message-ID: 20080924165307.21EFF7545A4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Chris Browne 2008-09-24 18:45:09 Re: pgsql: Make LC_COLLATE and LC_CTYPE database-level settings.
Previous Message Tom Lane 2008-09-24 16:53:00 pgsql: Fix more problems with rewriter failing to set Query.hasSubLinks