pgsql: Add transformed flag to nodes/*funcs.c for CREATE STATISTICS

Started by Tomas Vondraabout 5 years ago2 messagescomitters
Jump to latest
#1Tomas Vondra
tomas.vondra@2ndquadrant.com

Add transformed flag to nodes/*funcs.c for CREATE STATISTICS

Commit a4d75c86bf added a new flag, tracking if the statement was
processed by transformStatsStmt(), but failed to add this flag to
nodes/*funcs.c.

Catversion bump, due to adding a flag to copy/equal/out functions.

Reported-by: Noah Misch
Discussion: /messages/by-id/ad7891d2-e90c-b446-9fe2-7419143847d7@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d57ecebd128cdf2f4844a2ea4d35ff28d7d69be8

Modified Files
--------------
src/backend/nodes/copyfuncs.c | 1 +
src/backend/nodes/equalfuncs.c | 1 +
src/backend/nodes/outfuncs.c | 1 +
src/include/catalog/catversion.h | 2 +-
4 files changed, 4 insertions(+), 1 deletion(-)

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tomas Vondra (#1)
Re: pgsql: Add transformed flag to nodes/*funcs.c for CREATE STATISTICS

Tomas Vondra <tomas.vondra@postgresql.org> writes:

Catversion bump, due to adding a flag to copy/equal/out functions.

FWIW, it's not necessary to do a catversion bump unless you had
occasion to touch readfuncs.c. A node type with only outfuncs.c
support cannot appear in stored rules, hence no need for catversion
change. It's not terribly important in this context, of course.

regards, tom lane