Re: partition text/varchar check problem - Mailing list pgsql-performance

From jamcito
Subject Re: partition text/varchar check problem
Date
Msg-id 4584574B.9080100@poczta.fm
Whole thread Raw
In response to Re: partition text/varchar check problem  (Ireneusz Pluta <ipluta@wp.pl>)
List pgsql-performance
Ireneusz Pluta wrote:
> Can you show what you get from:
> EXPLAIN SELECT * FROM data WHERE name LIKE 'a%'
>
> ?
>
> Irek.

I get:
                               QUERY PLAN
------------------------------------------------------------------------
 Result  (cost=0.00..24.42 rows=8 width=48)
   ->  Append  (cost=0.00..24.42 rows=8 width=48)
         ->  Seq Scan on data  (cost=0.00..22.38 rows=5 width=48)
               Filter: ((name)::text ~~ 'a%'::text)
         ->  Seq Scan on data_a data  (cost=0.00..1.02 rows=2 width=23)
               Filter: ((name)::text ~~ 'a%'::text)
         ->  Seq Scan on data_b data  (cost=0.00..1.02 rows=1 width=23)
               Filter: ((name)::text ~~ 'a%'::text)
(8 rows)

Both partition tables are scanned.

Best,
jamcito

----------------------------------------------------------------------
smieszne, muzyka, pilka, sexy, kibice, kino, ciekawe, extreme, kabaret
http://link.interia.pl/f19d4 - najlepsze filmy w intermecie


pgsql-performance by date:

Previous
From: Ireneusz Pluta
Date:
Subject: Re: partition text/varchar check problem
Next
From: Tom Lane
Date:
Subject: Re: partition text/varchar check problem