Josh Berkus <josh@agliodbs.com> writes:
> Aha, syntax error, you forgot the nested quotes:
> FOR getpercentiles IN EXECUTE ''SELECT * FROM get_facility_percentiles(''''''
> || wagerateid_list || '''''')'' LOOP
She really wants quote_literal(), instead, so that the function doesn't
break if someone passes a value that contains quotes ...
regards, tom lane