File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,18 @@ typedef struct BackgroundWorker
277
277
<literal>BGWH_POSTMASTER_DIED</literal>.
278
278
</para>
279
279
280
+ <para>
281
+ If a background worker sends asynchronous notifications with the
282
+ <command>NOTIFY</command> command via the Server Programming Interface
283
+ (<acronym>SPI</acronym>), it should call
284
+ <function>ProcessCompletedNotifies</function> explicitly after committing
285
+ the enclosing transaction so that any notifications can be delivered. If a
286
+ background worker registers to receive asynchronous notifications with
287
+ the <command>LISTEN</command> through <acronym>SPI</acronym>, the worker
288
+ will log those notifications, but there is no programmatic way for the
289
+ worker to intercept and respond to those notifications.
290
+ </para>
291
+
280
292
<para>
281
293
The <filename>worker_spi</> contrib module contains a working example,
282
294
which demonstrates some useful techniques.
You can’t perform that action at this time.
0 commit comments