Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP - Mailing list pgsql-general

From Colin Wetherbee
Subject Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP
Date
Msg-id 47D9B46B.8070201@denterprises.org
Whole thread Raw
In response to Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Colin Wetherbee <cww@denterprises.org> writes:
>> Colin Wetherbee wrote:
>>> cww=# CREATE TEMP TABLE foo ON COMMIT DROP AS (SELECT 1 AS a, 2 AS b);
>
>> FWIW, the output of \h CREATE TABLE in both 8.1 and 8.2 suggest that
>> this should be possible.
>
> "\h CREATE TABLE AS" is what describes this variant ...

Ah, yes, of course. :)

Colin


pgsql-general by date:

Previous
From: Guillermo Arias
Date:
Subject: My CPU usage remains over 50% with Postgre
Next
From: Adrian Klaver
Date:
Subject: Re: postgre vs MySQL