pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix interaction of parallel query with prepared statements. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix interaction of parallel query with prepared statements. @ 2016-12-06 16:46 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2016-12-06 16:46 UTC (permalink / raw) To: pgsql-committers Fix interaction of parallel query with prepared statements. Previously, a prepared statement created via a Parse message could get a parallel plan, but one created with a PREPARE statement could not. This state of affairs was due to confusion on my (rhaas) part: I erroneously believed that a CREATE TABLE .. AS EXECUTE statement could only be performed with a prepared statement by PREPARE, but in fact one created by a Prepare message works just as well. Therefore, it makes no sense to allow parallel query in one case but not the other. To fix, allow parallel query with all prepared statements, but run the parallel plan serially (i.e. without workers) in the case of CREATE TABLE .. AS EXECUTE. Also, document this. Amit Kapila and Tobias Bussman, plus an extra sentence of documentation by me. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/4212cb73262bbdd164727beffa4c4744b4ead92d Modified Files -------------- doc/src/sgml/parallel.sgml | 9 +++++++++ src/backend/commands/prepare.c | 2 +- src/backend/executor/execMain.c | 7 ++++--- 3 files changed, 14 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix interaction of parallel query with prepared statements. @ 2016-12-06 16:46 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2016-12-06 16:46 UTC (permalink / raw) To: pgsql-committers Fix interaction of parallel query with prepared statements. Previously, a prepared statement created via a Parse message could get a parallel plan, but one created with a PREPARE statement could not. This state of affairs was due to confusion on my (rhaas) part: I erroneously believed that a CREATE TABLE .. AS EXECUTE statement could only be performed with a prepared statement by PREPARE, but in fact one created by a Prepare message works just as well. Therefore, it makes no sense to allow parallel query in one case but not the other. To fix, allow parallel query with all prepared statements, but run the parallel plan serially (i.e. without workers) in the case of CREATE TABLE .. AS EXECUTE. Also, document this. Amit Kapila and Tobias Bussman, plus an extra sentence of documentation by me. Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ebe5dc9e02a6464713bd48e266eee48351d23062 Modified Files -------------- doc/src/sgml/parallel.sgml | 9 +++++++++ src/backend/commands/prepare.c | 2 +- src/backend/executor/execMain.c | 7 ++++--- 3 files changed, 14 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-12-06 16:46 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-12-06 16:46 pgsql: Fix interaction of parallel query with prepared statements. Robert Haas <rhaas@postgresql.org> 2016-12-06 16:46 pgsql: Fix interaction of parallel query with prepared statements. Robert Haas <rhaas@postgresql.org>
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