Fix errors in copyfuncs/equalfuncs support for JSON node types.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Jul 2022 15:12:33 +0000 (11:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Jul 2022 15:12:33 +0000 (11:12 -0400)
commit8d9f9634ef21ab0023e2bd98e799f5ad2eec4539
treeb4345ec308dd9197047f189514e129b08da95951
parent054325c5eeb3140a067ba66735c3d811163ecd6a
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