NOTIFY for events
db=# LISTEN thing_notify; LISTEN db=# INSERT INTO thing (type,data) VALUES ('Fib','{"class":"CalcFib","number":"123"}'); Asynchronous notification "thing_notify" with payload "INSERT;Fib;4;2015-10-28 20:52:41.581392+01" received from server process with PID 4428.