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 1sPXBu-0055zR-DY for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jul 2024 00:52:46 +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 1sPXBs-004Ru7-DF for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jul 2024 00:52:45 +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.94.2) (envelope-from ) id 1sPXBs-004Rtn-3g for pgsql-hackers@lists.postgresql.org; Fri, 05 Jul 2024 00:52:44 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sPXBr-000TJ1-2O for pgsql-hackers@lists.postgresql.org; Fri, 05 Jul 2024 00:52:44 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52ea16b429dso765116e87.1 for ; Thu, 04 Jul 2024 17:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720140761; x=1720745561; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jCbzjXYg+dG5lURxkqG0FioOM0iHXBYBxLLzB3N0cNc=; b=CYeRbjR+dYwbuVHPkQjKU9gaYsfiXbqQsvUwBW097qYJHN7pTR0cdZEu7Qde2Iw6zI YzZ5Vs1OHsvMSxrHyKfZZJLbiiLip+tcKRmQ13FSoPe3crmx/dhHWlhP+8nETjCAd76U ApEh8MSw0uG6VxxbfxvvAatsS68qcnbqYAkf+MEyjpKpEVgapCctFYjMdKG9fmNI8ipV Q/3N4E2h53CS9V+kHCdNdCoUV/WPTuARKHWe9CzoKfWh6g5sTgKCv8RGiQ1QpgEDS05O ouBVQCV1lSLGdpQhILMecQWZ8MbxyEwxQZIbdt4UV/bIzQUV5Wey1lRO9D/mg4eGkD7Z ZWKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720140761; x=1720745561; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jCbzjXYg+dG5lURxkqG0FioOM0iHXBYBxLLzB3N0cNc=; b=npIOyjDOQmB8qDL3uh1q4SaYYKJb5OF1MsGPv1lfC2Fh61HmdZeBLB4vHilabd2T74 IgDcKNGGMHx+zRsfeXUUIAeWmxKQt5GS5uHZI60WzVHgjgBKEJ6TG2o1tjrHrsPKB3TZ dC42wEx/eUpPQUhmo8Yc9eYx9gUdE51evIHlzoqT5VRNMhrtnuOQgYR5/JkN1awtSEXN /vGcZCcH4Tv26/Ql3BdUAQDX/SsvAHuekRpaRkt4LsXOzBj4jDkYvImVZvf//bIPtcxs OR50g2nqnE+qd7p1XMvreWglIj73qbjBwNAUyd4H9hS3irQ9X+HWq2x8jPFLy6w6SoB/ V0gA== X-Forwarded-Encrypted: i=1; AJvYcCW8rNlidxh5Gd8SVUEKQE/AeGq2tZT3A+AuGT/vxeI5ya9xlnG5b+32ocxaOr79jOdC6uEM+nVMD/bDrYh5kV+br2AYwnwPXWsrPFp+qqMp/D4b X-Gm-Message-State: AOJu0YzBlxUfJOnBohk4Bepjz7pkg5aP6nVVYK6ySDVlQWwMLkuYY6YQ twqAg5jM49idoJ7ymKJiQX8q0yUwo8kV6wmgJ8/H5yKZ6zJ56NuUY5W4OpSxRpUByMq5Z/Qqsvq sasuI9b6isTwm3Uh0QpdWvU/XBBY= X-Google-Smtp-Source: AGHT+IFo1zKE2tdK19VFq3crHKsvlVDkWBCnvmFUqWr8TEvrzttHP+xbKwORCe4lo6htl6IIOXuuMVyWv+qdpon3TJg= X-Received: by 2002:a05:6512:516:b0:52c:dae5:6510 with SMTP id 2adb3069b0e04-52ea0e4f5bcmr858942e87.28.1720140760511; Thu, 04 Jul 2024 17:52:40 -0700 (PDT) MIME-Version: 1.0 References: <13bd913f-94b6-43cf-b849-4d762e5297d8@yandex.ru> In-Reply-To: From: David Rowley Date: Fri, 5 Jul 2024 12:52:28 +1200 Message-ID: Subject: Re: Parallel Bitmap Heap Scan reports per-worker stats in EXPLAIN ANALYZE To: 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 Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 5 Jul 2024 at 01:59, David Rowley wrote: > I also made a pass over the patch, and I also changed: > > 1. Fixed up a few outdated comments in execnodes.h. > 2. Added a comment in ExecEndBitmapHeapScan() to explain why we += the > stats rather than memcpy the BitmapHeapScanInstrumentation. > 3. A bunch of other comments. > 4. updated typedefs.list and ran pgindent. One other thing I think we should do while on this topic is move away from using "long" as a data type for storing the number of exact and lossy pages. The problem is that sizeof(long) on 64-bit MSVC is 32 bits. A signed 32-bit type isn't large enough to store anything more than 16TBs worth of 8k pages. I propose we change these to uint64 while causing churn in this area, probably as a follow-on patch. I think a uint32 isn't wide enough as you could exceed the limit with rescans. David