use of temporary tables in functions

Поиск
Список
Период
Сортировка
От Administrator
Тема use of temporary tables in functions
Дата
Msg-id 5.1.0.14.0.20020417160116.00a1dbb0@192.168.0.12
обсуждение исходный текст
Ответы Re: use of temporary tables in functions  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
Hi,

While using a temporary table in a function, it seems that after dropping the table it stays in the functions cache.

create function tmp_fn() returns integer as'
begin
        create temporary table test(id integer primary key, x_val integer);
        insert into test (id, x_val) values(1,2);
        drop  table test;
return 1;
end;'
language 'plpgsql';

The next time it comes back with a message "Relation 128863 does not exist". How can we avoid the oid of the table from being left in the cache?

Thanks,
Alfred

www.traveljadoo.com - we add magic to your travel

В списке pgsql-general по дате отправления:

Предыдущее
От: Jean-Michel POURE
Дата:
Сообщение: Re: Insert Unicode
Следующее
От: Matthew Stanfield
Дата:
Сообщение: Incorrect password using pg_ctl