Single-reader, single-writer, lightweight shared message queue.
Robert Haas <rhaas@postgresql.org>
Single-reader, single-writer, lightweight shared message queue. This code provides infrastructure for user backends to communicate relatively easily with background workers. The message queue is structured as a ring buffer and allows messages of arbitary length to be sent and received. Patch by me. Review by KaiGai Kohei and Andres Freund.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/Makefile | modified | +1 −1 |
| src/backend/storage/ipc/shm_mq.c | added | +945 −0 |
| src/include/storage/shm_mq.h | added | +70 −0 |