Re: tsearch2 problems / limitations

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: tsearch2 problems / limitations
Дата
Msg-id 20050223084223.GB23608@winnie.fuhr.org
обсуждение исходный текст
Ответ на tsearch2 problems / limitations  (James Croft <noemail@address.com>)
Список pgsql-general
On Tue, Feb 22, 2005 at 01:29:45PM +0000, James Croft wrote:

> One of the tables holds reasonable amounts of text, some fields hold up
> to 2Mb. When I try and run
>
> UPDATE table SET idxfti=to_tsvector('default', field);
>
> it runs for a while then aborts with the following message
>
> ERROR:  value is too big

README.tsearch2 says that the maximum size of a tsvector is 2^20
bytes (1M).  You can see that limit enforced in the makevalue()
function in tsvector.c (similarly in pushquery() in query.c):

    if (cur - str > MAXSTRPOS)
        ereport(ERROR,
                (errcode(ERRCODE_SYNTAX_ERROR),
                 errmsg("value is too big")));

MAXSTRPOS is defined in tsvector.h:

  #define MAXSTRPOS ( 1<<20 )

Maybe Oleg will reply and say whether it's safe to change that
or not.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

В списке pgsql-general по дате отправления:

Предыдущее
От: Andreas Hartmann
Дата:
Сообщение: Re: Different execution time from psql and JDBC
Следующее
От: "Andre Schnoor"
Дата:
Сообщение: Re: Simple client messages from within pgPL/SQL