Re: plpgsql and COPY - Mailing list pgsql-general

From Tom Lane
Subject Re: plpgsql and COPY
Date
Msg-id 26326.994201736@sss.pgh.pa.us
Whole thread Raw
In response to plpgsql and COPY  ("Joseph Bonnet" <Joseph.Bonnet@Sodebo.fr>)
List pgsql-general
"Joseph Bonnet" <Joseph.Bonnet@Sodebo.fr> writes:
> Y want to use COPY command in a PLpgSQL procedure like this:
> Y have always the response : CopyObjet: don't know to copy 610

Doesn't work in <= 7.0.  Update to 7.1.

If you are going to drop and recreate the table each time, you
might also find that you need to invoke the commands via EXECUTE,
not directly.  Not sure about that.  For utility commands with
no plans, it might work to do it directly as you have here.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error: "Conversion between UNICODE..."
Next
From: Tom Lane
Date:
Subject: Re: float arrays