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

From Tom Lane
Subject Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP
Date
Msg-id 24652.1205447855@sss.pgh.pa.us
Whole thread Raw
In response to Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP  (Colin Wetherbee <cww@denterprises.org>)
Responses Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP  (Colin Wetherbee <cww@denterprises.org>)
List pgsql-general
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 ...

            regards, tom lane

pgsql-general by date:

Previous
From: Colin Wetherbee
Date:
Subject: Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP
Next
From: Guillermo Arias
Date:
Subject: My CPU usage remains over 50% with Postgre