Execution plan for functions in PostgreSQL

早过忘川 提交于 2019-12-11 07:23:59

问题


If I change user-defined function (UDF) that is in use in another UDF will the PostgreSQL rebuild execution plan for both of them or only for changed one?


回答1:


If a function is unchanged, the execution plans for all its queries should remain cached.

So only the execution plans for the function you changed will be recalculated.

You can use the SQL statement DISCARD PLANS to discard all cached plans.



来源:https://stackoverflow.com/questions/46659067/execution-plan-for-functions-in-postgresql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!