delete from out_queue where id = (select id from out_queue order by id for update skip locked limit 1) returning *