Re: pgsql: Save calculated transitionSpace in Agg node.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Jeff Davis <jdavis(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Save calculated transitionSpace in Agg node.
Date: 2020-02-27 23:36:36
Message-ID: 25326.1582846596@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> On Thu, 2020-02-27 at 14:56 -0500, Tom Lane wrote:
>> Surely this patch is a few bricks shy of a load. Don't you need
>> copyfuncs/readfuncs/outfuncs support, for starters?

> Sorry, I will fix it.

> I was looking at whether changes to copyfuncs (etc.) should also cause
> a catversion bump, and it seems inconsistent. Commit 9ce77d75 does, but
> 6ef77cf4 does not. Any particular rules around that? Not terribly
> important as the catversion was just bumped anyway; just curious.

You need a catversion bump if stored rules/views would change, ie when
messing with something that can appear in parser output. The old rule
of thumb was "if you touched readfuncs.c you probably need a catversion
bump", but this is less true now that we have read/write support for
plan trees (which need serialization support so we can send them to
parallel workers, but there's no permanent storage).

In this case, since it's only touching plan nodes, you need
copyfuncs/readfuncs/outfuncs adjustments but not a catversion bump.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-02-28 00:23:23 Re: pgsql: Record parents of triggers
Previous Message Jeff Davis 2020-02-27 23:28:47 Re: pgsql: Save calculated transitionSpace in Agg node.