Something like this: https://github.com/ericmj/postgrex/blob/c6fbb72d6f0678efd02e58b38cf2308397f0566a/lib/postgrex/connection.ex#L759 should be more performant than calling `:io_lib.format/2`.