postgresql/src/backend/commands
Robert Haas 4212cb7326 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.
2016-12-06 11:11:54 -05:00
..
Makefile Support CREATE ACCESS METHOD 2016-03-23 23:01:35 -03:00
aggregatecmds.c Remove some unnecessary #includes. 2016-10-10 12:22:58 +03:00
alter.c Remove dead line of code 2016-09-28 12:00:00 -04:00
amcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
analyze.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
async.c Fix several mistakes around parallel workers and client_encoding. 2016-06-30 18:35:32 -04:00
cluster.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
collationcmds.c Remove some unnecessary #includes. 2016-10-10 12:22:58 +03:00
comment.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
constraint.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
conversioncmds.c Remove some unnecessary #includes. 2016-10-10 12:22:58 +03:00
copy.c Permit dump/reload of not-too-large >1GB tuples 2016-12-02 00:34:01 -03:00
createas.c Fix CREATE MATVIEW/CREATE TABLE AS ... WITH NO DATA to not plan the query. 2016-06-27 15:57:50 -04:00
dbcommands.c Be pickier about converting between Name and Datum. 2016-09-13 17:17:48 -04:00
define.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
discard.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
dropcmds.c Fix DROP ACCESS METHOD IF EXISTS. 2016-05-27 11:03:18 -04:00
event_trigger.c Fix typo. 2016-11-08 15:33:57 -05:00
explain.c Fix EXPLAIN so that it doesn't emit invalid XML in corner cases. 2016-10-20 17:17:50 -04:00
extension.c Allow CREATE EXTENSION to follow extension update paths. 2016-09-11 14:15:07 -04:00
foreigncmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
functioncmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
indexcmds.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
lockcmds.c Remove some unnecessary #includes. 2016-10-10 12:22:58 +03:00
matview.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
opclasscmds.c Add SQL-accessible functions for inspecting index AM properties. 2016-08-13 18:31:14 -04:00
operatorcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
policy.c Add support for restrictive RLS policies 2016-12-05 15:50:55 -05:00
portalcmds.c Fix TOAST access failure in RETURNING queries. 2016-08-07 17:46:08 -04:00
prepare.c Fix interaction of parallel query with prepared statements. 2016-12-06 11:11:54 -05:00
proclang.c Be pickier about converting between Name and Datum. 2016-09-13 17:17:48 -04:00
schemacmds.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
seclabel.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sequence.c Add pg_sequences view 2016-11-18 14:59:03 -05:00
tablecmds.c Check for pending trigger events on far end when dropping an FK constraint. 2016-11-25 13:44:47 -05:00
tablespace.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
trigger.c Implement syntax for transition tables in AFTER triggers. 2016-11-04 10:49:50 -05:00
tsearchcmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
typecmds.c Be pickier about converting between Name and Datum. 2016-09-13 17:17:48 -04:00
user.c Turn password_encryption GUC into an enum. 2016-09-28 12:22:44 +03:00
vacuum.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
vacuumlazy.c Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL 2016-09-06 15:35:47 +01:00
variable.c Final pgindent + perltidy run for 9.6. 2016-08-15 13:42:51 -04:00
view.c Add location field to DefElem 2016-09-06 12:00:00 -04:00