pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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 17:45:05 -0400
Message-ID: <20200831214505.GP13613@momjian.us> (raw)
In-Reply-To: <20200831172659.GS29590@tamriel.snowman.net>
References: <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>

On Mon, Aug 31, 2020 at 01:26:59PM -0400, Stephen Frost wrote:
> * Bruce Momjian (bruce@momjian.us) wrote:
> > I actually don't know which statement above is correct, because of the
> > "forever" maintenance.
> 
> I can understand not being sure which is correct, and we can all have
> different points of view on it too, but that's a much softer stance than
> what I, at least, understood from your up-thread comment which was-
> 
> > I don't think there was enough value to do statistics migration just
> > for pg_upgrade [...]
> 
> That statement came across to me as saying the latter statement above.
> Perhaps that wasn't what you intended it to, in which case it's good to
> have the discussion and clarify it, for others who might be following
> this thread and wondering if they should consider working on this area
> of the code or not.

I concluded that based on the fact that pg_upgrade has been used for
years and there has been almost no work on statistics upgrades.

> > Yes, very true, but technically any change in any aspect of the
> > statistics system would require modification of the statistics dump,
> > which usually isn't required for most feature changes.
> 
> 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).

Agreed, but the big differences is that you can change most SQL commands
easily, e.g. system catalog changes, without any pg_dump changes, unless
you change the SQL API, while any statistics storage change would
potentially need pg_dump adjustments.  And once you start doing it, you
had better keep doing it for every major release or there will be major
complaints.

> For my part, at least, I'd like to see us change that expectation, for a
> number of reasons:

Yes, there are certainly more uses now than we used to have.

-- 
  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: <20200831214505.GP13613@momjian.us>
Permalink:  ../20200831214505.GP13613@momjian.us/
Also on:    postgresql.org/message-id/20200831214505.GP13613@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, sfrost@snowman.net, tgl@sss.pgh.pa.us, 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: <20200831214505.GP13613@momjian.us>
  References: <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> <20200831214505.GP13613@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