From: | Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
Cc: | Christopher Browne <cbbrowne(at)libertyrms(dot)info>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Views With Unions |
Date: | 2003-08-01 03:40:31 |
Message-ID: | 3F29E12F.7030207@trade-india.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-performance |
Stephan Szabo wrote:
>On Thu, 31 Jul 2003, Christopher Browne wrote:
>
>
>
>> select * from log_table where request_time between 'june 11 2003' and
>> 'june 12 2003';
>>
>>returns a plan:
>>Subquery Scan log_table (cost=0.00..10950.26 rows=177126 width=314)
>> -> Append (cost=0.00..10950.26 rows=177126 width=314)
>> -> Subquery Scan *SELECT* 1 (cost=0.00..3089.07 rows=50307 width=71)
>> -> Seq Scan on log_table_1 (cost=0.00..3089.07 rows=50307 width=71)
>> -> Subquery Scan *SELECT* 2 (cost=0.00..602.92 rows=9892 width=314)
>> -> Seq Scan on log_table_2 (cost=0.00..602.92 rows=9892 width=314)
>> -> Subquery Scan *SELECT* 3 (cost=0.00..2390.09 rows=39209 width=314)
>> -> Seq Scan on log_table_3 (cost=0.00..2390.09 rows=39209 width=314)
>>
>>
>
>What version are you using? In 7.3 and up it should be willing to
>consider moving the clause down, unless there's something like a type
>mismatch (because in that case it may not be equivalent without a bunch
>more work on the clause).
>
Dear Chris,
I had the same problem(type mismatch) and it was solved finally.
check the list
"factoring problem ... " subject only 2 weeks back .
regds
mallah.
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Claudio Lapidus | 2003-08-01 03:54:11 | Re: Comments in .sql files |
Previous Message | 2trax | 2003-08-01 01:31:19 | Re: OT: Address Fields |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Sullivan | 2003-08-01 12:16:12 | Re: Odd explain estimate |
Previous Message | Jim C. Nasby | 2003-07-31 22:59:59 | Re: Odd explain estimate |