Change error to warning and increase thresholds of tsearch

Поиск
Список
Период
Сортировка
От Ankit Kumar Pandey
Тема Change error to warning and increase thresholds of tsearch
Дата
Msg-id 0c06a4d5-0ffd-a660-2e0b-e06d66a22cea@gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

I was looking at Todo item: Consider changing error to warning for strings larger than one megabyte 
and after going through existing mails and suggestions.  I would like to propose a patch for tsearch to change error into warning for string larger than one mb and also increase word and position limits.

I've checked operations select/insertion/index, which worked fine without any error (except for the warning as intended).

Thoughts: I am not really sure why was it proposed in the mail to decrease len/MAXSTRLEN.
You could decrease len in WordEntry to 9 (512 characters) and increase pos to 22 (4 Mb). Don't forget to update MAXSTRLEN and MAXSTRPOS accordingly.
I'm attaching a patch herewith. I will be glad to get some feedback on this. Thanks, Ankit

Вложения

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

Предыдущее
От: David Christensen
Дата:
Сообщение: Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Suppressing useless wakeups in walreceiver