| От | Michael Fuhr |
|---|---|
| Тема | Re: temp tables in functions? |
| Дата | |
| Msg-id | 20070208101842.GA74109@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Re: temp tables in functions? ("Shoaib Mir" <shoaibmir@gmail.com>) |
| Ответы |
Re: temp tables in functions?
|
| Список | pgsql-general |
On Thu, Feb 08, 2007 at 12:29:37PM +0500, Shoaib Mir wrote: > Something like this will help you: > > execute immediate 'create temporary table test (a number) on commit drop'; PL/pgSQL doesn't recognize "immediate" and number isn't a PostgreSQL type so the above yields a syntax error. Also, EXECUTE isn't necessary for the CREATE TABLE statement, although as Bruno mentioned EXECUTE will be necessary for other statements due to plan caching. And ON COMMIT DROP won't help if you call the function multiple times in the same transaction. -- Michael Fuhr
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера