Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP

From: Colin Wetherbee <cww(at)denterprises(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP
Date: 2008-03-13 23:10:35
Message-ID: 47D9B46B.8070201@denterprises.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Colin Wetherbee <cww(at)denterprises(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2008-03-13 23:12:47 Re: postgre vs MySQL
Previous Message Tom Lane 2008-03-13 22:37:35 Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP