diff --git a/src/backend/utils/adt/pseudotypes.c b/src/backend/utils/adt/pseudotypes.c index c8202502c9..cc4e63bf5f 100644 --- a/src/backend/utils/adt/pseudotypes.c +++ b/src/backend/utils/adt/pseudotypes.c @@ -228,6 +228,19 @@ anycompatiblerange_out(PG_FUNCTION_ARGS) return range_out(fcinfo); } +/* + * anymultirange + * + * We may as well allow output, since multirange_out will in fact work. + */ +PSEUDOTYPE_DUMMY_INPUT_FUNC(anymultirange); + +Datum +anymultirange_out(PG_FUNCTION_ARGS) +{ + return multirange_out(fcinfo); +} + /* * anycompatiblemultirange * @@ -241,30 +254,6 @@ anycompatiblemultirange_out(PG_FUNCTION_ARGS) return multirange_out(fcinfo); } -/* - * anymultirange_in - input routine for pseudo-type ANYMULTIRANGE. - */ -Datum -anymultirange_in(PG_FUNCTION_ARGS) -{ - ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("cannot accept a value of type %s", "anymultirange"))); - - PG_RETURN_VOID(); /* keep compiler quiet */ -} - -/* - * anymultirange_out - output routine for pseudo-type ANYMULTIRANGE. - * - * We may as well allow this, since multirange_out will in fact work. - */ -Datum -anymultirange_out(PG_FUNCTION_ARGS) -{ - return multirange_out(fcinfo); -} - /* * void *