ActiveRecord PostgreSQL Adapter extension for using a cursor to return a large result set