Skip to content

Commit 9a0f26f

Browse files
committed
bump to 0.8.0
1 parent b55c731 commit 9a0f26f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PG_CFLAGS = -Werror -Wno-declaration-after-statement
22
EXTENSION = pg_net
3-
EXTVERSION = 0.7.3
3+
EXTVERSION = 0.8.0
44

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

sql/pg_net--0.7.3--0.8.0.sql

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
create or replace function net.worker_restart() returns bool as $$
2+
select pg_reload_conf();
3+
select pg_terminate_backend(pid)
4+
from pg_stat_activity
5+
where backend_type ilike '%pg_net%';
6+
$$
7+
security definer -- needs SDF because of pg_terminate_backend
8+
language sql;
9+
10+
grant usage on schema net to PUBLIC;
11+
grant all on all tables in schema net to PUBLIC;
12+
13+
alter function net.http_get ( text, jsonb, jsonb, integer) security invoker;
14+
alter function net.http_post (text, jsonb, jsonb, jsonb, integer) security invoker;
15+
alter function net.http_delete (text, jsonb, jsonb, integer) security invoker;
16+
alter function net._http_collect_response ( bigint, boolean) security invoker;
17+
alter function net.http_collect_response ( bigint, boolean) security invoker;

0 commit comments

Comments
 (0)