temporary table problem in function - Mailing list pgsql-general

From Krzysztof Koch
Subject temporary table problem in function
Date
Msg-id 3BB82256.3010806@poczta.onet.pl
Whole thread Raw
List pgsql-general
Greetings

I need create temporary table in function (writen in plpgsql).
My exemple function look like this:

create function ert() returns int4 as '
delcare
begin
create temporary table temp_new (t_id int4 primary key,smth varchar(20));
retun 1;
end;
'language 'plpgsql'

selecting this function give me this:

testing=# select ert();
NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index
'temp_new_pkey' for table 'temp_new'
ERROR: copyObject: don`t know how to copy 611


I would be very gracefull if someone explain what sort of error is it.
And what should I do.

thanks in advance
Chris.

----------------
Krzysztof Koch <= improwizator@poczta.onet.pl
                <= cc: kris_improwe@poczta.onet.pl
--------------------------------


pgsql-general by date:

Previous
From: R Talbot
Date:
Subject: Perl connection to Postgres?
Next
From: J C Lawrence
Date:
Subject: GROUP BY with wildcard non-deterministic fields?