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 1vJAS1-00D7T9-2t for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Nov 2025 12:59:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJARz-00BUZQ-1q for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Nov 2025 12:59:51 +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 1vJARz-00BUZH-0s for pgsql-hackers@lists.postgresql.org; Wed, 12 Nov 2025 12:59:51 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vJARx-007LPi-0U for pgsql-hackers@lists.postgresql.org; Wed, 12 Nov 2025 12:59:51 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-42b3c5defb2so510671f8f.2 for ; Wed, 12 Nov 2025 04:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762952386; x=1763557186; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2BNmYf2XKEup3Or0sG/sXrNkJbgZ04cuTzAuyaRMQnM=; b=NdwGHgOs81FKAE7g+zGjSwOOQRCU5qI57NSX8K5UT45kZ+WB9YOm4XjDmfS+ThrSwF cB1VRJk/tSCzKbmQGs+z6ASfT8hWagHHc8WOUdacGg2SXocueRIwYd2dagvTxFu8jwMk 0tLfxXqoqYg6fgTPVAfEViCN5115MDUxfrtGXSu1fC3cRWNHVNhMmohQWmbBdGrXfCB9 rKgwCxAV1irfpEhhJ8AsVqHOXJiLPtFAebvkcqcXgVOzCOWkTP4atiir1M7FC1Tf1khf wfn33oDHGKSkgnWwWs4bDg6PWTWqBHwpHUXSmIpIXkh337rOWDog9lhMbDypPUh+oj/O RcxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762952386; x=1763557186; h=content-transfer-encoding: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=2BNmYf2XKEup3Or0sG/sXrNkJbgZ04cuTzAuyaRMQnM=; b=Vl0BWajnVsT+teBYxvGTRtHLZIVL7r13nUp8BwPJzUpVUVYsfIEsgyaBbRZiE5dqgh p1OjgGah5NF4zzWMY+o/3Uv8wsNd2MCRCUOxxcg/JVFwppnCZB9IwqH99kO2Q5NH6ygv Z39JNthnpgUnUquH1tOGPHZunGgJD7hvZ3rGE/uJ7WJ1k3SfR4f3TK/BNMgYlw6tvF+L UNRzbgd6IEvFbEIp8Wht8LKjJB2TDTV8kbP4L949BcbxFnOt/P0PnRbZuZW3O8Oc/r/L BIGfepo1DCR7oNNuA1fZGKiJVfyjFCjsuhMX7phV0EtSgfU0bD/XTBgXsfvfGPe7AuON 1MJA== X-Gm-Message-State: AOJu0Yw7+yPCHzprLAPrZbc1jQzUpmxyR+1e42sX7zXt3oH3uBQBRNN2 POmW8KOGzG7H5+b6wdRIoq5KnxKmI4OaeMk54cIupeO4J0vPW6GVNhBWI8TCFI9cqfWxxEdR+mk VXWb3T458S4/tVNJjDtUjiS/HdBczG6c= X-Gm-Gg: ASbGnctNhictP8H8pYG2asJb6RdzDbOZWFSGkZMMqqHFFWMizsGmkHVvUXH9Pk3jsNA BrC9dmGdaDs5NnLacn6oY6QS3Gxis5gDjQN5toFJK1Y8q+FJYEffU6PTlTzsOCHgAXIEpHXT4cB 82cowK1O6KwEuZqnQBo7dWk+iBnvEWccycVvnCtuoYb8cNvkacZVQkvmRene7rr6lH0Ru94EJFT PJOfveDGr35EOeMxXLYFIZmC47Vnzv8XcpiJLqUyzp2R9W6oAaZkEu0SKVBKXE= X-Google-Smtp-Source: AGHT+IEzF8thMrDXmJZ9o7psKBgyPdKjgwragJUiusa2wqZLZdK+TPbk4bser5UcvkG1gfEM/uhEMY/jg+hsG7XIOqY= X-Received: by 2002:a05:6000:26d2:b0:429:d33e:def1 with SMTP id ffacd0b85a97d-42b4bd9b91amr2792395f8f.29.1762952386098; Wed, 12 Nov 2025 04:59:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ashutosh Bapat Date: Wed, 12 Nov 2025 18:29:33 +0530 X-Gm-Features: AWmQ_blyaRVw_f3vWXUITrSPx0GBso6veikz6WiV3-jQlcXR78qQwu4Fjqw-n64 Message-ID: Subject: Re: Patch: dumping tables data in multiple chunks in pg_dump To: Hannu Krosing Cc: PostgreSQL Hackers , Nathan Bossart Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Hannu, On Tue, Nov 11, 2025 at 9:00=E2=80=AFPM Hannu Krosing w= rote: > > Attached is a patch that adds the ability to dump table data in multiple = chunks. > > Looking for feedback at this point: > 1) what have I missed > 2) should I implement something to avoid single-page chunks > > The flag --huge-table-chunk-pages which tells the directory format > dump to dump tables where the main fork has more pages than this in > multiple chunks of given number of pages, > > The main use case is speeding up parallel dumps in case of one or a > small number of HUGE tables so parts of these can be dumped in > parallel. Have you measured speed up? Can you please share the numbers? --=20 Best Wishes, Ashutosh Bapat