Re: 14.1 immutable function, bad performance if check number = 'NaN'
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: 14.1 immutable function, bad performance if check number = 'NaN' |
| Дата | |
| Msg-id | 116336.1650913412@sss.pgh.pa.us обсуждение |
| Ответ на | 14.1 immutable function, bad performance if check number = 'NaN' (Federico Travaglini <federico.travaglini@aubay.it>) |
| Ответы |
Re: 14.1 immutable function, bad performance if check number = 'NaN'
|
| Список | pgsql-bugs |
Federico Travaglini <federico.travaglini@aubay.it> writes:
> This funcion in used as a column in a select on about 400k records
> If I leave the highlighted row it takes 27 seconds, otherwise 14 seconds!
> Such behaviour looks not to be reasonable.
It's not at all clear which line you think is the "highlighted" one.
However, I'm guessing that this SQL function is a candidate for
inlining, so you might try comparing EXPLAIN VERBOSE output for
the query with both forms of the function. Perhaps that will
yield some insight into what's expensive.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера