> ler=# select interval('6 months');
> ERROR: parser: parse error at or near "'6 months'" at character 17
> ler=# select interval('6 months'::text);
> ERROR: parser: parse error at or near "'6 months'" at character 17
> ler=#
Try:
select "interval"('6 months');
Chris