Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id A2F68474E71 for ; Sat, 13 Apr 2002 12:28:18 -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 g3DGSNF16057; Sat, 13 Apr 2002 12:28:23 -0400 (EDT) To: nickf@ontko.com Cc: "pgsql-admin" Subject: Re: A *short* planner question In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Sat, 13 Apr 2002 11:03:59 -0500" Date: Sat, 13 Apr 2002 12:28:22 -0400 Message-ID: <16054.1018715302@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/110 X-Sequence-Number: 3998 "Nick Fankhauser" writes: > ... In addition, since we're using a "like", typing > in only an initial char would get roughly 1/26 of the rows back- Does the > planner look at the number of leading chars provided when coming up with a > plan? Yeah it does, if it can see a constant pattern for the LIKE or regex match. regards, tom lane