How to disable/enable different query optimizations in POSTGRESQL?

烂漫一生 提交于 2019-12-25 02:48:15

问题


I'm doing some test to see the capability of Postgresql query performance. And my plan is to disable/enable different query optimizations, such as disable (automatic) index, disable re-order joins etc. is there some configuration to achieve this quickly or what part source code should I revise? thanks.


回答1:


PostgreSQL provides debug parameters for exactly this.

See the enable_ params in the docs.

Please don't use them in production; it might seem like a good idea at the time, but those settings won't adapt as the data changes and grows, so what starts out as a performance win will probably become a problem later.



来源:https://stackoverflow.com/questions/22785064/how-to-disable-enable-different-query-optimizations-in-postgresql

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