pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org, Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Subject: Re: Ideas about a better API for postgres_fdw remote estimates
Date: Mon, 31 Aug 2020 12:14:55 -0400
Message-ID: <20200831161455.GD13613@momjian.us> (raw)
In-Reply-To: <3565504.1598719859@sss.pgh.pa.us>
References: <1301903.1593970603@sss.pgh.pa.us>
	<20200705174817.GE3125@tamriel.snowman.net>
	<1309399.1593980722@sss.pgh.pa.us>
	<20200706141114.GF3125@tamriel.snowman.net>
	<1374896.1594047946@sss.pgh.pa.us>
	<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>

On Sat, Aug 29, 2020 at 12:50:59PM -0400, Tom Lane wrote:
> Stephen Frost <sfrost@snowman.net> writes:
> > Isn't this going to create a version dependency that we'll need to deal
> > with..?  What if a newer major version has some kind of improved ANALYZE
> > command, in terms of what it looks at or stores, and it's talking to an
> > older server?
> 
> Yeah, this proposal is a nonstarter unless it can deal with the remote
> server being a different PG version with different stats.
> 
> Years ago (when I was still at Salesforce, IIRC, so ~5 years) we had
> some discussions about making it possible for pg_dump and/or pg_upgrade
> to propagate stats data forward to the new database.  There is at least
> one POC patch in the archives for doing that by dumping the stats data
> wrapped in a function call, where the target database's version of the
> function would be responsible for adapting the data if necessary, or
> maybe just discarding it if it couldn't adapt.  We seem to have lost
> interest but it still seems like something worth pursuing.  I'd guess
> that if such infrastructure existed it could be helpful for this.

I don't think there was enough value to do statistics migration just for
pg_upgrade, but doing it for pg_upgrade and FDWs seems like it might
have enough demand to justify the required work and maintenance.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






view thread (25+ messages)  latest in thread

Message-ID: <20200831161455.GD13613@momjian.us>
Permalink:  ../20200831161455.GD13613@momjian.us/
Also on:    postgresql.org/message-id/20200831161455.GD13613@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, sfrost@snowman.net, a.lepikhov@postgrespro.ru, etsuro.fujita@gmail.com, jeff.janes@gmail.com
  Subject: Re: Ideas about a better API for postgres_fdw remote estimates
  In-Reply-To: <20200831161455.GD13613@momjian.us>
  References: <1301903.1593970603@sss.pgh.pa.us> <20200705174817.GE3125@tamriel.snowman.net> <1309399.1593980722@sss.pgh.pa.us> <20200706141114.GF3125@tamriel.snowman.net> <1374896.1594047946@sss.pgh.pa.us> <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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox