Minimal work queue in postgres.