diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2024-12-17 15:40:07 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2024-12-17 15:40:07 +0100 |
commit | 8cd44db42a40056a701a4ae03d73bf2cd05781b1 (patch) | |
tree | 35d1738d395ecf801877e62379d744dc8910295d /src | |
parent | fb1a18810f07fc3b722392103d67ce8ed188b63d (diff) | |
download | postgresql-8cd44db42a40056a701a4ae03d73bf2cd05781b1.tar.gz postgresql-8cd44db42a40056a701a4ae03d73bf2cd05781b1.zip |
Update comments about index parallel builds
Commit b43757171470 allowed parallel builds for BRIN, but left behind
two comments claiming only btree indexes support parallel builds.
Reported by Egor Rogov, along with similar issues in SGML docs.
Backpatch to 17, where parallel builds for BRIN were introduced.
Reported-by: Egor Rogov
Backpatch-through: 17
Discussion: https://postgr.es/m/114e2d5d-125e-07d8-94aa-5ad175fb7443@postgrespro.ru
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/index.c | 2 | ||||
-rw-r--r-- | src/backend/optimizer/plan/planner.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 1c3a9e06d37..05dc6add7eb 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -2989,7 +2989,7 @@ index_build(Relation heapRelation, /* * Determine worker process details for parallel CREATE INDEX. Currently, - * only btree has support for parallel builds. + * only btree and BRIN have support for parallel builds. * * Note that planner considers parallel safety for us. */ diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c index a0a2de7ee4b..f3856c519f6 100644 --- a/src/backend/optimizer/plan/planner.c +++ b/src/backend/optimizer/plan/planner.c @@ -6758,7 +6758,8 @@ plan_cluster_use_sort(Oid tableOid, Oid indexOid) * CREATE INDEX should request for use * * tableOid is the table on which the index is to be built. indexOid is the - * OID of an index to be created or reindexed (which must be a btree index). + * OID of an index to be created or reindexed (which must be an index with + * support for parallel builds - currently btree or BRIN). * * Return value is the number of parallel worker processes to request. It * may be unsafe to proceed if this is 0. Note that this does not include the |