mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
4db3744f1f
This code is intended as a demonstration of how the dynamic shared memory and dynamic background worker facilities can be used to establish a group of coooperating processes which can coordinate their activities using the shared memory message queue facility. By itself, the code does nothing particularly interesting: it simply allows messages to be passed through a loop of workers and back to the original process. But it's a useful unit test, in addition to its demonstration value.
21 lines
408 B
Makefile
21 lines
408 B
Makefile
# contrib/test_shm_mq/Makefile
|
|
|
|
MODULE_big = test_shm_mq
|
|
OBJS = test.o setup.o worker.o
|
|
|
|
EXTENSION = test_shm_mq
|
|
DATA = test_shm_mq--1.0.sql
|
|
|
|
REGRESS = test_shm_mq
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/test_shm_mq
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|