Creating temp tables inside read only transactions

Поиск
Список
Период
Сортировка
От mike beeper
Тема Creating temp tables inside read only transactions
Дата
Msg-id COL103-W29A6B90398FBE6770F8A25A7410@phx.gbl
обсуждение исходный текст
Ответы Re: Creating temp tables inside read only transactions  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-general
I have a function that creates a temp table, populate it with results during intermediate processing, and reads from it at the end.  When the transaction is marked as read only, it does not allow creation of temp table, even though there are no permanent writes to the db.  Are there any workarounds? The following block errors out.

SET TRANSACTION ISOLATION LEVEL READ COMMITTED READ ONLY;
create temp table test(test int);

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Add Foreign Keys To Table
Следующее
От: Alan Hodgson
Дата:
Сообщение: Re: Add Foreign Keys To Table