]> granicus.if.org Git - postgresql/commit
Allow DML commands that create tables to use parallel query.
authorRobert Haas <rhaas@postgresql.org>
Thu, 5 Oct 2017 15:34:38 +0000 (11:34 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 5 Oct 2017 15:40:48 +0000 (11:40 -0400)
commite9baa5e9fa147e00a2466ab2c40eb99c8a700824
tree1cc453bdc454dedc105339b97a4b3a98389bd2a1
parent4d85c2900b113e331925baf308cc7fc75ac4530b
Allow DML commands that create tables to use parallel query.

Haribabu Kommi, reviewed by Dilip Kumar and Rafia Sabih.  Various
cosmetic changes by me to explain why this appears to be safe but
allowing inserts in parallel mode in general wouldn't be.  Also, I
removed the REFRESH MATERIALIZED VIEW case from Haribabu's patch,
since I'm not convinced that case is OK, and hacked on the
documentation somewhat.

Discussion: http://postgr.es/m/CAJrrPGdo5bak6qnPWe8Kpi8g_jfQEs-G4SYmG9y+OFaw2-dPvA@mail.gmail.com
doc/src/sgml/parallel.sgml
src/backend/access/heap/heapam.c
src/backend/commands/createas.c
src/backend/commands/explain.c
src/backend/executor/execMain.c
src/backend/optimizer/plan/planner.c
src/test/regress/expected/write_parallel.out [new file with mode: 0644]
src/test/regress/parallel_schedule
src/test/regress/serial_schedule
src/test/regress/sql/write_parallel.sql [new file with mode: 0644]