Re: lifetime of temp schema versus compiled image of plpgsql proc
В списке pgsql-sql по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера