pgsql: Fix failure to validate the result of select_common_type().

2022-01-29 Thread Tom Lane
Fix failure to validate the result of select_common_type(). Although select_common_type() has a failure-return convention, an apparent successful return just provides a type OID that *might* work as a common supertype; we've not validated that the required casts actually exist. In the mainstream

pgsql: Fix failure to validate the result of select_common_type().

2022-01-29 Thread Tom Lane
Fix failure to validate the result of select_common_type(). Although select_common_type() has a failure-return convention, an apparent successful return just provides a type OID that *might* work as a common supertype; we've not validated that the required casts actually exist. In the mainstream

pgsql: Fix failure to validate the result of select_common_type().

2022-01-29 Thread Tom Lane
Fix failure to validate the result of select_common_type(). Although select_common_type() has a failure-return convention, an apparent successful return just provides a type OID that *might* work as a common supertype; we've not validated that the required casts actually exist. In the mainstream