Re: Changing from NOT NULL to NULL

Поиск
Список
Период
Сортировка
От Rob Mosher
Тема Re: Changing from NOT NULL to NULL
Дата
Msg-id 4030E9B9.6000908@andrews.edu
обсуждение исходный текст
Ответ на Re: Changing from NOT NULL to NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
I will try this out as soon as I can. Thanks to all who replied.

Rob Mosher

Tom Lane wrote:

>Rob Mosher <mosher@andrews.edu> writes:
>
>
>>Is there anyway I can change a field to allowing nulls without dumping
>>the table, dropping it, recreating it as desired, and filling all the
>>data back in?
>>
>>
>
>ALTER TABLE ... DROP NOT NULL does the trick in recent releases.  Before
>that, you could resort to manually poking the attnotnull flag in
>the pg_attribute row for the field.
>
>            regards, tom lane
>
>

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

Предыдущее
От: "V i s h a l Kashyap @ [Sai Hertz And Control Systems]"
Дата:
Сообщение: PostgreSQL From xinit
Следующее
От: joseph speigle
Дата:
Сообщение: Re: PostgreSQL From xinit