Creating Table or Insert into with parallel workers

自闭症网瘾萝莉.ら 提交于 2021-01-28 05:55:35

问题


I'm running some quite large and expensive queries. After reading a bit on parallel queries, I upgraded my postgres database to 10.4 (fromer was 9.5) and am now able to make use of parallel workers.

The queries I normally run make use of either CREATE TABLE AS or INSERT INTO, because I want to run further queries on the computed results. Now it seems that neither of those components is supporting parallel workers.

I got the hint that I can use \o to output the querie result into a file, then insert the file into my database.

Are there any better options than this?

Kind regards

来源:https://stackoverflow.com/questions/50702049/creating-table-or-insert-into-with-parallel-workers

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