forked from vibhorkum/pg_background
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pg_background--1.1.sql
25 lines (21 loc) · 952 Bytes
/
pg_background--1.1.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pg_background" to load this file. \quit
CREATE FUNCTION pg_background_launch(sql pg_catalog.text,
queue_size pg_catalog.int4 DEFAULT 65536)
RETURNS pg_catalog.int4 STRICT
AS 'MODULE_PATHNAME' LANGUAGE C;
CREATE FUNCTION pg_background_discard_result(pid pg_catalog.int4)
RETURNS void STRICT
AS 'MODULE_PATHNAME' LANGUAGE C;
CREATE FUNCTION pg_background_result(pid pg_catalog.int4)
RETURNS SETOF pg_catalog.record STRICT
AS 'MODULE_PATHNAME' LANGUAGE C;
CREATE FUNCTION pg_background_detach(pid pg_catalog.int4)
RETURNS pg_catalog.void STRICT
AS 'MODULE_PATHNAME' LANGUAGE C;
REVOKE ALL ON FUNCTION pg_background_launch(pg_catalog.text, pg_catalog.int4)
FROM public;
REVOKE ALL ON FUNCTION pg_background_result(pg_catalog.int4)
FROM public;
REVOKE ALL ON FUNCTION pg_background_detach(pg_catalog.int4)
FROM public;