Looks like work has started on the underlying connector: https://bitbucket.org/ged/ruby-pg/issue/161/add-support-for-...
I wouldn't say "work has started" when the bug has just been reported.
This is where you'd want to be looking in the source:
https://github.com/rails/rails/tree/master/activerecord/lib/...
Specifically at any error handling, which I think would likely be here:
https://github.com/rails/rails/blob/master/activerecord/lib/...
I think it can use either pg (wrapper around libpq) or postgres-pr (pure ruby), though I always use pg.
EDIT: Seems like they have dropped support for postgres.
EDIT2: Yes, I did mean postgres-pr.
edit: the underlying connector might be a better idea to start with, as it'll need to expose the fields somehow before an ORM can take advantage of them.