Re: CTAS not honoring NOT NULL, DEFAULT modifiers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CTAS not honoring NOT NULL, DEFAULT modifiers
Дата
Msg-id 12700.1271684881@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CTAS not honoring NOT NULL, DEFAULT modifiers  (Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>)
Ответы Re: CTAS not honoring NOT NULL, DEFAULT modifiers
Список pgsql-hackers
Nikhil Sontakke <nikhil.sontakke@enterprisedb.com> writes:
> I think the semantics should be pretty ok as is. But I saw another DB
> honoring the NOT NULL modifiers and hence the wonder if there is
> something about this in the standards.

Actually, SQL:2008 does say that if an output column of the SELECT is
known not nullable, then the created table should have the NOT NULL
property for that column.  We don't implement anything about "known not
nullable", though, so I'd view this as a small part of an unimplemented
SQL feature.  The usefulness seems rather debatable anyway.
        regards, tom lane


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

Предыдущее
От: Nikhil Sontakke
Дата:
Сообщение: Re: CTAS not honoring NOT NULL, DEFAULT modifiers
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: walreceiver is uninterruptible on win32