Re: Possible solution for LIKE optimization - Mailing list pgsql-hackers

From Oleg Bartunov
Subject Re: Possible solution for LIKE optimization
Date
Msg-id Pine.GSO.4.33.0108072235070.4719-100000@ra.sai.msu.su
Whole thread Raw
In response to Re: Possible solution for LIKE optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, 6 Aug 2001, Tom Lane wrote:

> Giles Lean <giles@nemeton.com.au> writes:
> > Implementations of strxfrm() that I've looked at have had result data
> > that is three or four times larger than then input string -- quite a
> > penalty in some situations.
>
> Especially so given that we don't have TOAST for indexes, so the indexed
> value can't exceed about 2700 bytes (for btree and an 8K block size).
> You are allowed to compress first, so that's not a hard limit, but it
> could still be a problem.
>
> I like the non-locale-aware-opclass idea much better than the original.

Does this means that if implemented we could create indexes for
different columns with/without locale support ? It's pain currently
that I had to enable locale support while actually I need
it only for several columns. Gnu sort on Linux 10 times slow if
I use LC_ALL other than C !
Regards,
    Oleg

>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
Regards,    Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Re: Null-safe GiST interface (proposal)
Next
From: Stephan Szabo
Date:
Subject: Re: FW: [JDBC] BIGINT vs Java's long