Re: Slow planning time for custom function
| От | David Rowley |
|---|---|
| Тема | Re: Slow planning time for custom function |
| Дата | |
| Msg-id | CAKJS1f9-YDDyCkO3VhfNoNbi9DatkL+p0BfJFyi-6H_DBr1Y6w@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Slow planning time for custom function (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: Slow planning time for custom function
|
| Список | pgsql-performance |
On 24 March 2018 at 14:35, Andres Freund <andres@anarazel.de> wrote:
> How long does planning take if you repeat this? I wonder if a good chunk
> of those 1.8s is initial loading of plv8.
Maybe, but it also could be the execution of the function, after all,
the planner does invoke immutable functions:
# explain verbose select lower('TEST');
QUERY PLAN
-------------------------------------------
Result (cost=0.00..0.01 rows=1 width=32)
Output: 'test'::text
(2 rows)
Would be interesting to see what changes without the IMMUTABLE flag.
--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-performance по дате отправления: