X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 04E2852833 for ; Wed, 22 Jun 2005 06:03:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60372-08 for ; Wed, 22 Jun 2005 09:03:31 +0000 (GMT) Received: from web32910.mail.mud.yahoo.com (web32910.mail.mud.yahoo.com [68.142.206.57]) by svr1.postgresql.org (Postfix) with SMTP id C15BC5284D for ; Wed, 22 Jun 2005 06:03:28 -0300 (ADT) Received: (qmail 34688 invoked by uid 60001); 22 Jun 2005 09:03:29 -0000 Message-ID: <20050622090329.34686.qmail@web32910.mail.mud.yahoo.com> Received: from [216.132.49.70] by web32910.mail.mud.yahoo.com via HTTP; Wed, 22 Jun 2005 02:03:29 PDT X-RocketYMMF: adamle2028 Date: Wed, 22 Jun 2005 02:03:29 -0700 (PDT) From: Aditya Damle Reply-To: aditya@skillnetinc.com Subject: LIKE search with ending % not optimized in v8 To: pgsql-performance@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/526 X-Sequence-Number: 13163 Hello. I believe in earlier versions, a query of the form select attrib from ttt where attrib like 'foo%' would be able to take advantage of an index. I have seen this in the past. Currently I am using v8.0.3. From what I can see is that the execultion plan seems to use a seq scan and to totally ignore the index. Is this the case? -Aditya