CREATE OR REPLACE FUNCTION process_data(
s_input text
)
RETURNS void
AS $function$
DECLARE
a_data text[];
BEGIN
a_data := regexp_matches(s_input, '^Login: ([^;]+); IP ([\d\.]+); Time: ([\d\:\.\s]+)$');
raise notice 'Login %', a_data[1];
raise notice 'IP %', a_data[2];
raise notice 'Time %', to_timestamp(a_data[3], 'DD.MM.YYYY HH24:MI:SS');
END;
$function$
LANGUAGE plpgsql STABLE SECURITY DEFINER;