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

Поиск
Список
Период
Сортировка
От Colin Wetherbee
Тема Re: Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP
Дата
Msg-id 47D9B46B.8070201@denterprises.org
обсуждение исходный текст
Ответ на 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>)
Список 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 по дате отправления:

Предыдущее
От: Guillermo Arias
Дата:
Сообщение: My CPU usage remains over 50% with Postgre
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: postgre vs MySQL