Обсуждение: temporary table problem in function

Поиск
Список
Период
Сортировка

temporary table problem in function

От
Krzysztof Koch
Дата:
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
--------------------------------