| 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:00 |
| Message-ID: | 20080924165300.18B797545A4@cvs.postgresql.org |
| Views: | Whole Thread | Raw Message | 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_2_STABLE
Modified Files:
--------------
pgsql/src/backend/rewrite:
rewriteHandler.c (r1.168.2.1 -> r1.168.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/rewrite/rewriteHandler.c?r1=1.168.2.1&r2=1.168.2.2)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2008-09-24 16:53:07 | pgsql: Fix more problems with rewriter failing to set Query.hasSubLinks |
| Previous Message | Tom Lane | 2008-09-24 16:52:53 | pgsql: Fix more problems with rewriter failing to set Query.hasSubLinks |