pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Christopher Browne <cbbrowne@libertyrms.info>
Cc: pgsql-performance@postgresql.org
Subject: Re: Views With Unions
Date: Fri, 01 Aug 2003 09:10:31 +0530
Message-ID: <3F29E12F.7030207@trade-india.com> (raw)
In-Reply-To: <20030731152719.V26943-100000@megazone.bigpanda.com>
References: <20030731152719.V26943-100000@megazone.bigpanda.com>

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
>  
>





view thread (13+ messages)  latest in thread

Message-ID: <3F29E12F.7030207@trade-india.com>
Permalink:  ../3F29E12F.7030207@trade-india.com/
Also on:    postgresql.org/message-id/3F29E12F.7030207@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: mallah@trade-india.com, sszabo@megazone.bigpanda.com, cbbrowne@libertyrms.info
  Subject: Re: Views With Unions
  In-Reply-To: <3F29E12F.7030207@trade-india.com>
  References: <20030731152719.V26943-100000@megazone.bigpanda.com> <3F29E12F.7030207@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox