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 1rqLwx-00BuWp-Qr for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2024 23:47:56 +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 1rqLww-005dCX-LK for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2024 23:47:54 +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 1rqLww-005dCO-Bu for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2024 23:47:54 +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.94.2) (envelope-from ) id 1rqLwo-0077yq-Ky for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2024 23:47:53 +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 42TNlg0j267625; Fri, 29 Mar 2024 19:47:42 -0400 From: Tom Lane To: Jeff Davis cc: Stephen Frost , Ashutosh Bapat , Corey Huinker , Matthias van de Meent , Peter Smith , PostgreSQL Hackers , Tomas Vondra Subject: Re: Statistics Import and Export In-reply-to: <718fa933c2c58d0ecc61995ab5c7ca1fe78d6369.camel@j-davis.com> References: <54f190b6c757da2a33cce811949e9dd9601fcba7.camel@j-davis.com> <1632327b74a734f8c434eb75e824160d2b06a697.camel@j-davis.com> <16412b8b7ae443cb7470006beff3011927048860.camel@j-davis.com> <1b1bd1ec39ab3de09a17bf7b241021067e5bd63c.camel@j-davis.com> <2bce855db8259c5672a09f863a307ca07b967b68.camel@j-davis.com> <5e94c358caedf2a231dd71624c3578db7227a265.camel@j-davis.com> <4afa70edab849ff16238d1100b6652404e9a4d9d.camel@j-davis.com> <3df03aa65aa6ea3a76582e1a792e422dc5c32ad3.camel@j-davis.com> <718fa933c2c58d0ecc61995ab5c7ca1fe78d6369.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Fri, 29 Mar 2024 16:34:48 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <267623.1711756062.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 29 Mar 2024 19:47:42 -0400 Message-ID: <267624.1711756062@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > On Fri, 2024-03-29 at 18:02 -0400, Stephen Frost wrote: >> I’d certainly think “with stats” would be the preferred default of >> our users. > What do you think about starting off with it as non-default, and then > switching it to default in 18? I'm with Stephen: I find it very hard to imagine that there's any users who wouldn't want this as default. If we do what you suggest, then there will be three historical behaviors to cope with not two. That doesn't sound like it'll make anyone's life better. As for the "it might break" argument, that could be leveled against any nontrivial patch. You're at least offering an opt-out switch, which is something we more often don't do. (I've not read the patch yet, but I assume the switch works like other pg_dump filters in that you can apply it on the restore side?) regards, tom lane