X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EC5EED1C93C for ; Wed, 12 May 2004 03:11:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 51455-07 for ; Wed, 12 May 2004 03:11:12 -0300 (ADT) Received: from mail.census.gov.ph (mail.census.gov.ph [203.172.28.120]) by svr1.postgresql.org (Postfix) with ESMTP id D7140D1D6D4 for ; Wed, 12 May 2004 03:08:57 -0300 (ADT) Received: from notnot (gateway.census.gov.ph [203.172.28.97]) by mail.census.gov.ph (8.12.8/8.12.8) with ESMTP id i4C65ph9000939 for ; Wed, 12 May 2004 14:06:02 +0800 Message-Id: <200405120606.i4C65ph9000939@mail.census.gov.ph> From: "Michael Ryan S. Puncia" To: Subject: Using LIKE expression problem.. Date: Wed, 12 May 2004 14:18:48 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C4382C.0E830300" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcQ36PyToYr6Qa3qRZWAE3h3fvjy6Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MailScanner: Found to be clean by NSO mail server. X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_70_80, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200405/105 X-Sequence-Number: 6936 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C4382C.0E830300 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0000_01C4382C.0E830300 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi everybody..

   

     Before anything else I would li= ke to thank all those person who answers my previous question… again thank you very much

 

This is my question …

   

     In my query .. Select * from ta= ble1 where lastname LIKE  ‘PUNCIA%’..

 

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

 

 

Thanks

------=_NextPart_000_0000_01C4382C.0E830300--