]> granicus.if.org Git - postgresql/commit
Test code for shared memory message queue facility.
authorRobert Haas <rhaas@postgresql.org>
Tue, 14 Jan 2014 17:24:12 +0000 (12:24 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 14 Jan 2014 17:24:12 +0000 (12:24 -0500)
commit4db3744f1f43554b03d8193da4645a0a5326eb18
tree1e4dfc76ff6abe07dd472b45244e0713742e227b
parentec9037df2634ddcd6a3b036463722c8ee009b132
Test code for shared memory message queue facility.

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.
contrib/Makefile
contrib/test_shm_mq/.gitignore [new file with mode: 0644]
contrib/test_shm_mq/Makefile [new file with mode: 0644]
contrib/test_shm_mq/expected/test_shm_mq.out [new file with mode: 0644]
contrib/test_shm_mq/setup.c [new file with mode: 0644]
contrib/test_shm_mq/sql/test_shm_mq.sql [new file with mode: 0644]
contrib/test_shm_mq/test.c [new file with mode: 0644]
contrib/test_shm_mq/test_shm_mq--1.0.sql [new file with mode: 0644]
contrib/test_shm_mq/test_shm_mq.control [new file with mode: 0644]
contrib/test_shm_mq/test_shm_mq.h [new file with mode: 0644]
contrib/test_shm_mq/worker.c [new file with mode: 0644]