this is really only necessary for PG. If I'm not mistaken it's only really used by the range type, which we will replace  in the future. Let's not push this up. See https://github.com/rails/rails/pull/15158/files#discussion_r12771183