Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCreX-00082e-NT for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2020 21:47:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kCreW-0007L2-DY for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2020 21:47:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCreW-0007Kv-6v for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2020 21:47:48 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCreT-0005ch-MI for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2020 21:47:47 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kCreP-0005c9-WE; Mon, 31 Aug 2020 17:47:42 -0400 Date: Mon, 31 Aug 2020 17:47:41 -0400 From: Bruce Momjian To: Tom Lane Cc: Stephen Frost , Andrey Lepikhov , pgsql-hackers@lists.postgresql.org, Etsuro Fujita , Jeff Janes Subject: Re: Ideas about a better API for postgres_fdw remote estimates Message-ID: <20200831214741.GR13613@momjian.us> References: <20200829162231.GE29590@tamriel.snowman.net> <3565504.1598719859@sss.pgh.pa.us> <20200831161455.GD13613@momjian.us> <20200831161952.GQ29590@tamriel.snowman.net> <20200831164725.GE13613@momjian.us> <20200831165621.GR29590@tamriel.snowman.net> <20200831170817.GF13613@momjian.us> <20200831172659.GS29590@tamriel.snowman.net> <4118983.1598896381@sss.pgh.pa.us> <20200831214622.GQ13613@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200831214622.GQ13613@momjian.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Aug 31, 2020 at 05:46:22PM -0400, Bruce Momjian wrote: > On Mon, Aug 31, 2020 at 01:53:01PM -0400, Tom Lane wrote: > > Stephen Frost writes: > > > Feature work either requires changes to pg_dump, or not. I agree that > > > features which don't require pg_dump changes are definitionally less > > > work than features which do (presuming the rest of the feature is the > > > same in both cases) but that isn't a justification to not have pg_dump > > > support in cases where it's expected- we just don't currently expect it > > > for statistics (which is a rather odd exception when you consider that > > > nearly everything else that ends up in the catalog tables is included). > > > > > For my part, at least, I'd like to see us change that expectation, for a > > > number of reasons: > > > > Yeah. I think that originally we expected that the definition of the > > stats might change fast enough that porting them cross-version would be > > problematic. Subsequent experience has shown that they don't actually > > change any faster than any other aspect of the catalogs. So, while > > I do think we must have a plan for how to cope when/if the definition > > changes, I don't buy Bruce's argument that it's going to require more > > maintenance effort than any other part of the system does. > > Well, my point is that even bucket/calculation/data text respresentation > changes could affect dumping statistics, and that is kind of rare for > other changes we make. And I have been hoping someone would prove me wrong all these years, but it hasn't happened yet. It is possible we have hit a tipping point where the work is worth it, and I hope that is the case. I am just explaining why I think it has not happened yet. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee