Select * from [TABLE1] t1 where user_id < {id} and not exists (select 1 from [another_table] t2 where t1.user_id = t2.user_id)
Select * from [TABLE1] t1 left join [another_table] t2 using(user_id) where user_id < {id} and t2.user_id is null
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;
This callback is executed when a session is destroyed with session_destroy() or with session_regenerate_id() with the destroy parameter set to TRUE.
загружено в карте всего 1,2-1,3 гб видео памяти.
update post set story = REPLACE(story,from_str,to_str) where /**/