| От | Tom Lane |
|---|---|
| Тема | Re: tsvector field length limitation |
| Дата | |
| Msg-id | 5779.1529506144@sss.pgh.pa.us обсуждение |
| Ответ на | tsvector field length limitation (Jonathan Marks <jonathanaverymarks@gmail.com>) |
| Ответы |
Re: tsvector field length limitation
|
| Список | pgsql-general |
Jonathan Marks <jonathanaverymarks@gmail.com> writes:
> ... we run into the max tsvector length requirement "The length of a tsvector (lexemes + positions) must be less than
1megabyte”
> Is there any way to disable or increase that limit in Postgres 10.3?
No; it's forced by the representation used for tsvector, which stores
lexeme offsets in 20-bit fields (cf WordEntry in
src/include/tsearch/ts_type.h). Perhaps that was short-sighted but
I don't foresee it changing anytime soon. You'd more or less need
a whole new datatype ("bigtsvector"?) to make it happen.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера