Re: [PERFORM] Estimation problem with a LIKE clause containing a / - Mailing list pgsql-hackers

From Guillaume Smet
Subject Re: [PERFORM] Estimation problem with a LIKE clause containing a /
Date
Msg-id 1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.com
Whole thread Raw
In response to Re: [PERFORM] Estimation problem with a LIKE clause containing a /  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Nov 9, 2007 3:08 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> This rule works for all the locales I have installed ... but I don't
> have any Far Eastern locales installed.  Also, my test cases are only
> covering ASCII characters, and I believe many locales have some non-ASCII
> letters that sort after 'Z'.  I'm not sure how hard we need to try to
> cover those corner cases, though.  It is ultimately only an estimate...

My opinion is that it's acceptable to fix the problem for most cases
in most locales because, as you said, it's only an estimate. We didn't
have any report of this problem for years so it seems that it's not a
common case or at least it's not common that the bad estimate leads to
noticeably bad plans.

As far as I understand what you plan to do, it doesn't seem to be
something that prevents us to fix the problem afterwards if someone
comes with an example which doesn't fit in the schema you're proposing
and has a real performance problem with it.

--
Guillaume

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Free Space Map thoughts
Next
From: Tom Lane
Date:
Subject: Re: New tzdata available