pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow DML commands that create tables to use parallel query.
Date: Thu, 05 Oct 2017 15:43:48 +0000
Message-ID: <E1e08JQ-000521-HD@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e9baa5e9fa147e00a2466ab2c40eb99c8a700824

Modified Files
--------------
doc/src/sgml/parallel.sgml                   | 16 ++----
src/backend/access/heap/heapam.c             | 16 +++---
src/backend/commands/createas.c              |  4 +-
src/backend/commands/explain.c               |  4 +-
src/backend/executor/execMain.c              |  6 +--
src/backend/optimizer/plan/planner.c         | 10 ++++
src/test/regress/expected/write_parallel.out | 79 ++++++++++++++++++++++++++++
src/test/regress/parallel_schedule           |  1 +
src/test/regress/serial_schedule             |  1 +
src/test/regress/sql/write_parallel.sql      | 42 +++++++++++++++
10 files changed, 151 insertions(+), 28 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1e08JQ-000521-HD@gemulon.postgresql.org>
Permalink:  ../E1e08JQ-000521-HD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1e08JQ-000521-HD@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Allow DML commands that create tables to use parallel query.
  In-Reply-To: <E1e08JQ-000521-HD@gemulon.postgresql.org>
  References: <E1e08JQ-000521-HD@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox