Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-08 Thread Teodor Sigaev
Rodrigo Hjort wrote: How about those "pg_ts*" tables, which are specific for a database? Will they serve to the whole cluster? No, it plans per database only. If you need in all database, you can install tsearch2 into template1, so all newly created database will have the same tsearch2 conf

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-07 Thread Rodrigo Hjort
How about those "pg_ts*" tables, which are specific for a database? Will they serve to the whole cluster?2006/6/7, Teodor Sigaev <[EMAIL PROTECTED] >:OpenFTS never, but tsearch2 is possible. But it requires enough work to do, so I    have doubt that it will be done in 8.2...-- Rodrigo Hjorthttp://i

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-07 Thread Teodor Sigaev
Since we are on the topic, is there a timeline/plans for openfts being brought into core? If not, I'll continue my work on bringing it into Gentoo Portage. OpenFTS never, but tsearch2 is possible. But it requires enough work to do, so I have doubt that it will be done in 8.2... -- Teodor S

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-06 Thread John Jawed
Since we are on the topic, is there a timeline/plans for openfts being brought into core? If not, I'll continue my work on bringing it into Gentoo Portage. John On 6/5/06, Oleg Bartunov wrote: On Mon, 5 Jun 2006, Teodor Sigaev wrote: > > > Teodor Sigaev wrote: >> Sorry, it isn't mentioned on

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-05 Thread Oleg Bartunov
On Mon, 5 Jun 2006, Teodor Sigaev wrote: Teodor Sigaev wrote: Sorry, it isn't mentioned on page, but this example of code working only with before 8.1 versions. In 8.1 interface to dictionary was changed. Try attached dict_tmpl.c 2Oleg: place file on site, pls done Regards,

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-05 Thread Teodor Sigaev
Teodor Sigaev wrote: Sorry, it isn't mentioned on page, but this example of code working only with before 8.1 versions. In 8.1 interface to dictionary was changed. Try attached dict_tmpl.c 2Oleg: place file on site, pls -- Teodor Sigaev E-mail: [EMAIL PROTE

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-05 Thread Teodor Sigaev
Sorry, it isn't mentioned on page, but this example of code working only with before 8.1 versions. In 8.1 interface to dictionary was changed. More precisely, in 8.1, lexize function (in num2english dlexize_num2english()) should return pointer to TSLexeme array instead of char**. Rodrigo Hjor

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-02 Thread Oleg Bartunov
Aha, I got the same problem on 8.2dev. Oleg On Fri, 2 Jun 2006, Rodrigo Hjort wrote: Oleg, Actually I got PG 8.1.4 compiled from source on a Debian GNU/Linux 2.6.16-k7-2. My locale is pt_BR, but I configured TSearch2 to use rules from the 'simple'. Then I just followed the instructio

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-02 Thread Oleg Bartunov
On Fri, 2 Jun 2006, Rodrigo Hjort wrote: Oleg, Actually I got PG 8.1.4 compiled from source on a Debian GNU/Linux 2.6.16-k7-2. My locale is pt_BR, but I configured TSearch2 to use rules from the 'simple'. Then I just followed the instructions from the link. The fact is that it only works at the

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-02 Thread Rodrigo Hjort
Oleg, Actually I got PG 8.1.4 compiled from source on a Debian GNU/Linux 2.6.16-k7-2. My locale is pt_BR, but I configured TSearch2 to use rules from the 'simple'. Then I just followed the instructions from the link. The fact is that it only works at the first time. Regards, Rodrigo Hjort http://

Re: [HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-02 Thread Oleg Bartunov
Rodrigo, you gave us too little information. Did you use your own dictionary ? What's your configuration, version, etc. Oleg On Fri, 2 Jun 2006, Rodrigo Hjort wrote: Sorry, but I thought it that was the most appropriate list for the issue. I was following these instructions: http://www.sai.ms

[HACKERS] Connection Broken with Custom Dicts for TSearch2

2006-06-02 Thread Rodrigo Hjort
Sorry, but I thought it that was the most appropriate list for the issue.I was following these instructions:http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/custom-dict.html And what happens is that the function works just once. Perhaps a malloc/free issue?$ psql fuzzyfuzzy=# select to_t