patch delayed job/active record to work with postgres 9.0

[finish #56366522]