Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 740B0476E8F for ; Fri, 28 Jun 2002 00:06:43 -0400 (EDT) Mailbox-Line: From tgl@sss.pgh.pa.us Fri Jun 28 00:06:43 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 96934476983 for ; Thu, 27 Jun 2002 23:59:32 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5S3xaj02437; Thu, 27 Jun 2002 23:59:36 -0400 (EDT) To: Ray Ontko Cc: pgsql-admin@postgresql.org Subject: Re: Are statistics gathered on function indexes? In-reply-to: <200206271854.NAA28020@shire.ontko.com> References: <200206271854.NAA28020@shire.ontko.com> Comments: In-reply-to Ray Ontko message dated "Thu, 27 Jun 2002 13:54:21 -0500" Date: Thu, 27 Jun 2002 23:59:36 -0400 Message-ID: <2434.1025236776@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-5.4 required=5.0 tests=IN_REP_TO,X_NOT_PRESENT,SUBJ_ENDS_IN_Q_MARK version=2.30 X-Spam-Level: X-Archive-Number: 200206/224 X-Sequence-Number: 4658 Ray Ontko writes: > In other words, if I only give one letter, then I might expect > to get about 1/10 of the table, and a full scan might make sense. > But the cost should continue to decline as I give longer and longer > strings, up to the length of the field. > Would this be a reasonable improvement to the optimizer? It's there already; what did you think was making the difference between W% and WI% ? regards, tom lane