read only transaction, temporary tables - Mailing list pgsql-general

From Carl R. Brune
Subject read only transaction, temporary tables
Date
Msg-id Pine.LNX.4.61.0608081307120.8025@cerastes.phy.ohiou.edu
Whole thread Raw
Responses Re: read only transaction, temporary tables  (John DeSoi <desoi@pgedit.com>)
List 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

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: running PostGres without installing it
Next
From: Ben
Date:
Subject: Re: DISTINCT to get distinct *substrings*?