Re: PATCH: CITEXT 2.0

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PATCH: CITEXT 2.0
Date: 2008-07-03 07:19:26
Message-ID: 486C7D7E.5080505@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Douglass book, though I probably missed it. Anyone got a link for me to
> read to make it happen?

Hash opclass is 5-times simpler that btree one :)

CREATE FUNCTION citext_hash(mchar)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE RETURNS NULL ON NULL INPUT;

CREATE OPERATOR CLASS citext_ops
DEFAULT FOR TYPE mchar USING hash AS
OPERATOR 1 = (citext, citext),
FUNCTION 1 citext_hash(citext);

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Mielke 2008-07-03 07:19:49 Re: A Windows x64 port of PostgreSQL
Previous Message Ken Camann 2008-07-03 05:45:06 Re: A Windows x64 port of PostgreSQL