RE: Create table in functions

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема RE: Create table in functions
Дата
Msg-id 000601c00d92$7fa6d480$2801007e@tpf.co.jp
обсуждение исходный текст
Ответ на Re: Create table in functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> -----Original Message-----
> From: Tom Lane
>
> "Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
> > Hmm,Andreas's original function seems to contain other statements.
> > If the function contains DML statements for the table Temp_Num_Table,
> > it wouldn't work properly. i.e 1st call would work but 2nd call woudn't.
>
> Are you thinking about plpgsql's caching of query plans (and
> specifically the table OIDs stored in those plans)

Yes.
We can create a table and insert into it in plpgsql functions if we
call such functions once per session(connection).
Would it be the spec of plpgsql functions in 7.1 ?

Regards.

Hiroshi Inoue



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Create table in functions
Следующее
От: tolik@aaanet.ru (Anatoly K. Lasareff)
Дата:
Сообщение: Re: Null function parameters