Re: to_tsvector in 8.2.3 - Mailing list pgsql-general

From Teodor Sigaev
Subject Re: to_tsvector in 8.2.3
Date
Msg-id 4602A837.8000905@sigaev.ru
Whole thread Raw
In response to Re: to_tsvector in 8.2.3  (Magnus Hagander <magnus@hagander.net>)
Responses Re: to_tsvector in 8.2.3  (richardcraig <richard@v3fm.com>)
List pgsql-general
Solved, see attached patch. I had found old Celeron-300 box and install Windows
on it, and it was very slow :)


> Nope, same result with this patch.
Thank you.

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/
*** ./contrib/tsearch2.orig/./wordparser/parser.c    Thu Mar 22 18:39:23 2007
--- ./contrib/tsearch2/./wordparser/parser.c    Thu Mar 22 18:51:23 2007
***************
*** 117,123 ****
      {
          if (lc_ctype_is_c())
          {
!             unsigned int c = *(unsigned int*)(prs->wstr + prs->state->poschar);

              /*
               * any non-ascii symbol with multibyte encoding
--- 117,123 ----
      {
          if (lc_ctype_is_c())
          {
!             unsigned int c = *(prs->wstr + prs->state->poschar);

              /*
               * any non-ascii symbol with multibyte encoding

pgsql-general by date:

Previous
From: Bob Pawley
Date:
Subject: Server
Next
From: Richard Broersma Jr
Date:
Subject: Re: Server