Re:Million User Webchat with Full Stack Flux, React, Redis a...
by fauigerzigerk on Monday February 16, 2015 @09:40AM
(#9057062)
You are right. It seems that this was an issue with older versions of libpq: "In prior releases of libpq, the only way to ensure timely receipt of NOTIFY messages was to constantly submit commands"
http://www.postgresql.org/docs/9.4/static/libpq-notify.html
Once that FD is active, you call the poll() method and your notify payload becomes available to you.