From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | Ben <bench(at)silentmedia(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: making tsearch2 dictionaries |
Date: | 2004-02-16 17:53:24 |
Message-ID: | 40310394.1020709@sigaev.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Small docs are avaliable at
http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_in_Brief
and into current implementation at contrib/tsearch2/wparser_def.c. The largest
code is about headline stuff.
Ben wrote:
> 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.
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-02-16 18:27:43 | Re: How do I call multiple functions in one trigger? |
Previous Message | Nick Barr | 2004-02-16 17:51:38 | Select for update, locks and transaction levels |