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.96) (envelope-from ) id 1w8k48-000pkG-11 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2026 19:20:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8k47-00DUFO-0F for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2026 19:20:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w8k46-00DUFF-2W for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2026 19:20:23 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w8k44-00000000QJS-1xmk for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2026 19:20:22 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 2D0A53EC8C; Fri, 3 Apr 2026 19:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1775244019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BNzkNOJsOrFAe9jyRh7KdfqGWKY6Fdi/v2jKAtClRBY=; b=efHhQfqux8kXa/3sl7SnViblVVZlqjb5gOGvN3DAYUXhrVImQfO0+QftVBIC3iDnv3oT5X dytK1vBAetp8Bntrw19GryLZ3bfhZv9HNbF7FWgYJRjh1GABrGoTg37fl3pQWZETS/AbHh y0bqsHx8wmQMoqqghq6A5vQz4hdeV2A5N44HfgGgwXOsWb7Dt3gWgrRxmtBgk5fMVbjyCR tdmjmW4IhF8y3/WMJtNCxCcv5dUhhnJxCOftCX5uuw8C0DvvKBmjWH7owybReHYEVqgxC2 c44K7XMs8jyBdkKhn5SC03jgY6e+gSVnWOWBAGozIenuO0QJR1FY994kyGZ38g== Message-ID: Date: Fri, 3 Apr 2026 21:20:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Parallel Bitmap Heap Scan reports per-worker stats in EXPLAIN ANALYZE To: David Rowley , Masahiro.Ikeda@nttdata.com Cc: lena.ribackina@yandex.ru, donghanglin@gmail.com, geidav.pg@gmail.com, melanieplageman@gmail.com, tomas.vondra@enterprisedb.com, dilipbalaut@gmail.com, pgsql-hackers@lists.postgresql.org, hlinnaka@iki.fi References: <13bd913f-94b6-43cf-b849-4d762e5297d8@yandex.ru> Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: tomas@vondra.me X-GND-State: clean X-GND-Score: 0 X-GND-Cause: dmFkZTEGcsBDd+ltUZqO+tQfb/GRsGzR4RXX9AYpNQrn089CSsorJjfHeB15bSLcBfI75bjoR4aznUP+/lEiz0oABA3i0uzfxjOQsQHljWr4e8iXpbb2qyATEVbsV3RCwjpFPZ/LjOJYqKwEbtNWnxwLIXMo2y56TqB2x6crMqCvM6BvKXh0yBfQgsmZqUkVfeS0lKTCcj4XkGs9bjtBnQwNfeO21L4meRA4bwO59XqCyHc+tfvI6p7SO036+IggcmJsi89B16rIoHCRLleO2/jBHfnQoxyObZEYXURoDKflu4uEGKo9CW5dV3s1r5fvlOH4G5rMbPjn9jOnNBAv+jvNxgJwZgfUz6sjj+93Y1JzQF3mwm3USkpsi92squJO4LWbPbUtJgTNLpskwaVWbgFEmgzM0LTPoPZwIECNp1BzwcB8yJxFms2Im+2LR49PwMjPiyWAPria/7oj9en33zsNoEMBn9uG577u7Lj9fR21DdbUKRTwzWBg39IWPCPbuHpXHXvLtdQw0Nvf6+Tg/ijyyzIYjWObkknlKY/R8DXyRdBIoubm8HH6A4Sbp6Tg9G+0THXZf4ll8XBtcPy/lhyARP884Pod3k4sQWgIo1M+posW9m5UTALcd5QTW0MuB28A+tR2OUmkKi4gVNVGaHoaQLsZzRZNpiJh48w1WhdWWAAPdw List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I'm working on adding information about prefetching for scans [1], which includes BitmapHeapScan. I realized the instrumentation added by this thread may not be quite right, resulting in missing instrumentation for non-parallel-aware scans in a parallel query. A better description / explanation of the issue is posted here [2]. I've posted a proposed fix in the following message [3], in a patch: v8-0002-Show-Bitmap-Heap-Scan-stats-for-non-parallel-awar.patch I wonder if someone from this thread could review my analysis, and confirm this is not intentional. I don't see it discussed in the thread, so I assume no one noticed this behavior. I'd also appreciate a review of the proposed fix, or suggestions for alternative fixes. regards [1] https://www.postgresql.org/message-id/a177a6dd-240b-455a-8f25-aca0b1c08c6e%40vondra.me [2] https://www.postgresql.org/message-id/3bdbc70d-ad44-494a-8aab-868b5066fe8b%40vondra.me [3] https://www.postgresql.org/message-id/fce326bb-1210-4d48-8c97-bb3bca396eba%40vondra.me -- Tomas Vondra