| От | Tom Lane |
|---|---|
| Тема | Re: GiST, Not Using Index |
| Дата | |
| Msg-id | 29842.1046385523@sss.pgh.pa.us обсуждение |
| Ответ на | Re: GiST, Not Using Index (Itai Zukerman <zukerman@math-hat.com>) |
| Список | pgsql-sql |
Itai Zukerman <zukerman@math-hat.com> writes:
>> Never leave out the "unimportant" stuff --- that's usually where you
>> went wrong ;-)
> OK, I've attached below the SQL I use to generate stuff and an
> interactive session with the "explain" etc.
Ah. Your problem is you need to mark sig_in() as IMMUTABLE, or at least
STABLE, for an expression involving sig_in() to be considered safe to
index. If it's in C, more than likely it'd best be marked STRICT too
(else you'd better have explicit NULL checks in the function code).
Don't forget to look at your other custom functions too, to see if
they're correctly marked.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера