Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCaeo-0074je-1S for pgsql-docs@arkaria.postgresql.org; Sun, 17 Nov 2024 08:29:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tCadl-00H6WB-7B for pgsql-docs@arkaria.postgresql.org; Sun, 17 Nov 2024 08:28:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCadk-00H6W2-Mm for pgsql-docs@lists.postgresql.org; Sun, 17 Nov 2024 08:28:17 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCadh-002KQa-Qx for pgsql-docs@lists.postgresql.org; Sun, 17 Nov 2024 08:28:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1731832089; bh=FzgI2J5ceKRsaMNnl14JeGTog9O043XNgcSCzjDEHT8=; h=Message-ID:Date:User-Agent:Subject:To:References:From:In-Reply-To: From; b=PXvBZa1E4dUrGHkMzFIDRbzGwM9hF6/K6UJy23SHyCKHvtBxuylbjC/8tW+ewkN9p Uf+MhelSecRKNelp2RdI7N6tff262uQrPEEIHvYZP0NbJZoUt/W505ppA/VW4LJuXA KF7RlX3pnCNhK52KrhJ6wHkzjh0t73zxcKsM74CbDXqfODCfyk7FMBs4dIEumQ0GFd cEBa93U9X+Wl70AhE3vQdvYQIJGzDYjdcJo1x2f2vmByILcAnj1JHg9+4lFKYVauJ4 58bGMN/jkn8oWX9d7bQ737Pu9bLGL6fR3H1kjCHzUDK8GDEwb0L9pkTZsPCXv3v/JW fFGVZccXovFfQ== Received: from [172.30.32.190] (unknown [172.30.32.190]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: e.rogov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id B670360357 for ; Sun, 17 Nov 2024 11:28:09 +0300 (MSK) Message-ID: <009f4101-29a2-850e-6767-72a9104ec89a@postgrespro.ru> Date: Sun, 17 Nov 2024 11:28:07 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Parallel index build for BRIN Content-Language: en-US To: pgsql-docs@lists.postgresql.org References: <114e2d5d-125e-07d8-94aa-5ad175fb7443@postgrespro.ru> From: Egor Rogov In-Reply-To: <114e2d5d-125e-07d8-94aa-5ad175fb7443@postgrespro.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-KSMG-AntiPhishing: NotDetected X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2024/11/17 04:03:00 #26875252 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi everyone, Thisthread doesn'tseem to have attractedattention, so let me try again. Two documentation pages claim that B-tree is the only access method that supports parallel building, which is no longer true. I propose to fix it in a way like this: diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index d54f9049569..b5b1580dee7 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -2835,7 +2835,7 @@ include_dir 'conf.d'           Sets the maximum number of parallel workers that can be           started by a single utility command.  Currently, the parallel           utility commands that support the use of parallel workers are -         CREATE INDEX only when building a B-tree index, +         CREATE INDEX when building a B-tree or BRIN index,           and VACUUM without FULL           option.  Parallel workers are taken from the pool of processes           established by , limited diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml index 621bc0e253c..208389e8006 100644 --- a/doc/src/sgml/ref/create_index.sgml +++ b/doc/src/sgml/ref/create_index.sgml @@ -808,7 +808,7 @@ Indexes:     leveraging multiple CPUs in order to process the table rows faster.     This feature is known as parallel index     build.  For index methods that support building indexes -   in parallel (currently, only B-tree), +   in parallel (currently, B-tree and BRIN),     maintenance_work_mem specifies the maximum     amount of memory that can be used by each index build operation as     a whole, regardless of how many worker processes were started. Thanks, Egor On 05.11.2024 12:12, Egor Rogov wrote: > Hi, > > Commit b4375717 introduced parallel CREATE INDEX for BRIN. I've > noticed that a couple of documentation pages need to be updated > accordingly. A small patch is attached. > > Thanks, > Egor