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 1kCnzQ-0007Hl-0e for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2020 17:53:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kCnzO-0005Ke-8H for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2020 17:53:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCnzO-0005KW-1L for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2020 17:53:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCnzM-0006Dq-12 for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2020 17:53:05 +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 07VHr1TU4118984; Mon, 31 Aug 2020 13:53:01 -0400 From: Tom Lane To: Stephen Frost cc: Bruce Momjian , Andrey Lepikhov , pgsql-hackers@lists.postgresql.org, Etsuro Fujita , Jeff Janes Subject: Re: Ideas about a better API for postgres_fdw remote estimates In-reply-to: <20200831172659.GS29590@tamriel.snowman.net> References: <20200706152828.GG3125@tamriel.snowman.net> <20200714013219.GD32422@momjian.us> <7a40707d-1758-85a2-7bb1-6e5775518e64@postgrespro.ru> <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> Comments: In-reply-to Stephen Frost message dated "Mon, 31 Aug 2020 13:26:59 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4118982.1598896381.1@sss.pgh.pa.us> Date: Mon, 31 Aug 2020 13:53:01 -0400 Message-ID: <4118983.1598896381@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. regards, tom lane