clear markdown compare help best fiddles feedback
clear markdown donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 2805445 fiddles created (40821 in the last week).

create type my_type as (val1 integer, val2 integer);
 hidden batch(es)

create function my_function(arr in my_type[]) returns text language plpgsql as $$ begin return arr::text; end;$$;
 hidden batch(es)

select my_function(array[row(1,2),row(3,4)]::my_type[]);
 hidden batch(es)