Skip to content

Commit e129ac8

Browse files
committed
bump to 0.7.3
1 parent 7021cf4 commit e129ac8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
EXTENSION = pg_net
2-
EXTVERSION = 0.7.1
2+
EXTVERSION = 0.7.3
33

44
DATA = $(wildcard sql/*--*.sql)
55

sql/pg_net--0.7.1--0.7.3.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
create or replace function net.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

Comments
 (0)