Change error to warning and increase thresholds of tsearch - Mailing list pgsql-hackers

From Ankit Kumar Pandey
Subject Change error to warning and increase thresholds of tsearch
Date
Msg-id 0c06a4d5-0ffd-a660-2e0b-e06d66a22cea@gmail.com
Whole thread Raw
List 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

Attachment

pgsql-hackers by date:

Previous
From: David Christensen
Date:
Subject: Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL
Next
From: Thomas Munro
Date:
Subject: Re: Suppressing useless wakeups in walreceiver