| От | Tom Lane |
|---|---|
| Тема | Re: Index Ignored Due To Use Of View |
| Дата | |
| Msg-id | 8297.1300925273@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Index Ignored Due To Use Of View ("Donald Fraser" <postgres@kiwi-fraser.net>) |
| Список | pgsql-bugs |
"Donald Fraser" <postgres@kiwi-fraser.net> writes: > I found the solution to the problem and it would therefore appear as though this is not a bug! > If I change the function definition to be "STABLE" instead of "VOLATILE", then the problem goes away. Yeah, that's intentional. If the planner flattens a view that has a function in its output list, things get a lot less predictable about when the function will be called. For a volatile function, that can matter a lot. We used to flatten such views anyway, but we got enough complaints that we changed it. http://archives.postgresql.org/pgsql-committers/2006-08/msg00358.php regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера