ДМ
С чего бы PostgreSQL искажать вставляемое?
Size: a a a
ДМ
YS
СГ
ДМ
СГ
ДМ
МШ
AN
A
AN
A
AN
A
A
AN
A
A
ДМ
CREATE OR REPLACE FUNCTION public.find_customers_for_imitation(ids bigint[])
RETURNS setof contacts_count
LANGUAGE plpgsql
AS $function$
begin
create or replace view contacts_count as
select contacts.user_id, count(contacts.user_id)
from contacts
where contacts.user_id any ids
group by contacts.user_id;
END;
$function$
KK
А