Re: SELECT INTO and ON COMMIT

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: SELECT INTO and ON COMMIT
Дата
Msg-id 20150513233829.GD31547@momjian.us
обсуждение исходный текст
Ответ на SELECT INTO and ON COMMIT  (Yves Dorfsman <yves@zioup.com>)
Ответы Re: SELECT INTO and ON COMMIT
Список pgsql-general
On Wed, May 13, 2015 at 05:29:36PM -0600, Yves Dorfsman wrote:
>
> Is there any way to add an ON COMMIT clause to a SELECT INTO TEMP TABLE?

Well CREATE TABLE has a ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP }
clause, but I don't see it in SELECT INTO, so it seems you have to
create the temp table using CREATE TABLE, then INSERT ... SELECT.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


В списке pgsql-general по дате отправления:

Предыдущее
От: Yves Dorfsman
Дата:
Сообщение: SELECT INTO and ON COMMIT
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: SELECT INTO and ON COMMIT