Skip to content
Snippets Groups Projects
Commit f4d0c36b authored by vscherbo's avatar vscherbo
Browse files

сброс счётчика ошибок при подписке

parent d4f22bb8
No related branches found
No related tags found
No related merge requests found
CREATE OR REPLACE FUNCTION arc_energo.topic_do_subscribe(arg_tag character varying)
RETURNS void
LANGUAGE sql
AS $function$
INSERT INTO arc_energo.topic_subs
(tag, ip)
VALUES(arg_tag, inet_client_addr())
ON CONFLICT (tag, ip) DO UPDATE SET dt_subs = clock_timestamp(), err_cnt = 0;
$function$
;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment