"copy from" in "create function" - Mailing list pgsql-sql

From Gifford Hesketh
Subject "copy from" in "create function"
Date
Msg-id 4f6940a604102015034e5560bb@mail.gmail.com
Whole thread Raw
Responses Re: "copy from" in "create function"
List pgsql-sql
Am I forgetting some limitation ?  I get "ERROR:  syntax error at or
near "$1" at character 22" with this:

CREATE FUNCTION public.fn_b_import( text ) RETURNS void AS 
'
COPY b_import FROM $1 ;
'
LANGUAGE 'sql' STABLE;


pgsql-sql by date:

Previous
From: Mike Rylander
Date:
Subject: Re: sql
Next
From: "Davide Negri"
Date:
Subject: Question on the 8.0Beta Version