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 C94DF56999 for ; Tue, 22 Mar 2005 09:23:05 +0000 (GMT) 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 24328-09 for ; Tue, 22 Mar 2005 09:22:49 +0000 (GMT) Received: from moonfactory.co.jp (0.moonfactory.co.jp [211.5.120.193]) by svr1.postgresql.org (Postfix) with ESMTP id 6F997569A7 for ; Tue, 22 Mar 2005 09:22:28 +0000 (GMT) Received: from benjamindon (192.168.133.146) by moonfactory.co.jp with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Tue, 22 Mar 2005 18:22:27 +0900 Message-ID: <007301c52ec0$a8f64ec0$9285a8c0@moonfactory.co.jp> From: "Layet Benjamin" To: Subject: best practices with index on varchar column Date: Tue, 22 Mar 2005 18:22:24 +0900 Organization: Moonfactory MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006F_01C52F0C.18A24D50" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.119 tagged_above=0 required=5 tests=AWL, HTML_50_60, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200503/429 X-Sequence-Number: 11134 This is a multi-part message in MIME format. ------=_NextPart_000_006F_01C52F0C.18A24D50 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Hi everyone, I hope it is the correct newsletter for this question. Can I use an index on a varchar column to optimize the SELECT queries that use " column LIKE 'header%' "? If yes what is the best tree algotithm to use ? I don't care about optimising INSERT, DELETE and UPDATE queries, as they are only done at night when the load is very low. Thank you very much for any help, Benjamin Layet ------=_NextPart_000_006F_01C52F0C.18A24D50 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
Hi everyone,
I hope it is the correct newsletter for this question.
 
Can I use an index on a varchar column to optimize the SELECT = queries that=20 use " column LIKE 'header%'  "?
If yes what is the best tree algotithm to use ?
 
I don't care about optimising INSERT, DELETE and UPDATE queries, as = they=20 are only done at night when the load is very low.
Thank you very much for any help,
Benjamin Layet
 
 
------=_NextPart_000_006F_01C52F0C.18A24D50--