I have a postgres database with several tables that I want to watch for updates on, and if there\'s any updates, I want to fire a \"hey, something changed\" update. This wor
http://www.postgresql.org/docs/9.3/static/plpython-trigger.html
TD["table_name"]
I do exactly the same type of notify, I loop through all of the columns like this:
for k in TD["new"]:
if TD["old"][k] != TD["new"][k]:
changed.append(k)
changed.append(k) builds my notification string. Somewhere else I do a listen, then broadcast the results out pub/sub to web socket clients.
-g