| От | Tom Lane |
|---|---|
| Тема | Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash |
| Дата | |
| Msg-id | 23713.1195621493@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash (Bruce Momjian <bruce@momjian.us>) |
| Список | pgsql-docs |
Bruce Momjian <bruce@momjian.us> writes:
> Tom Lane wrote:
>> I'm not sure that putting in to_tsvector calls there would be an
>> improvement, though, since at that point we haven't introduced
>> to_tsvector.
>>
>> Thoughts anyone?
> Yep, I saw that chicken and egg problem in the docs when I was reviewing
> it long ago. I never came up with a solution either.
OTOH, I see that the very next sentence mentions to_tsquery without
defining it. So maybe it wouldn't be materially less readable if we
just changed the examples to use to_tsquery and to_tsvector instead
of literal-casting. Either way, there is something going on that
doesn't meet the eye, and we might as well write an example that is
actually OK practice rather than bad practice.
regards, tom lane
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера