Fix for PostgreSQL 8.4

* Remove incompatible optimizations
  See collectiveidea/delayed_job_active_record#33