Re: SET NULL / SET NOT NULL

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: SET NULL / SET NOT NULL
Дата
Msg-id GNELIHDDFBOCMGBFGEFOGENHCBAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: SET NULL / SET NOT NULL  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: SET NULL / SET NOT NULL  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: SET NULL / SET NOT NULL  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
> > Do we want the above syntax, or this syntax:
> >
> > ALTER TABLE blah ALTER COLUMN col SET NOT NULL;
> > ALTER TABLE blah ALTER COLUMN col SET NULL;
> 
> My only objection to the second command is that it's plain wrong.  You
> don't set anything to NULL, so don't make the command look like it.

So then how is it any more wrong than SET NOT NULL?

It should almost be ADD NOT NULL ...

Chris


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Problem with reloading groups in pg_hba.conf
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with reloading groups in pg_hba.conf