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 1toUJK-00BQyI-PB for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Mar 2025 21:23:51 +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 1toUJK-0055HX-9T for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Mar 2025 21:23:48 +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.94.2) (envelope-from ) id 1toUJJ-0055HO-Ux for pgsql-hackers@lists.postgresql.org; Sat, 01 Mar 2025 21:23:48 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1toUJG-000PP6-1h for pgsql-hackers@lists.postgresql.org; Sat, 01 Mar 2025 21:23:47 +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 521LNd2A3071640; Sat, 1 Mar 2025 16:23:40 -0500 From: Tom Lane To: Jeff Davis cc: Greg Sabino Mullane , Ashutosh Bapat , Corey Huinker , Andres Freund , Michael Paquier , Nathan Bossart , Bruce Momjian , Matthias van de Meent , Magnus Hagander , Stephen Frost , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org, jian he Subject: Re: Statistics Import and Export In-reply-to: <948dd810f942016c22ffe9bb4500677299553c59.camel@j-davis.com> References: <97b451228227c555be1a4f79c4a62ddec9a74f06.camel@j-davis.com> <1457469.1740419458@sss.pgh.pa.us> <8d13e4296408c53a93390525d0bcb906cbd13df4.camel@j-davis.com> <768b2a237e892bf1334bdcbb066cdc1bd1368cb2.camel@j-davis.com> <41c193c31d9144a658525b6a861e2e5d3117d88e.camel@j-davis.com> <948dd810f942016c22ffe9bb4500677299553c59.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Sat, 01 Mar 2025 12:48:18 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3071638.1740864219.1@sss.pgh.pa.us> Date: Sat, 01 Mar 2025 16:23:39 -0500 Message-ID: <3071639.1740864219@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > On Sat, 2025-03-01 at 13:52 -0500, Greg Sabino Mullane wrote: >> Also, anything trained to parse pg_dump output will have to learn >> about the new SELECT pg_restore_ calls with their multi-line formats >> (not 100% sure we don't have that anywhere, as things like "SELECT >> setval" and "SELECT set_config" are single line, but there may be >> existing things) > That's an interesting point. What tools are currrently trying to parse > pg_dump output? That particular argument needs to be rejected vociferously. Otherwise we could never make any change at all in what pg_dump emits. I think the standard has to be "if you parse pg_dump output, it's on you to cope with any legal SQL". I do grasp Greg's larger point that this is a big change in pg_dump's behavior and will certainly break some expectations. I kind of lean to the position that we'll be sad in the long run if we don't change the default, though. What other part of pg_dump's output is not produced by default? regards, tom lane