From: Gifford Hesketh <gifford.hesketh@gmail.com>
To: pgsql-sql@postgresql.org
Subject: "copy from" in "create function"
Date: Wed, 20 Oct 2004 15:03:22 -0700
Message-ID: <4f6940a604102015034e5560bb@mail.gmail.com> (raw)
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;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gifford.hesketh@gmail.com
Subject: Re: "copy from" in "create function"
In-Reply-To: <4f6940a604102015034e5560bb@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox