Fix errors in copyfuncs/equalfuncs support for JSON node types.
authorTom Lane
Tue, 5 Jul 2022 15:12:33 +0000 (11:12 -0400)
committerTom Lane
Tue, 5 Jul 2022 15:12:33 +0000 (11:12 -0400)
commit90d6c65a2c2358bd80103afc0686c90c70d5417b
tree9dce39bcf5841a7afb6b141534db2155f936ce9c
parent93cf9233cd546b31d08d02ab803fae25472c03c5
Fix errors in copyfuncs/equalfuncs support for JSON node types.

Noted while comparing existing code to the output of the proposed
patch to automate creation of these functions.  Some of the changes
are just cosmetic, but others represent real bugs.  I've not
attempted to analyze the user-visible impact.

Back-patch to v15 where this code came in.

Discussion: https://postgr.es/m/1794155.1656984188@sss.pgh.pa.us
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c