Postgresql – operator does not exist: character varying[] = text
I have a postgreSQL function which takes a text array as one of the input parameters: CREATE OR REPLACE FUNCTION report.fn_get_metrics( from_date timestamp without time zone, to_date timestamp without time zone, location_ids text[]) RETURNS TABLE(demand_new_count bigint) LANGUAGE 'plpgsql' COST 100…