Re: add additional options to CREATE TABLE ... AS

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: add additional options to CREATE TABLE ... AS
Дата
Msg-id Pine.BSO.4.63.0602141722160.27266@leary.csoft.net
обсуждение исходный текст
Ответ на Re: add additional options to CREATE TABLE ... AS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches

On Tue, 14 Feb 2006, Tom Lane wrote:

> I kinda wonder why bother at all.  I don't see any good reason why
> people shouldn't issue two statements.
>

Well if you don't know what the resulting columns are going to be that
could be difficult.  There are a number of reasons why this patch is an
improvement.

1) People have requested this feature:
http://archives.postgresql.org/pgsql-bugs/2005-11/msg00163.php
http://archives.postgresql.org/pgsql-bugs/2004-03/msg00186.php

2) The SQL spec requires ON COMMIT for CREATE TEMP TABLE AS SELECT.

3) The unification of EXECUTE and SELECT options actually simplifies the
grammar by removing the WithOidsAs production hack.

Kris Jurka

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Free WAL caches on switching segments
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: add additional options to CREATE TABLE ... AS