From: | "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com> |
---|---|
To: | Jan Urbański <j(dot)urbanski(at)students(dot)mimuw(dot)edu(dot)pl> |
Cc: | "Postgres - Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: gsoc, oprrest function for text search take 2 |
Date: | 2008-07-29 08:01:59 |
Message-ID: | 488ECE77.2050103@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Jan Urbański wrote:
> Another thing are cstring_to_text_with_len calls. I'm doing them so I
> can use bttextcmp in bsearch(). I think I could come up with a dedicated
> function to return text Datums and WordEntries (read: non-NULL
> terminated strings with a given length).
Just keep them as cstrings and use strcmp. We're only keeping the array
sorted so that we can binary search it, so we don't need proper
locale-dependent collation. Note that we already assume that two strings
('text's) are equal if and only if their binary representations are
equal (texteq() uses strcmp).
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2008-07-29 08:03:38 | Re: patch: Add a separate TRUNCATE permission |
Previous Message | Peter Eisentraut | 2008-07-29 07:58:33 | Re: Python 2.5 vs the buildfarm |