Re: read only transaction, temporary tables

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: read only transaction, temporary tables
Дата
Msg-id 44D992CB.6010605@archonet.com
обсуждение исходный текст
Ответ на Re: read only transaction, temporary tables  ("Carl R. Brune" <brune@ohio.edu>)
Ответы Re: read only transaction, temporary tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Carl R. Brune wrote:
> I should have added that I want to make further use of the temporary
> table after the COMMIT -- the rollback approach you propose makes it
> go away.

In which case the transaction isn't READONLY. You have two options:

CREATE TEMPORARY TABLE ... AS SELECT ...
BEGIN READONLY;
...
COMMIT;

Or, create a user with only-read permissions on your database and
connect as that user.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: clients and libs and versions (oh my)
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: sizing of a server