Re: A *short* planner question - Mailing list pgsql-admin

From Tom Lane
Subject Re: A *short* planner question
Date
Msg-id 16054.1018715302@sss.pgh.pa.us
Whole thread Raw
In response to Re: A *short* planner question  ("Nick Fankhauser" <nickf@ontko.com>)
List pgsql-admin
"Nick Fankhauser" <nickf@ontko.com> 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

pgsql-admin by date:

Previous
From: "Nick Fankhauser"
Date:
Subject: Re: A *short* planner question
Next
From: Egon Reetz
Date:
Subject: Wrong date inserts