postgresql select for update limit 1