pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Ryan S. Puncia <mpuncia@census.gov.ph>
To: pgsql-performance@postgresql.org
Subject: Using LIKE expression problem..
Date: Wed, 12 May 2004 14:18:48 +0800
Message-ID: <200405120606.i4C65ph9000939@mail.census.gov.ph> (raw)

Hi everybody..

    

     Before anything else I would like to thank all those person who answers
my previous question. again thank you very much

 

This is my question .

    

     In my query .. Select * from table1 where lastname LIKE  'PUNCIA%'..

 

In the query plan ..it uses seq scan rather than index scan .. why ? I have
index on lastname, firtname. 

 

 

Thanks

view thread (6+ messages)  latest in thread

Message-ID: <200405120606.i4C65ph9000939@mail.census.gov.ph>
Permalink:  ../200405120606.i4C65ph9000939@mail.census.gov.ph/
Also on:    postgresql.org/message-id/200405120606.i4C65ph9000939@mail.census.gov.ph

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: mpuncia@census.gov.ph
  Subject: Re: Using LIKE expression problem..
  In-Reply-To: <200405120606.i4C65ph9000939@mail.census.gov.ph>
  References: <200405120606.i4C65ph9000939@mail.census.gov.ph>

* 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