| От | Michael Fuhr |
|---|---|
| Тема | Re: tsearch2: rebuilding of fulltext index |
| Дата | |
| Msg-id | 20060225185341.GA75445@winnie.fuhr.org обсуждение |
| Ответ на | tsearch2: rebuilding of fulltext index (<me@alternize.com>) |
| Список | pgsql-novice |
On Sat, Feb 25, 2006 at 07:26:07PM +0100, me@alternize.com wrote: > is there an easy way to enforce a full rebuild of a tsearch2 > index? as the index is not really a pgsql index but rather an > additional field in a record, REINDEX doesn't seem to do the job... What do you mean by "doesn't seem to do the job"? What are you wanting to happen and what actually is happening? What's the purpose of what you're calling a "full rebuild"? Maybe what you're after is a full-table update that will cause the tsearch2 trigger to fire for every row and regenerate the tsvector. Something like this: UPDATE foo SET id = id; This assumes that you have a tsearch2 trigger on the table. Do you? Or have I misunderstood what you're trying to do? -- Michael Fuhr
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера