Fix errors in copyfuncs/equalfuncs support for JSON node types.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8d9f9634ef21ab0023e2bd98e799f5ad2eec4539
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-07-05T15:12:33Z
Releases: 16.0
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

Files

PathChange+/−
src/backend/nodes/copyfuncs.c modified +6 −5
src/backend/nodes/equalfuncs.c modified +22 −3

Discussion