Dynamic table partitioning in postgres

空扰寡人 提交于 2019-12-23 09:27:04

问题


I was looking up ways to have postgres partition data into tables based on timestamp for example, but without having to add the relevant child tables manually. I saw this blog post that does just that

https://blog.engineyard.com/2013/scaling-postgresql-performance-table-partitioning

but I'm dubious about the idea of creating tables based on string concatenation and checking the pg_catalog. Is this a reasonable idea?


回答1:


pg_partman is an extension created specifically to manage the complexity of partition management. I haven't used this extension, but I've used others by the same author and they are generally of excellent quality.



来源:https://stackoverflow.com/questions/17734610/dynamic-table-partitioning-in-postgres

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