Re: BUG #7651: Superfluous calls to functions used for indexing
В списке pgsql-bugs по дате отправления:
| От | Jeff Davis |
|---|---|
| Тема | Re: BUG #7651: Superfluous calls to functions used for indexing |
| Дата | |
| Msg-id | 1353019478.14335.23.camel@sussancws0025 обсуждение исходный текст |
| Ответ на | BUG #7651: Superfluous calls to functions used for indexing (m-pg@8d.no) |
| Ответы |
Re: BUG #7651: Superfluous calls to functions used for
indexing
|
| Список | pgsql-bugs |
On Sun, 2012-11-11 at 15:45 +0000, m-pg@8d.no wrote:
> Bug: When making an index over a function, then selecting a result that does
> not contain the function call (but orders on it), Superfluous function calls
> are made. This possibly because the plan creates a projection containing the
> function value.
It's possible that the function call may be unnecessary, but that is
more of a performance enhancement, not a bug.
Also, the example function has side effects. If you declare functions
with side effects to be IMMUTABLE, you can get all kinds of problems.
You should certainly not rely on an IMMUTABLE function to be called a
specific number of times.
Regards,
Jeff Davis
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера