Re: tsearch2 dictionary that indexes substrings? - Mailing list pgsql-general

From Teodor Sigaev
Subject Re: tsearch2 dictionary that indexes substrings?
Date
Msg-id 462DBE09.20304@sigaev.ru
Whole thread Raw
In response to Re: tsearch2 dictionary that indexes substrings?  (Tilmann Singer <tils-pgsql@tils.net>)
List pgsql-general
> My colleague who speaks more C than me came up with the code below
> which works fine for us. Will the memory allocated for lexeme be freed
Nice, except self-defined utf8 properties. I think it will be much better to use
pg_mblen(char*). In this case your dictionary will work with any supported by
pgsql encodings.

> by the caller?
Yes, of course.


--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Slow query using simple equality operators
Next
From: Felix Kater
Date:
Subject: Re: PQerrorMessage: suppress trailing new line?