Execution plan cache for PL/pgSQL functions in PostgreSQL

自闭症网瘾萝莉.ら 提交于 2019-12-02 09:15:31

PostgreSQL tracks dependencies, and it flushes caches pretty aggressively when things change.

If you change a function, it'll invalidate at least the plans of all functions that depend on it. In practice, IIRC it just flushes all cached query plans entirely.

The same is true of views that depend on other views, prepared statements that reference views, etc.

If you find a case where it fails to do so you have found a bug. Please report it with a complete reproducible test case.

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