read only transaction, temporary tables

From: "Carl R(dot) Brune" <brune(at)ohio(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: read only transaction, temporary tables
Date: 2006-08-08 17:25:07
Message-ID: Pine.LNX.4.61.0608081307120.8025@cerastes.phy.ohiou.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I recently tried to do something like the following

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

and it failed because CREATE is not allowed within a read-only
transaction. The select is something long and complicated (pieced
together with php) and I'm just trying to be careful. What
other alternatives are there for accomplishing this? Preferably
simple ones...

Thanks,

Carl Brune

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-08-08 17:35:19 Re: Fwd: Strange behaviour of RULE (selecting last inserted ID of 'sequenced' column)
Previous Message Jeff Davis 2006-08-08 16:54:12 Re: Practical maximums (was Re: PostgreSQL theoretical