A stored procedure (in postgres-pl/Python) which dumps table events to a named pipe in pseudo-JSON.

Very much a prototype, but one hurdle has been covered!