based on active_record/connection_adapters/postgresql/array_parser.rb until it’s some day shareable with Rails … this is not public API !