diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml index c17d398..f19f050 100644 --- a/doc/src/sgml/bgworker.sgml +++ b/doc/src/sgml/bgworker.sgml @@ -270,6 +270,17 @@ typedef struct BackgroundWorker + If a background worker sends asynchronous notifications with the + NOTIFY command via the Server Programming Interface + (SPI), it should call + ProcessCompletedNotifies explicitly after committing + the enclosing transaction so that any notifications can be delivered. If a + background worker registers to receive asynchronous notifications with + the LISTEN through SPI, there is + currently no way for incoming notifications to be received. + + + The worker_spi contrib module contains a working example, which demonstrates some useful techniques.