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 1tYsgZ-00GCl0-5C for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 20:11:19 +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 1tYsgW-005R6K-V1 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 20:11:17 +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 1tYsgW-005R3P-Kl for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 20:11:17 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tYsgT-00051f-3C for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 20:11:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 50HKBAok2328260; Fri, 17 Jan 2025 15:11:10 -0500 From: Tom Lane To: Robert Treat cc: Shinya Kato , Yugo Nagata , "David G. Johnston" , PostgreSQL Hackers Subject: Re: Set AUTOCOMMIT to on in script output by pg_dump In-reply-to: References: <96ff23a5d858ff72ca8e823a014d16fe@oss.nttdata.com> <20241009120314.118a641fa25148c3d564a6ae@sraoss.co.jp> <2351827.1728447022@sss.pgh.pa.us> <20241009151508.eb37141e5ad29d0ca1e44eb9@sraoss.co.jp> <18f52adc395bece3c9d4373890560bbd@oss.nttdata.com> Comments: In-reply-to Robert Treat message dated "Fri, 17 Jan 2025 10:45:46 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2328258.1737144670.1@sss.pgh.pa.us> Date: Fri, 17 Jan 2025 15:11:10 -0500 Message-ID: <2328259.1737144670@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Treat writes: > suggested diffs attached, let me know if you would like a consolidated patch Sadly, the cfbot is now confused since it doesn't understand the idea of an incremental patch. Somebody please post a consolidated patch. For myself, I'd suggest writing the examples with -X not --no-psqlrc. -X is shorter, it's more likely to be what people would actually type, and it's not jarringly inconsistent with the adjacent use of -h and other short-form switches. We can write the added paragraphs like It is generally recommended to use the () option when restoring a database ... to provide clarity about what the switch does. regards, tom lane