Is there a way to select rows in Postgresql that aren\'t locked? I have a multi-threaded app that will do:
Select... order by id desc limit 1 for update
Since I haven't found a better answer yet, I've decided to use locking within my app to synchronize access to the code that does this query.