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 1vuRmO-005XtE-1F for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Feb 2026 08:59:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuRmM-00CRw6-2t for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Feb 2026 08:58:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vuRmM-00CRvx-1y for pgsql-hackers@lists.postgresql.org; Mon, 23 Feb 2026 08:58:58 +0000 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vuRmJ-00000000lvt-1YNw for pgsql-hackers@lists.postgresql.org; Mon, 23 Feb 2026 08:58:57 +0000 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-506a93ba42dso46435101cf.1 for ; Mon, 23 Feb 2026 00:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771837136; cv=none; d=google.com; s=arc-20240605; b=WWPOlPF2mP3jnF3u8Udt2VdVTXIF6T7GeWog185FhlcCQ4XDd5KWzNYKI/bHd6o+wh 1oPgxYXrHzLaMEJCQaCzkdiGNFbh4wKh3HMSNtMNKHIrSHDhsyRLqDfU17Bcn2ljT1Yu Cunf3+nAbOdr5rqszOmnvcpC2cOTtJbzM6Yjiw6xSBOGtNwchVPDbp7BUZu38exN26Au 9W1hDuEKlxDCjLqA37mrGcoOzoNhavbL/xLRkUDTxjHtqWhuwztEF6SDjW4t+WrNIyaN lCAAbEup9U24+utlvCic+8yPKd6TqeE69ahaGSreyuflUrrbshDDkrbealnPp3FG3wWX /GJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FOwqjLjMzKE6Wy4IF7OuDOiEU9fPZ/Vy6cMXwKDkCps=; fh=Ocid+E9/3YV4droMvOEqBntoZCZQ5lj9g8BkchgNlKs=; b=Zv/WDwCSxKy4mj4AuapxIrF0y/RzlQ766cUdF0VRb5gXh9P3vrRgnmc3R/97tFxbQa C+02cjKXBoMVMuR7122pTl9JaNhc8jt7gMamOPhLbOXuOIo4t4bW8mz6xzAdpGkIrWCs mhya/0smnx2FX26oFOD8oMHFBmx7Eto++pDHIvH+YKQsj0IfokbqjjpHDGl3+VlcvYhK XP0q1L8br3gjnMNNjYv/NImL4JAU4r/yNcNKUTZ4AxmM69CNHPb4jUw4MzooOIafxuxd kzinMZzLsYMq0gJUyAWHBJ0TJKfjN0zBSVYlzAsXP7iBaA6Yqc2fm3t7nvYdZz05mRbh iFOw==; 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=20230601; t=1771837136; x=1772441936; 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=FOwqjLjMzKE6Wy4IF7OuDOiEU9fPZ/Vy6cMXwKDkCps=; b=ccd3MDop5l64TcSFOtHjQeK0Ft3HKuuOdqI68c3e7FSNbgihACCniKxjHc03wfD+zC AfHD4GCQiqnayFtS/dnW8b+JMhGFNhDC2euYJlrEDuC60f+V4mfy9WEKM+lZmBAFuwnS gIGtgLChfTOrHmQpVnge67yKZtg95EObO4I3AOs/C23+HWyAE7K4H7XJkbIdWvebUiUT jCHLuDJZrweuYBff0KieOgdNwcIHSQH1bflXBcJHckeV2rRQ7ShvAUnpUrNU2ZkRBE8a QFQpJhLLgg0YzLdF5zHgv9UBXmu9kTTm/6LA/ZUvnJyfUW4hoaL10CrLtjPnBHEhObrT 6oCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771837136; x=1772441936; 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=FOwqjLjMzKE6Wy4IF7OuDOiEU9fPZ/Vy6cMXwKDkCps=; b=pM4uEOa5Ky7F0wiwjeyZLMBr0D4CUcx+hBgRRxrb8IEU+/VDe8d2flbx0CyFcXKZJ9 GQZ9Dg8t1bel5NSIAVgQJidbsZqnF2id6b8WIjWm6RxpsLL9R4gXyn4r9Yy3OZvOtwvv g7lUxlSUolMvTMtaRMMOd1WKFkaGXy8ogF2ziE/jW8RAoRcTlsHeWdt8ME+KEB6wFjTc K4hHTgChQjbIw8dlzZkV/6pDPei+R1C2eCBYWdthZ9WEX69G0uu5MNj22ZMe1nuvioSX OiFJXbofIY/Ou5BChlaNN1XAmlFXGJF1ZDNGt9ABE6EM02RaJ8/pBMvGtzsl3D/NwG7M VK8g== X-Forwarded-Encrypted: i=1; AJvYcCX16yn6DKDrQeIOMjFV88cw/6kATzgqOIspGH4m0fCBO0OD1yyLUgTCRfiCBAvt4bDz2VXzXPm+XlTkKz1c@lists.postgresql.org X-Gm-Message-State: AOJu0Yya8ATIMIiERq5l+QHd+Dvk6Ls2eT0kwhuiB8MOYD3UB3RHDsut zplAMYiYnOR1Bj+jjI9WMBY0/HN15Asr/8GpFFDTCrgF5fTsjXozLAfgAydhuof1klEHofi/LIu WHSHCuBHquWP8KTGHCGzlbYxfoJi6RjA= X-Gm-Gg: AZuq6aL/OWs7nronTS/XQ4fZx/ZHtqLv5SBRkm6rkf/z4RwBpTOBJ1rkeZaPQIUFAvn XKR2PC6jphjLIGWwmge1HsXVb2keamCSJFBWRhUI8/BcLL/FKIJqvcmj5x1naswm0ntrz36GrO5 F4zDTFQQkkLIztouQz+ezc4gOyPqc923WCgSYF35/sCpvYyhDyfoDT+3Xl3vb93T2y3E7fp7gPU hEREURbRA9tdoqDEoNFi1V1mHjkPzm3wthVHyphxsOgzo8ZLMMSNo7UUiRTUgxIu47Bhe857fSO 3Kv8CbsVpaa9f9g4WdM= X-Received: by 2002:a05:622a:1ba6:b0:502:9f97:72c3 with SMTP id d75a77b69052e-5070bc68cbfmr111172311cf.43.1771837135699; Mon, 23 Feb 2026 00:58:55 -0800 (PST) MIME-Version: 1.0 References: <3f22a8bb-29e8-40cc-97a1-309181da2c13@dunslane.net> <4022765f-38ee-48a3-b246-615b3f8e1c23@dunslane.net> <59d3616f-6d6d-40d5-87e2-e019e350b52d@dunslane.net> In-Reply-To: From: Mahendra Singh Thalor Date: Mon, 23 Feb 2026 14:28:43 +0530 X-Gm-Features: AaiRm53rNnWZ_hwCKc6foH2F6TwuUDjYOY6nGhuEp_3Y5cLCGRHVowDeNJKxhqI Message-ID: Subject: Re: Non-text mode for pg_dumpall To: jian he Cc: Andrew Dunstan , tushar , Vaibhav Dalvi , pgsql-hackers@lists.postgresql.org 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 On Mon, 23 Feb 2026 at 13:35, jian he wrote: > > On Sun, Feb 22, 2026 at 1:05=E2=80=AFAM Andrew Dunstan wrote: > > > > What about options like these?: > > > > n/--schema > > N/--exclude-schema > > t/--table > > T/--trigger > > I/--index > > P/--function > > -filter > > > > We're not currently doing anything about those, but do they make sense = when restoring a pg_dumpall archive? We can keep these. If we use these options, then all databases will be created(CREATE DATABASE) and based on n/N/t/T options, objects will be restored. Let say customers want to restore tables tb1, tb2, tb5 from the cluster so only these tables will be restored even if they belong to different-different databases. > > > > We should reject these options too, since these options do not make > sense for multiple databases, IMHO. > > > > > pg_restore --clean --format=3Ddirectory will produce DROP DATABASE will > > process global objects, > > it will also produce DROP DATABASE when processing each individual data= base. > > To prevent errors during a subsequent restore, we can require > > pg_restore --clean option must be used together with --if-exists when > > restoring a non-plain-text dump. > > > > We could. Or we could just turn it on (and document that it will be tur= ned on) in this case. I'd rather not force people to use lots of flags. > > > > Turning it on is OK for me. > > The attached patch addresses the two issues described above. > > > -- > jian > https://www.enterprisedb.com/ --=20 Thanks and Regards Mahendra Singh Thalor EnterpriseDB: http://www.enterprisedb.com