Re: [PERFORM] LIKE without wildcard different from =

2010-08-04 Thread Kevin Grittner
Tom Lane wrote: > Ah. Well, the real fix for that is also in 8.4: we got rid of the > separate ~=~ operator, so a text_pattern_ops index is now usable > for plain =. Nice! Thanks, -Kevin -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to you

Re: [PERFORM] LIKE without wildcard different from =

2010-08-04 Thread Tom Lane
"Kevin Grittner" writes: > To be clear, though, the problem isn't that it didn't turn a LIKE > with no wildcard characters into an equality test, it's that it > would have been three orders of magnitude faster (because of an > available index with an opclass specification) if it had treated an > e

Re: [PERFORM] LIKE without wildcard different from =

2010-08-04 Thread Kevin Grittner
Tom Lane wrote: > "Kevin Grittner" writes: >> We have been using the C locale for everything at our site, but >> there is occasionally talk of supporting characters outside the >> ASCII7 set. In playing around with indexing, to see what the >> impact of that would be, I stumbled across something

Re: [PERFORM] LIKE without wildcard different from =

2010-08-04 Thread Tom Lane
"Kevin Grittner" writes: > We have been using the C locale for everything at our site, but > there is occasionally talk of supporting characters outside the > ASCII7 set. In playing around with indexing, to see what the impact > of that would be, I stumbled across something which was mildly > surp

[PERFORM] LIKE without wildcard different from =

2010-08-04 Thread Kevin Grittner
We have been using the C locale for everything at our site, but there is occasionally talk of supporting characters outside the ASCII7 set. In playing around with indexing, to see what the impact of that would be, I stumbled across something which was mildly surprising. In the C locale, if you wan