don't loop forever in psql consumer get data and push it once then terminate? so it can be run frequently by a cron job handle cases where part of the data was already consumed (commit only pushed data)