two cosmetic minor issues. +/* + * JsonCoercion + * Information about coercing a SQL/JSON value to the specified + * type at runtime + * + * A node of this type is created if the parser cannot find a cast expression + * using coerce_type() or OMIT QUOTES is specified for JSON_QUERY. If the + * latter, 'expr' may contain the cast expression; if not, the quote-stripped + * scalar string will be coerced by calling the target type's input function. + * See ExecEvalJsonCoercion. + */ +typedef struct JsonCoercion +{ + NodeTag type; + + Oid targettype; + int32 targettypmod; + bool omit_quotes; /* OMIT QUOTES specified for JSON_QUERY? */ + Node *cast_expr; /* coercion cast expression or NULL */ + Oid collation; +} JsonCoercion;
comment: 'expr' may contain the cast expression; here "exr" should be "cast_expr"? "a SQL/JSON" should be " an SQL/JSON"?