Re: pgsql: Save calculated transitionSpace in Agg node.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Save calculated transitionSpace in Agg node.
Дата
Msg-id 25326.1582846596@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Save calculated transitionSpace in Agg node.  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-committers
Jeff Davis <pgsql@j-davis.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



В списке pgsql-committers по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: pgsql: Save calculated transitionSpace in Agg node.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Record parents of triggers