temporary table problem in function

Поиск
Список
Период
Сортировка
От Krzysztof Koch
Тема temporary table problem in function
Дата
Msg-id 3BB82256.3010806@poczta.onet.pl
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: R Talbot
Дата:
Сообщение: Perl connection to Postgres?
Следующее
От: J C Lawrence
Дата:
Сообщение: GROUP BY with wildcard non-deterministic fields?