temporary table problem in function

From: Krzysztof Koch <improwizator(at)poczta(dot)onet(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: temporary table problem in function
Date: 2001-10-01 07:59:18
Message-ID: 3BB82256.3010806@poczta.onet.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)poczta(dot)onet(dot)pl
<= cc: kris_improwe(at)poczta(dot)onet(dot)pl
--------------------------------

Browse pgsql-general by date

  From Date Subject
Next Message Szabo Zoltan 2001-10-01 08:09:17 Re: enum data type
Previous Message Emmanuel SARACCO 2001-10-01 07:57:29 number of views supported in 7.1