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 1wLcey-001uOf-0O for pgsql-hackers@arkaria.postgresql.org; Sat, 09 May 2026 08:03:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wLcew-00Cih9-00 for pgsql-hackers@arkaria.postgresql.org; Sat, 09 May 2026 08:03:38 +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 1wLcev-00Cih0-28 for pgsql-hackers@lists.postgresql.org; Sat, 09 May 2026 08:03:37 +0000 Received: from mail-dl1-x1243.google.com ([2607:f8b0:4864:20::1243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wLcet-00000001Mtz-1y2u for pgsql-hackers@lists.postgresql.org; Sat, 09 May 2026 08:03:37 +0000 Received: by mail-dl1-x1243.google.com with SMTP id a92af1059eb24-12c19d23b19so4852770c88.0 for ; Sat, 09 May 2026 01:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778313812; cv=none; d=google.com; s=arc-20240605; b=LGB6ZEIXMhF0y0MqpG0GvqXXs8AB26KdHLoN7xTkQsV02B5TutW/jhmfHhp+6B1U6u fTU7wxu3VXh0oxE32sZDdZx5ZjVHi0lc6172q1v3ukVirxJ+UuLqW5Dqz1ysN2+aunDh hbyFpEZDopFnvIKZ/DU+9YHdj2NGau72yWPPfB8HExvxHU9RFSl+vTldxPybWySEnW07 I8VkosJUFI7tnWHao035bcoBdqGeBBTh+7ZpHhsFYViR8tDNgiwdof4ItVg9g97Zwdg9 1Y9dtFcAtTBgW8k2pU4QQD3kHWm9ROCNZ8GKG4+ZZnTud1bajc1QkdJrIpqZE97ep5rI gWaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=zBjtV3ZWEMF0lVEbAfq/Pk50K4qKFB1MEN0OaE04ayg=; fh=/HZlSbIkNHlA3NEAVt1+gMbJ2lIfxAchNf8l5BMwIZQ=; b=OtFHKM2e4YLEx6Ga1QxpACHSHT9YQ6EMha7I+IiHUaSraAYHCz9nNIKkBqvNPjWPH/ w/7V7zuWJYeb41WUDxBqg0kGv3wmkCbODyoKj/TCK8+OqeCaj6V/qWLP4f4FC2CEzs0x hgzmXSibluY9TAGjuSb2qlyHLjpbHWvmRFTkj3VThkpaovH4j38RoJUIRdmiDj1bJQs2 SFF2g3tBgBqf5me4d4MH0vasTH5eZ+U+roL3vohoE3bHJD9NsBJ1JZUPwJv2LLfBdGgO dsaK11ZJ2Y9cD7XHuWTm1Iz8ZFztVdXbOgy0+Wy1N++pKRlDOtpVuvTCClL9ARbr6CJV uoOg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778313812; x=1778918612; 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=zBjtV3ZWEMF0lVEbAfq/Pk50K4qKFB1MEN0OaE04ayg=; b=Ewax3L0JrEXi4T8GB4aEVfkHsyp3GmdAkoOHbEVv3QL7CmO51J8tIRadvJQVpbxdaj pHa/b8kq1KhPVemclnltzJGh+oeoOHhlFnHy6RAWMuoKoE+6koJmE4YMGVwMeW3VprZi dCug4pF9XVTMZ+le9Zipf351iREm2Df9WgT2rjDSf8IY/dmpnMwV6iQtHDcFSp/rG8rC W8PLjPJgHzPCa063eziyXsc60pMkzgVI4zXzEW3KICtPSF85HdzRKnNzr0GhHM171TM+ 6upK3WPk6YTCiy6EdmAWdw7AYw7Q09DTQkumdc3aW6vX2WGpATypn4Db+7fmc0xVZI26 c/qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778313812; x=1778918612; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zBjtV3ZWEMF0lVEbAfq/Pk50K4qKFB1MEN0OaE04ayg=; b=gmy7IO+/1z/2ISuM4bpGB+wg5OihwEhjAAqEMnNKn8fFTRKZktJCpu61BM1TTLMmH0 LoKOX8VxIjJOJ8z5NV7oLDVPgEvOXncsIIZw/glRiCNa/7h2QPadKVjW0nID7yqwKopn VORoVxVRBBQgVzDs2r2Wms+VYttiE5HLmIdGBWgzu2WtoSby9oFqatLjKGhnrxFt+/Bg 0GsRSIQp8+thX4blTcyqtHlUYmWEO0f3VOzzqc/dkt1NENrKqYSnS36M5sMkUITrT+Jk GrvQ8+LJ7II65Rc7F6vdijr2h0+b3YntFG1j//LxFcOMwDXzttd9paOmFj5GbmFmKNdE QSGg== X-Forwarded-Encrypted: i=1; AFNElJ96Zg9MypljBXj73D1dlaJ3KuRnxZNm7oUuiy+VbHngcTi0+GXhKVqqStVQMAU1zRuaIKqSOpUtiAx/C7LO@lists.postgresql.org X-Gm-Message-State: AOJu0YyNcrzocJWfHypT7/mnfSsikUYK8nyAXpzNSZNG4gnbScqe8EJW kWpuK7cZd4iArcEmi/C73uc/JsL5YuXPQNFsT4J8nQ0GDulcN/T4vEJr1NFOc1+uv7hoF0fj2DG J08cvTijPq6uOciyrLwmD6P1bcb29jEg= X-Gm-Gg: Acq92OH1UagYfwzOOmfhr05CjYlzXuny+thp6+Bn9BaVh2gGwSe7+L+izEYLeIZjFVI 9y/+GAu4HmpFCNvhvPzttCMvOte25jtS+l0jc96HFHqWut671IVi+5VmO/Z0Qq6dA1mEJcENKbi +yd68+YLMOG6Y7Ms36eLBMeB8k/My3zD1chYmgso05B9h8+j0pe2ND+YxaePCq3tHaQRBtQOAWp hscYiMAOrz1tIx23DTBMslj0EOpW1xjEwHqUMKLq1KUzC7DbVwxlDNz0075vW3Wgib673PzaAQW fSAr8Q== X-Received: by 2002:a05:7301:1018:b0:2ea:ed70:3ea8 with SMTP id 5a478bee46e88-2f54e3802ddmr7674731eec.29.1778313812316; Sat, 09 May 2026 01:03:32 -0700 (PDT) MIME-Version: 1.0 References: <4c1d0b97-a5f8-472c-afdd-bdeb09b93f33@gmail.com> <10868918-cdf9-49dc-99af-8e8ccd6e368c@gmail.com> <4eca7d9b-c611-4f1e-8eaf-67724484e3bc@gmail.com> In-Reply-To: <4eca7d9b-c611-4f1e-8eaf-67724484e3bc@gmail.com> From: lakshmi Date: Sat, 9 May 2026 13:32:44 +0530 X-Gm-Features: AVHnY4JEUXqJ9TjP2jc99CZpV2uH-31kNo0GOzSTGYPX6wEzrZV-0qIzh5OU8ZI Message-ID: Subject: Re: parallel data loading for pgbench -i To: Mircea Cadariu Cc: "Hayato Kuroda (Fujitsu)" , PostgreSQL Hackers , "tomas@vondra.me" , Heikki Linnakangas Content-Type: multipart/alternative; boundary="00000000000015176706515df3e5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000015176706515df3e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 8, 2026 at 11:41=E2=80=AFPM Mircea Cadariu wrote: > Hi Lakshmi and Hayato, > > > Thanks a lot for your feedback. > > Attached for your consideration is v4, in which I address your remarks. > Hi Mircea, Hayato, I tested the v4 patch on 19devel with a few different thread/partition combinations. The updated API looks much better now. I verified that: - parallel loading works correctly with -j - uneven partition distribution (for example 5 partitions with 2 threads) also works fine - serial mode with -j 1 works again as expected The workers appear to run concurrently, and VACUUM time remains relatively small in my tests. Overall, the new approach looks much cleaner and more flexible compared to the earlier versions. Thanks again for the update. Best regards, Lakshmi --00000000000015176706515df3e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, May 8, = 2026 at 11:41=E2=80=AFPM Mircea Cadariu <cadariu.mircea@gmail.com> wrote:
Hi Lakshmi and Hayato,


Thanks a lot for your feedback.

Attached for your consideration is v4, in which I address your remarks.
=

Hi Mircea, Hayato,

I tested the v4 patch on 19devel with a few diffe= rent thread/partition combinations.

The= updated API looks much better now. I verified that:

  • parallel lo= ading works correctly with -j
  • uneven parti= tion distribution (for example 5 partitions with 2 threads) also works fine=
  • serial mode with -j 1 works again as expe= cted

The workers appear to run co= ncurrently, and VACUUM time remains relatively small in my tests.

Overall, the new approach looks much cleaner and= more flexible compared to the earlier versions.

Thanks again for the update.

Best regards,

Laks= hmi=C2=A0
--00000000000015176706515df3e5--