| From: | 中川 誠貴 <nakagawa(at)ivp(dot)co(dot)jp> |
|---|---|
| To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: why does seq scan instead of index scan |
| Date: | 2011-01-15 05:19:34 |
| Message-ID: | 6A4B2F5F400049FEB3DF73B95BEA20EE@IVPNAKAGAWAPC |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Thank you for your response.
Are there any technique to index that query for like search on Text[]
Columns?
Thanks.
Nakagawa Maskai
--------------------------------------------------
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Saturday, January 15, 2011 2:56 AM
To: "中川 誠貴" <nakagawa(at)ivp(dot)co(dot)jp>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [SQL] why does seq scan instead of index scan
> =?iso-2022-jp?B?GyRCQ2ZAbiEhQD81LhsoQg==?= <nakagawa(at)ivp(dot)co(dot)jp> writes:
>> I'm trying to use like 'xx%' search on Text[] column.
>> I thought it uses index scan. But actually it uses seq scan.
>
>> Why?
>
> Those ANY expressions are not indexable.
>
> regards, tom lane
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dmitriy Igrishin | 2011-01-15 16:36:49 | Re: why does seq scan instead of index scan |
| Previous Message | Tom Lane | 2011-01-14 17:56:02 | Re: why does seq scan instead of index scan |