Re: text column indexing in UTF-8 database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Reece Hart <reece(at)harts(dot)net>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: text column indexing in UTF-8 database
Date: 2009-03-13 18:08:01
Message-ID: 17820.1236967681@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> One thing that still doesn't make sense to me is that texteq() is
> bitwise-equality even in 8.3.

Historical artifact ... we made the semantics change some time ago, but
the ensuing change to remove ~=~ didn't happen until 8.4.

> It sounds like Reece Hart can avoid the extra index by making a new
> opclass that's like text_pattern_ops except "~=~" should be named "=".

Unfortunately not, because the LIKE index optimizations are keyed off
the built-in opclasses.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-03-13 18:12:30 Re: Maximum transaction rate
Previous Message Tom Lane 2009-03-13 18:00:20 Re: Maximum transaction rate