Re: BUG #3450: Multiple Stored procedure calls cause issue with temp tables...

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: BUG #3450: Multiple Stored procedure calls cause issue with temp tables...
Дата
Msg-id 1184657567.6187.23.camel@goldbach
обсуждение исходный текст
Ответ на BUG #3450: Multiple Stored procedure calls cause issue with temp tables...  ("Chris Bowlby" <excalibur@accesswave.ca>)
Список pgsql-bugs
On Tue, 2007-17-07 at 00:51 +0000, Chris Bowlby wrote:
> Using a temporary table of the same name in repeated calls to a stored
> procedure are causing OID failure issues

This is a (well) known bug. The problem arises because plpgsql caches
the query plan used to access the temporary table, which includes the
temp table's OID; when a new temp is created, it is assigned a new OID,
but the cached plan is not discarded.

The bug will be fixed in 8.3 (cached plans are now invalidated when
dependent DB objects change). In the mean time, you can workaround the
problem by always accessing the temporary table with EXECUTE -- see the
list archives for prior discussion.

-Neil

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #3450: Multiple Stored procedure calls cause issue with temp tables...
Следующее
От: "Hiroshi Saito"
Дата:
Сообщение: Re: BUG #3453: Error on COPY TO/FROM 'non-ascii-path'