Re: making tsearch2 dictionaries - Mailing list pgsql-general

From Ben
Subject Re: making tsearch2 dictionaries
Date
Msg-id 1076952691.20254.49.camel@purple
Whole thread Raw
In response to making tsearch2 dictionaries  (Ben <bench@silentmedia.com>)
Responses Re: making tsearch2 dictionaries
List pgsql-general
Like I said, quasicode. :)

And in fact I see I even put an off-by-one error in this last email that
wasn't in my function. (Honest!) Should have been "res[1] = phrase[4]"
in the first section.

Are there docs for making parsers? Or anything like gendict?

On Mon, 2004-02-16 at 09:25, Teodor Sigaev wrote:

> :)
> I hope you mean:
> res = palloc(3);
> res[0] = palloc(4);
> memcpy(res[0] ,"foo", 4);
> res[1] = palloc(4);
> memcpy(res[1] ,"bar", 4);
> res[2] = 0;
>
> Look at indexes of res.


pgsql-general by date:

Previous
From: "C G"
Date:
Subject: Re: Inputting columns of data
Next
From: Karam Chand
Date:
Subject: Re: PGSQL C API()