Skip to content

Commit c4f15e8

Browse files
Jim NasbyJim Nasby
authored andcommitted
Robert's v4 patch
1 parent f7102b0 commit c4f15e8

File tree

8 files changed

+1042
-5
lines changed

8 files changed

+1042
-5
lines changed

contrib/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ SUBDIRS = \
3030
pageinspect \
3131
passwordcheck \
3232
pg_archivecleanup \
33+
pg_background \
3334
pg_buffercache \
3435
pg_freespacemap \
3536
pg_prewarm \

contrib/pg_background/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# contrib/pg_background/Makefile
2+
3+
MODULE_big = pg_background
4+
OBJS = pg_background.o
5+
6+
EXTENSION = pg_background
7+
DATA = pg_background--1.0.sql
8+
9+
ifdef USE_PGXS
10+
PG_CONFIG = pg_config
11+
PGXS := $(shell $(PG_CONFIG) --pgxs)
12+
include $(PGXS)
13+
else
14+
subdir = contrib/pg_background
15+
top_builddir = ../..
16+
include $(top_builddir)/src/Makefile.global
17+
include $(top_srcdir)/contrib/contrib-global.mk
18+
endif
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* contrib/pg_background/pg_background--1.0.sql */
2+
3+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4+
\echo Use "CREATE EXTENSION pg_background" to load this file. \quit
5+
6+
CREATE FUNCTION pg_background_launch(sql pg_catalog.text,
7+
queue_size pg_catalog.int4 DEFAULT 65536)
8+
RETURNS pg_catalog.int4 STRICT
9+
AS 'MODULE_PATHNAME' LANGUAGE C;
10+
11+
CREATE FUNCTION pg_background_result(pid pg_catalog.int4)
12+
RETURNS SETOF pg_catalog.record STRICT
13+
AS 'MODULE_PATHNAME' LANGUAGE C;
14+
15+
CREATE FUNCTION pg_background_detach(pid pg_catalog.int4)
16+
RETURNS pg_catalog.void STRICT
17+
AS 'MODULE_PATHNAME' LANGUAGE C;

0 commit comments

Comments
 (0)