Re: read only transaction, temporary tables

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Carl R(dot) Brune" <brune(at)ohio(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: read only transaction, temporary tables
Date: 2006-08-09 07:46:19
Message-ID: 44D992CB.6010605@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-08-09 07:56:34 Re: sizing of a server
Previous Message Mavinakuli, Prasanna (STSD) 2006-08-09 07:16:39 Syslog v/s filename in pg_ctl command