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