postgresql/src/backend/access/common
Amit Kapila c8f78b6161 Add a new GUC and a reloption to enable inserts in parallel-mode.
Commit 05c8482f7f added the implementation of parallel SELECT for
"INSERT INTO ... SELECT ..." which may incur non-negligible overhead in
the additional parallel-safety checks that it performs, even when, in the
end, those checks determine that parallelism can't be used. This is
normally only ever a problem in the case of when the target table has a
large number of partitions.

A new GUC option "enable_parallel_insert" is added, to allow insert in
parallel-mode. The default is on.

In addition to the GUC option, the user may want a mechanism to allow
inserts in parallel-mode with finer granularity at table level. The new
table option "parallel_insert_enabled" allows this. The default is true.

Author: "Hou, Zhijie"
Reviewed-by: Greg Nancarrow, Amit Langote, Takayuki Tsunakawa, Amit Kapila
Discussion: https://postgr.es/m/CAA4eK1K-cW7svLC2D7DHoGHxdAdg3P37BLgebqBOC2ZLc9a6QQ%40mail.gmail.com
Discussion: https://postgr.es/m/CAJcOf-cXnB5cnMKqWEp2E2z7Mvcd04iLVmV=qpFJrR3AcrTS3g@mail.gmail.com
2021-03-18 07:25:27 +05:30
..
Makefile Move syncscan.c to src/backend/access/common. 2020-07-29 16:59:33 +12:00
attmap.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
bufmask.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
detoast.c Fix integer-overflow corner cases in substring() functions. 2021-01-04 18:32:44 -05:00
heaptuple.c Fix some typos, grammar and style in docs and comments 2021-02-24 16:13:17 +09:00
indextuple.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
printsimple.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
printtup.c Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
relation.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
reloptions.c Add a new GUC and a reloption to enable inserts in parallel-mode. 2021-03-18 07:25:27 +05:30
scankey.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
session.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
syncscan.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
toast_internals.c Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
tupconvert.c Fix permission checks on constraint violation errors on partitions. 2021-02-08 11:01:51 +02:00
tupdesc.c Update copyright for 2021 2021-01-02 13:06:25 -05:00