So, if Core Team agree I’ll be happy to make pull request for current master with this stuff (with tests and all input|output formats from documentation: PostgreSQL: Documentation: 9.4: Date/Time Types ).
But I don’t sure about ActiveSupport::Duration. It’s weird and magic thing I’m afraid of.
There is some need to improve ActiveSupport::Duration (add ability to be created by parsing from ISO 8601 Duration and to be output to it), may be also fix some things. I’ve found awesome gem ISO8601 but it’s reimplement all types (date, times, durations). I can pick some required logic from it into ActiveSupport::Duration (or may be it’s better to use the whole gem in Rails?). Should these changes go into separate pull request or not?