Re: text column indexing in UTF-8 database

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:00:19
Message-ID: 1236967219.1024.8.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2009-03-13 at 13:13 -0400, Tom Lane wrote:
> There is actually some history here; the former distinction in the
> equality operators arose from exactly your concern. But after we
> put in the second-pass check to insist on bitwise equality, we
> realized that the equality operators really were equivalent.
>

Interesting. It's certainly convenient when "=" means "values are
exactly the same" ;)

One thing that still doesn't make sense to me is that texteq() is
bitwise-equality even in 8.3.

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 "=".

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-03-13 18:00:20 Re: Maximum transaction rate
Previous Message Marco Colombo 2009-03-13 17:44:21 Re: Maximum transaction rate