Re: lifetime of temp schema versus compiled image of plpgsql proc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lifetime of temp schema versus compiled image of plpgsql proc
Дата
Msg-id 14587.1082686561@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: lifetime of temp schema versus compiled image of plpgsql proc  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-sql
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Dennis wrote:
>> So I should be using EXECUTE for all access to the temp tables? ie inserts, 
>> and selects (in this case). Should I use execute for the table creation? 

> All access from plpgsql functions for temp tables should use EXECUTE,

I think that advice is not correct nor relevant to Dennis' problem.  You
need EXECUTE if you are dropping and recreating temp tables within the
lifetime of a single connection, but he didn't do that.  Even if he did
do it and hasn't told us so, that does not explain why the error message
complains about the temp *schema* and not a temp table.  There's
something very strange here, because the temp schema name for a given
session is definitely fixed for the life of the session.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: lifetime of temp schema versus compiled image of plpgsql proc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Is there an easy way to normalize-space with given string functions