Doc: improve discussion of race conditions involved in LISTEN.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Nov 2019 23:03:39 +0000 (18:03 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Nov 2019 23:03:39 +0000 (18:03 -0500)
commitd3aa114ac4de9ecc558ba77ed5c85e2ad9ad01d4
tree8346635a53f8ad69ff54fc76ba8c672eb4107632
parent6b802cfc7fab0f38001ae465ccd4f7f565b6169d
Doc: improve discussion of race conditions involved in LISTEN.

The user docs didn't really explain how to use LISTEN safely,
so clarify that.  Also clean up some fuzzy-headed explanations
in comments.  No code changes.

Discussion: https://postgr.es/m/3ac7f397-4d5f-be8e-f354-440020675694@gmail.com
doc/src/sgml/ref/listen.sgml
src/backend/commands/async.c