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 1uPgvU-00DbDA-JI for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jun 2025 12:21:00 +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 1uPgvS-00ByrZ-BM for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Jun 2025 12:20:58 +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 1uPgvS-00ByrR-2r for pgsql-bugs@lists.postgresql.org; Thu, 12 Jun 2025 12:20:58 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uPgvP-001dRD-2I for pgsql-bugs@lists.postgresql.org; Thu, 12 Jun 2025 12:20:58 +0000 Received: from [192.168.11.9] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id 81C88609D7; Thu, 12 Jun 2025 21:20:48 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <931f4e0a-5d1e-4ea6-86cf-807e8cd7c8e7@oss.nttdata.com> Date: Thu, 12 Jun 2025 21:20:47 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #18952: pg_restore --help and document have strange description: Dump something Content-Language: en-US To: TAKATSUKA Haruka Cc: pgsql-bugs@lists.postgresql.org References: <18952-be40a620f8b1e755@postgresql.org> <20250611113807.d85d1f0abf413d49fb7c6398@sraoss.co.jp> From: Fujii Masao In-Reply-To: <20250611113807.d85d1f0abf413d49fb7c6398@sraoss.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/06/11 11:38, TAKATSUKA Haruka wrote: > On Wed, 11 Jun 2025 10:04:24 +0900 > Fujii Masao wrote: > >> On 2025/06/10 16:35, PG Bug reporting form wrote: >>> The following bug has been logged on the website: >>> >>> Bug reference: 18952 >>> Logged by: TAKATSUKA Haruka >>> Email address: harukat@sraoss.co.jp >>> PostgreSQL version: 18beta1 >>> Operating system: any >>> Description: >>> >>> pg_restore --help has strange description like "Dump .....": >>> [dbhost]$ LANG=C pg_restore --help >>> pg_restore restores PostgreSQL databases from archives created by pg_dump or >>> pg_dumpall. >>> Usage: >>> pg_restore [OPTION]... [FILE] >>> (snip) >>> --with-data dump the data >>> --with-schema dump the schema >>> --with-statistics dump the statistics >>> Connection options: >>> -h, --host=HOSTNAME database server host or socket directory >>> (snip) >>> https://www.postgresql.org/docs/18/app-pgrestore.html also have the >>> following description. >>> --with-data >>> Dump data. This is the default. >>> --with-schema >>> Dump schema (data definitions). This is the default. >>> --with-statistics >>> Dump statistics. This is the default. >> >> Thanks for the report! >> >> Are you suggesting that "dump" in the help message and docs should be "restore"? >> If so, does the attached patch address that correctly? > > Yes. > IMHO, if we take the intent of the commit bde2fb797aae, your patch is correct. Okay, so if there are no objections, I'll go ahead and commit the patch. Regards, -- Fujii Masao NTT DATA Japan Corporation