| От | Tom Lane |
|---|---|
| Тема | Re: Query Planner Issue - View and regexp_replace? |
| Дата | |
| Msg-id | 5172.1203298950@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Query Planner Issue - View and regexp_replace? (Brandon Kane <brandonk98@yahoo.com>) |
| Список | pgsql-novice |
Brandon Kane <brandonk98@yahoo.com> writes: > Yes, this turns out to be a volatile user-defined function. Is there > some specific part of the documentation you can point me to that helps > explain why a volatile function might affect the plan for a column not > involved in select or join operations? I don't believe it's documented anywhere outside the source code, but the short explanation is that the planner won't flatten the view for fear of introducing extra evaluations of the volatile function. (The fact that it isn't actually used at all doesn't help, because we don't know that at the point where this decision has to be made.) You could search the archives for the discussions leading to this patch: http://archives.postgresql.org/pgsql-committers/2006-08/msg00358.php regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера