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 1vTKOu-00HN2j-2f for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Dec 2025 13:38:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vTKOs-00Bcty-20 for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Dec 2025 13:38: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 1vTKOs-00Bctq-0v for pgsql-hackers@lists.postgresql.org; Wed, 10 Dec 2025 13:38:38 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vTKOp-004Gn0-1r for pgsql-hackers@lists.postgresql.org; Wed, 10 Dec 2025 13:38:37 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-640a0812658so11741594a12.0 for ; Wed, 10 Dec 2025 05:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1765373914; x=1765978714; 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=I39qlElLZDinZMaHzo6Qxk3WEl5OzF+EYLANNMaJv0M=; b=Lkx9O8kb5qVncOGQ4i/MrLwJ8BnIb7xpSvKsgm5ormJdfGCpu3tNyZhbq3vSmbIhhc t5DdzXctoznCOgNYd6CaAw/3ACu6egQ0J9twKUGrYeIkJi+76Pt0bIyHZa54JFAmaYx6 BgjZHSeXmhg6bRK6FKKUIBrwLwvHfeillDNXqed8POFw7hR7I4KGgQRqqWbNr2SdqXjY QheOKIgO7C/jSG4FwGoiP2+6HN16DnkoNUg1NBp6Ojsw4oVGu8XaBbpq0P/L3H3/Vcy6 0V+z9r7y5I6bvsNOW0gy3Am1E/z6uYFnpBEpmerOQRSH3FKR4bwm36bMoREUxw4a/ENi RZCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765373914; x=1765978714; 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=I39qlElLZDinZMaHzo6Qxk3WEl5OzF+EYLANNMaJv0M=; b=i1xhCCoAEfhAXBfo7+azmSl4a6X/t2vtHuV5xOU0FvHl5aHZBOFXQGCfXP8ivxoYtG 93VVFEO66N9lIIsuq1/YsmNWLkHKksLIDlTu/Mj+XQmiDkRwYAzxjjb5DPfqJyU4b77i bQO+u4SVi6QCkA72Xdj4CCbKq2udKFuHCq62TwOu8ga2Vpc25mFc/Gc5vuMYR6aTDQIK 2iSRMBx1hzVpeA1hRleO+z/uUifj22ZuL50G9CAGK+crqO2+quFwgU4NraGliJxRyJNA AHNMUE0YRPi6aQDmhsVAQMGt/bU//3e0rDw+gPLn35EQ+tYi+HvQ71VOxLSBjyQgqGFr FUYw== X-Forwarded-Encrypted: i=1; AJvYcCU+Zj/gSFs40mlmw//F1k8O25bNLDSZH5UcXjXrHQT/wYtyJrpqOfzLT8admocZGhY5MSZ62rD74ZxhKCkF@lists.postgresql.org X-Gm-Message-State: AOJu0Yy9MZ16XJl55u5rb2/Uz0DpAjsHjsg6t+zzK54LJ0BNBzoHohuo b0SMvxv9zWCX6XuXh8gXIA+WmVlvbxRKU+ivrzy8Xz1tKoLEx1yRxh7z1jLHoJqz7/kJf91CbyK 8jiwVSmal2oGDLGjx3rHeVgnK29mJsMnOGDEWe/1e X-Gm-Gg: AY/fxX7eEAJ+6Ovvs5xabtIyCCHTdIekwpgBGXrBangBHh8qMXF6IbK1tifYlkdr0tZ r+vI03SiclJVB/qx73psrhZ0Z+nr6HrwY5HSCSqxq2Ws6lcLfCyWfG64ewFERnx+yNlayrMMIZg vrudNYA9FyybLreddo37D3hhOGNxYT9FtsFePyUbZPvENY4v/XYRZslCl1MIeSGIWN+WrHEbKOz HRyxUcBBmKslYaO+EoXflx8p6e1/M3jlsWFRdNyq8MpBKv2YmI5gruBXqMqW06KzG9MPEeXy2CJ 60zJc0c= X-Google-Smtp-Source: AGHT+IGw1wH5MRtfNdAWlEylw34qpXxWPwGH+TdUH50Mec1exQFVOX4yTil5+C2J2KDN5dG79+iiZB93bC9JKTL/Znk= X-Received: by 2002:a05:6402:51cb:b0:647:8538:fd03 with SMTP id 4fb4d7f45d1cf-6496d5e8c38mr2584142a12.3.1765373913926; Wed, 10 Dec 2025 05:38:33 -0800 (PST) MIME-Version: 1.0 References: <3f22a8bb-29e8-40cc-97a1-309181da2c13@dunslane.net> <2bed001a-462c-42da-9a6b-3c7884502932@dunslane.net> <20250824010811.4d.nmisch@google.com> <82eb35b8-7f07-493b-b689-0934919e1dc3@dunslane.net> <17555e46-4fb2-4265-90e0-95cb8ed584a6@dunslane.net> In-Reply-To: From: tushar Date: Wed, 10 Dec 2025 19:08:21 +0530 X-Gm-Features: AQt7F2pGlHFn398f1Lrzc1U_3VcF0hf4mh2sMN-3AiDuUv-cJgiiYrsPio6HzLk Message-ID: Subject: Re: Non-text mode for pg_dumpall To: Mahendra Singh Thalor Cc: Vaibhav Dalvi , pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000000920640645992564" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000920640645992564 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 9, 2025 at 12:18=E2=80=AFAM Mahendra Singh Thalor wrote: > On Mon, 8 Dec 2025 at 22:39, tushar wrote= : > > Here, I am attaching an updated patch for the review and testing. This > can be applied on commit d0d0ba6cf66c4043501f6f7. > > Thanks, Mahendra, please refer to this scenario where if "--transaction-size" switch is used with pg_dumpall/pg_restore, then the table creation fails (or the table is not created) Steps to reproduce: 1. Connect to the psql terminal, create a table/insert rows { create table t(n int); insert into t values (generate_series(1,15)); } 2. Perform pg_dump operation { ./pg_dumpall -Ft -f tar.dump } 3. new cluster: try to restore with --transaction-size switch { ./pg_restore -Ft tar.dump -C -d postgres --transaction-size=3D10 } =3D Table failed to create I have checked via pg_dump/pg_restore using --transaction-size, and it is working fine, i.e, table is created successfully ./pg_dump -Ft -f tar.d postgres ./pg_restore --transaction-size=3D10 -Ft -d new_database tar.d regards, --0000000000000920640645992564 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Dec 9, = 2025 at 12:18=E2=80=AFAM Mahendra Singh Thalor <mahi6run@gmail.com> wrote:
On Mon, 8 Dec 2025 at 22:39, tushar <tushar.ahu= ja@enterprisedb.com> wrote:

Here, I am attaching an updated patch for the review and testing. This
can be applied on commit d0d0ba6cf66c4043501f6f7.

=
Thanks, Mahendra, please refer to this scenario where =C2=A0= if "--transaction-size" switch =C2=A0is used with pg_dumpall/pg_r= estore, then the table creation fails (or the table is not created)=C2=A0

Steps to rep= roduce:
1. Connect to the psql terminal, create a table/insert rows { c= reate table t(n int); insert into t values (generate_series(1,15)); }
2.= Perform pg_dump operation =C2=A0{ ./pg_dumpall -Ft -f tar.dump }
3. new= cluster:
try to restore with =C2=A0--transaction-size switch { ./pg_res= tore -Ft =C2=A0tar.dump =C2=A0-C -d postgres =C2=A0 --transaction-size=3D10= } =3D =C2=A0Table failed to create=C2=A0

I have checked via pg_dump= /pg_restore using --transaction-size, and it is working fine, i.e, table is= created successfully
=C2=A0
./pg_dump -Ft -f tar.d postgres
./pg_= restore =C2=A0--transaction-size=3D10 -Ft -d new_database =C2=A0tar.d

regards,


--0000000000000920640645992564--