pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 中川 誠貴 <nakagawa@ivp.co.jp>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: why does seq scan instead of index scan
Date: Sat, 15 Jan 2011 14:19:34 +0900
Message-ID: <6A4B2F5F400049FEB3DF73B95BEA20EE@IVPNAKAGAWAPC> (raw)
In-Reply-To: <8294.1295027762@sss.pgh.pa.us>
References: <49A94E2FF0F642B4ACBE09DB20CA5630@IVPNAKAGAWAPC>
	<8294.1295027762@sss.pgh.pa.us>

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@sss.pgh.pa.us>
Sent: Saturday, January 15, 2011 2:56 AM
To: "中川 誠貴" <nakagawa@ivp.co.jp>
Cc: <pgsql-sql@postgresql.org>
Subject: Re: [SQL] why does seq scan instead of index scan

> =?iso-2022-jp?B?GyRCQ2ZAbiEhQD81LhsoQg==?= <nakagawa@ivp.co.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql 




view thread (5+ messages)  latest in thread

Message-ID: <6A4B2F5F400049FEB3DF73B95BEA20EE@IVPNAKAGAWAPC>
Permalink:  ../6A4B2F5F400049FEB3DF73B95BEA20EE@IVPNAKAGAWAPC/
Also on:    postgresql.org/message-id/6A4B2F5F400049FEB3DF73B95BEA20EE@IVPNAKAGAWAPC

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nakagawa@ivp.co.jp, tgl@sss.pgh.pa.us
  Subject: Re: why does seq scan instead of index scan
  In-Reply-To: <6A4B2F5F400049FEB3DF73B95BEA20EE@IVPNAKAGAWAPC>

* 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