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

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



view thread (5+ messages)  latest in thread

Message-ID: <8294.1295027762@sss.pgh.pa.us>
Permalink:  ../8294.1295027762@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8294.1295027762@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, nakagawa@ivp.co.jp
  Subject: Re: why does seq scan instead of index scan
  In-Reply-To: <8294.1295027762@sss.pgh.pa.us>

* 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