Re: index row size exceeds btree maximum, 2713 - Solutions?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: index row size exceeds btree maximum, 2713 - Solutions? |
| Дата | |
| Msg-id | 16848.1121719242@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: index row size exceeds btree maximum, 2713 - Solutions? (Dan Armbrust <daniel.armbrust.list@gmail.com>) |
| Список | pgsql-general |
Dan Armbrust <daniel.armbrust.list@gmail.com> writes:
> The index that is failing is CREATE INDEX i1 ON conceptproperty USING
> btree (codingschemename, property, propertyvalue).<br>
> <br>
> Usually, the 'propertyValue' field is fairly short - 100 chars or
> less. And in those cases, I need to be able to do an indexed search on
> it.
You do realize that the above index has nothing whatever to do with
searches on propertyvalue? (Or at least not propertyvalue alone.)
My advice is to drop propertyvalue from the index and see what
performance you get.
You could possibly do something with a partial index, eg
create index ... where length(propertyvalue) < 2000
but that'd probably require modifying your queries, so I suspect it's
not really very practical.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера