From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com> |
Cc: | pgsql-performance <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Estimation problem with a LIKE clause containing a / |
Date: | 2007-11-07 23:14:08 |
Message-ID: | 11467.1194477248@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
I wrote:
> "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com> writes:
>> [ bad estimate for LIKE ]
> Hmmm ... what locale are you working in? I notice that the range
> estimator for this pattern would be "ancestors >= '1062/' AND
> ancestors < '10620'", which will do the right thing in C locale
> but maybe not so much elsewhere.
I've applied a patch that might help you:
http://archives.postgresql.org/pgsql-committers/2007-11/msg00104.php
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | CaT | 2007-11-07 23:21:45 | Feature Request: inline comments |
Previous Message | Tom Lane | 2007-11-07 23:11:00 | Re: fulltext parser strange behave |
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Smet | 2007-11-07 23:32:55 | Re: Estimation problem with a LIKE clause containing a / |
Previous Message | Tom Lane | 2007-11-07 16:58:49 | Re: Estimation problem with a LIKE clause containing a / |