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 1teG19-00CkW7-Ns for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Feb 2025 16:06:48 +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 1teG18-005jw9-5q for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Feb 2025 16:06:46 +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 1teG17-005jw1-Qy for pgsql-hackers@lists.postgresql.org; Sat, 01 Feb 2025 16:06:45 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1teG14-002iyR-39 for pgsql-hackers@lists.postgresql.org; Sat, 01 Feb 2025 16:06:45 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5d4e2aa7ea9so6363317a12.2 for ; Sat, 01 Feb 2025 08:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738426003; x=1739030803; 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=xY9QpKwr5Rd7POGro63OJnDfVIkYcxEJ6smmtNgB1sg=; b=PQTNFmji9cphdH1JUYYEWt81ob1IKenM76Ah1KT4jTTJ8bsLTatJduP3DjG9f6ZdNP gqy9/5HulheqXrJHM+w0xNed2jvM8SpLAVD6yjPfzz/jL9ndj2fVh4X7e83oKsF4Jze6 j9sMut8gl7M2ikscgMvmIooT5WvlK/XmPOkkoNWByS4Tj34QQaqjVV730yI1LiYPD5fo 0xK7M1MZL9hU9iTJ5TkKwscnH1wwjkJPFDsI3KMLQ4uC4a7B6OlrMCy23w9k2YQ1RTHx I56XDgqoeas3FpEZgjKs0pZY22GheKtzgPCfp+CVAOf7qu9eibnezFpl4eV+BIfZB7sa eyzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738426003; x=1739030803; 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=xY9QpKwr5Rd7POGro63OJnDfVIkYcxEJ6smmtNgB1sg=; b=KQULh8EWdtr9YhA4NYfKG1etlXS+VDrKxcHbafhy39pJXzek3BsAwu3lMJqbImQlj6 i9oBqEpDsLU3IvQbZQMHXX/0sLz+6q1Lw8C9g0kqPfZj4Ch7oIH6DlGZGyFYXYWVCCFU lEEf3z/FR7esE7a2z2CJuyCTDTqu9D4dmEU2lj1biR3oe7SmvHpiU63r0eM2x9o2kp0n cdb13YLeTMXva2gMZOph5HbxA0I/Gk3K1ke7ft7A4XS29xuP3m8/3BZB6O0Nvif5YzKL E9yRkn3GjDxYyTty8gMOIoSSZI3mu4SoTDPTljX0OkqyjWi+DdFWVXv4Tv9i6VI6uUMq ryWw== X-Gm-Message-State: AOJu0YxTpC+LlqA6eOtRsfViglUi5CtQ/1oJcMGL4X9ZyG2TBPuOba9v 9EFFx/mFcHSY7vXspYikzlYZj46fMVY+Rsf+LNrAJV+8R3jQ8Ao2TGSX2uv0sTXy6Nm2DgOn3ao dEOaTDHB9LK2aTsXqtBECIAObCzNfNBk1LtQ= X-Gm-Gg: ASbGncvzLyIWKcnYfdKjAF5czWU+GsUjFVaN0bKChxRwyNYuaB8mgM+TCTXcUmbe3yJ gEilC/q25/G0o43ccclAGQp7Nryyuh5v7wXpmopKT+KexKQ6lZ6flKpufJGSO/D5PGdAWPwCoT2 c= X-Google-Smtp-Source: AGHT+IHLEmXPXWpKFc8hbb8n4Zk0XqWDF5S2MMXIq9dV1KUjjkvVJIXkUERzvwqotR4QclpKmXFcDdPj9Bp+XrUImV0= X-Received: by 2002:a17:907:6d0a:b0:aa6:7165:5044 with SMTP id a640c23a62f3a-ab6cfdbdd59mr1587204666b.44.1738426002096; Sat, 01 Feb 2025 08:06:42 -0800 (PST) MIME-Version: 1.0 References: <202501110844.5ztsym4vbflm@alvherre.pgsql> In-Reply-To: From: Srinath Reddy Date: Sat, 1 Feb 2025 21:36:29 +0530 X-Gm-Features: AWEUYZkp-cK0AiyI284WPDxVqb2HskyM5cn0eeIiv4GktHRbo4GGR8uPuL-gT9Q Message-ID: Subject: Re: Non-text mode for pg_dumpall To: Mahendra Singh Thalor , jian.universality@gmail.com Cc: pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000052ca52062d16d86c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000052ca52062d16d86c Content-Type: text/plain; charset="UTF-8" Hi, i think we have to change the pg_dumpall "--help" message similar to pg_dump's specifying that now pg_dumpall dumps cluster into to other non-text formats. Need similar "--help" message change in pg_restore to specify that now pg_restore supports restoring whole cluster from archive created from pg_dumpall. diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 3e022ecdeb..728abe841c 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -667,7 +667,7 @@ main(int argc, char *argv[]) static void help(void) { - printf(_("%s extracts a PostgreSQL database cluster into an SQL script file.\n\n"), progname); + printf(_("%s extracts a PostgreSQL database cluster into an SQL script file or to other formats.\n\n"), progname); diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index fc248a441e..c4e58c1f3b 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -582,6 +582,8 @@ static void usage(const char *progname) { printf(_("%s restores a PostgreSQL database from an archive created by pg_dump.\n\n"), progname); + printf(_("[or]\n")); + printf(_("%s restores a PostgreSQL entire cluster from an archive created by pg_dumpall.\n\n"), progname); Regards, Srinath Reddy Sadipiralla, EDB: https://www.enterprisedb.com --00000000000052ca52062d16d86c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
i think we have to change the pg_dumpall "--he= lp" message similar to pg_dump's specifying that now pg_dumpall du= mps cluster into to other non-text formats.
Need similar "--help&qu= ot; message change in pg_restore to specify that now pg_restore supports re= storing whole=C2=A0cluster from archive created from pg_dumpall.

dif= f --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c
in= dex 3e022ecdeb..728abe841c 100644
--- a/src/bin/pg_dump/pg_dumpall.c
= +++ b/src/bin/pg_dump/pg_dumpall.c
@@ -667,7 +667,7 @@ main(int argc, ch= ar *argv[])
=C2=A0static void
=C2=A0help(void)
=C2=A0{
- printf= (_("%s extracts a PostgreSQL database cluster into an SQL script file.= \n\n"), progname);
+ printf(_("%s extracts a PostgreSQL databa= se cluster into an SQL script file or to other formats.\n\n"), prognam= e);

diff --git a/src/bin/pg_dump/pg_restor= e.c b/src/bin/pg_dump/pg_restore.c
index fc248a441e..c4e58c1f3b 100644--- a/src/bin/pg_dump/pg_restore.c
+++ b/src/bin/pg_dump/pg_restore.c<= br>@@ -582,6 +582,8 @@ static void
=C2=A0usage(const char *progname)
= =C2=A0{
=C2=A0 printf(_("%s restores a PostgreSQL database from an = archive created by pg_dump.\n\n"), progname);
+ printf(_("[or]= \n"));
+ printf(_("%s restores a PostgreSQL entire cluster fro= m an archive created by pg_dumpall.\n\n"), progname); Regards, Srinath Reddy Sadipiralla, EDB:=C2=A0https://www.enterprisedb.com
--00000000000052ca52062d16d86c--