Content-Length: 337947 | pFad | http://github.com/postgres/postgres/commit/db0c93f172a41515734a774f0412ff9557eca8ed

FD doc: Mention GIN indexes support parallel builds. · postgres/postgres@db0c93f · GitHub
Skip to content

Commit db0c93f

Browse files
committed
doc: Mention GIN indexes support parallel builds.
Commit 8492feb added support for parallel CREATE INDEX on GIN indexes. However, previously two places in the documentation and two in the source code comments still stated that only B-tree and BRIN indexes support parallel builds. This commit updates those references to correctly include GIN indexes. Author: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Robert Treat <rob@xzilla.net> Discussion: https://postgr.es/m/7d27d068-90e2-4022-9bd7-09b0fd3d4f47@oss.nttdata.com
1 parent b57d707 commit db0c93f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2894,7 +2894,8 @@ include_dir 'conf.d'
28942894
Sets the maximum number of parallel workers that can be
28952895
started by a single utility command. Currently, the parallel
28962896
utility commands that support the use of parallel workers are
2897-
<command>CREATE INDEX</command> when building a B-tree or BRIN index,
2897+
<command>CREATE INDEX</command> when building a B-tree,
2898+
GIN, or BRIN index,
28982899
and <command>VACUUM</command> without <literal>FULL</literal>
28992900
option. Parallel workers are taken from the pool of processes
29002901
established by <xref linkend="guc-max-worker-processes"/>, limited

doc/src/sgml/ref/create_index.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ Indexes:
814814
leveraging multiple CPUs in order to process the table rows faster.
815815
This feature is known as <firstterm>parallel index
816816
build</firstterm>. For index methods that support building indexes
817-
in parallel (currently, B-tree and BRIN),
817+
in parallel (currently, B-tree, GIN, and BRIN),
818818
<varname>maintenance_work_mem</varname> specifies the maximum
819819
amount of memory that can be used by each index build operation as
820820
a whole, regardless of how many worker processes were started.

src/backend/catalog/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3020,7 +3020,7 @@ index_build(Relation heapRelation,
30203020

30213021
/*
30223022
* Determine worker process details for parallel CREATE INDEX. Currently,
3023-
* only btree and BRIN have support for parallel builds.
3023+
* only btree, GIN, and BRIN have support for parallel builds.
30243024
*
30253025
* Note that planner considers parallel safety for us.
30263026
*/

src/backend/optimizer/plan/planner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6879,7 +6879,7 @@ plan_cluster_use_sort(Oid tableOid, Oid indexOid)
68796879
*
68806880
* tableOid is the table on which the index is to be built. indexOid is the
68816881
* OID of an index to be created or reindexed (which must be an index with
6882-
* support for parallel builds - currently btree or BRIN).
6882+
* support for parallel builds - currently btree, GIN, or BRIN).
68836883
*
68846884
* Return value is the number of parallel worker processes to request. It
68856885
* may be unsafe to proceed if this is 0. Note that this does not include the

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgres/postgres/commit/db0c93f172a41515734a774f0412ff9557eca8ed

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy