From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Matthew Gabeler-Lee <mgabelerlee(at)zycos(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Another planner bug with subqueries |
Date: | 2002-12-06 22:53:36 |
Message-ID: | 13851.1039215216@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Matthew Gabeler-Lee <mgabelerlee(at)zycos(dot)com> writes:
> When a view contains a subquery, sorted queries on the view don't put the
> sort inside the view query like they should. 7.2.3 did it properly, and so
> my most common query has now gone from <3s to several minutes.
This is a consequence of my quick-hack solution to your previous
problem: views with subselects in their targetlist will not be
flattened.
I'm afraid there's not much to be done about it for 7.3.* --- AFAICS,
a proper fix would be too big and too risky to put into the stable
branch. The correct long-term fix (flatten join alias vars earlier)
has to wait until we do some fundamental planner work, and I don't
see any other safe quick-hack answer.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Laurette Cisneros | 2002-12-07 00:32:02 | bug? |
Previous Message | Rodrigo Leroux | 2002-12-06 22:34:01 | too much context switching? |