-- +goose Up -- +goose StatementBegin CREATE FUNCTION immutable_array_to_string(arr ANYARRAY, sep TEXT) RETURNS text AS $$ SELECT array_to_string(arr, sep); $$ LANGUAGE SQL IMMUTABLE; -- +goose StatementEnd -- +goose Down -- +goose StatementBegin DROP FUNCTION IF EXISTS immutable_array_to_string; -- +goose StatementEnd