Description
In CockroachDB and , if a user-defined function (UDF) is created using any implicit record type which contains a column of user-definedENUM type as the function’s parameter type or return type, the CockroachDB instance will crash and refuse to start. For example:
Statement
This is resolved in CockroachDB by a fix that addresses infinite recursion during the type hydration for catalog descriptors. The fix has been applied to maintenance releases of CockroachDB and later.Mitigation
Users of CockroachDB and should avoid creating a user-defined function (UDF) using any implicit record type that contains a field of user-definedENUM type as the function’s parameter type or return type.
Users of CockroachDB v22.2.0 and v22.2.1 are encouraged to upgrade to version v22.2.2 or later.

