You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create or replacefunctionnet.check_worker_is_up() returns void as $$
2
+
begin
3
+
if not exists (select pid from pg_stat_activity where backend_type ilike '%pg_net%') then
4
+
raise exception using
5
+
message ='the pg_net background worker is not up'
6
+
, detail ='the pg_net background worker is down due to an internal error and cannot process requests'
7
+
, hint ='make sure that you didn''t modify any of pg_net internal tables';
8
+
end if;
9
+
end
10
+
$$ language plpgsql;
11
+
comment on function net.check_worker_is_up() is 'raises an exception if the pg_net background worker is not up, otherwise it doesn''t return anything';
0 commit comments