@@ -2155,8 +2155,8 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
2155
2155
else
2156
2156
{
2157
2157
/*
2158
- * Only way to get here is if all the polymorphic args have
2159
- * UNKNOWN inputs
2158
+ * Only way to get here is if all the family-1 polymorphic
2159
+ * arguments have UNKNOWN inputs.
2160
2160
*/
2161
2161
ereport (ERROR ,
2162
2162
(errcode (ERRCODE_DATATYPE_MISMATCH ),
@@ -2254,10 +2254,10 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
2254
2254
else
2255
2255
{
2256
2256
/*
2257
- * Only way to get here is if all the ANYCOMPATIBLE args have
2258
- * UNKNOWN inputs. Resolve to TEXT as select_common_type()
2259
- * would do. That doesn't license us to use TEXTRANGE,
2260
- * though.
2257
+ * Only way to get here is if all the family-2 polymorphic
2258
+ * arguments have UNKNOWN inputs. Resolve to TEXT as
2259
+ * select_common_type() would do. That doesn't license us to
2260
+ * use TEXTRANGE, though.
2261
2261
*/
2262
2262
anycompatible_typeid = TEXTOID ;
2263
2263
anycompatible_array_typeid = TEXTARRAYOID ;
@@ -2269,7 +2269,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
2269
2269
}
2270
2270
}
2271
2271
2272
- /* replace polymorphic types by selected types */
2272
+ /* replace family-2 polymorphic types by selected types */
2273
2273
for (int j = 0 ; j < nargs ; j ++ )
2274
2274
{
2275
2275
Oid decl_type = declared_arg_types [j ];
@@ -2285,11 +2285,11 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
2285
2285
}
2286
2286
2287
2287
/*
2288
- * If we had any UNKNOWN inputs for polymorphic arguments, re-scan to
2289
- * assign correct types to them.
2288
+ * If we had any UNKNOWN inputs for family-1 polymorphic arguments,
2289
+ * re-scan to assign correct types to them.
2290
2290
*
2291
2291
* Note: we don't have to consider unknown inputs that were matched to
2292
- * ANYCOMPATIBLE- family arguments, because we forcibly updated their
2292
+ * family-2 polymorphic arguments, because we forcibly updated their
2293
2293
* declared_arg_types[] positions just above.
2294
2294
*/
2295
2295
if (have_poly_unknowns )
0 commit comments