Re: SET NULL / SET NOT NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SET NULL / SET NOT NULL
Дата
Msg-id 25894.1016903861@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SET NULL / SET NOT NULL  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: SET NULL / SET NOT NULL  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> I have throught of at least two problems with changing nullability.  The
> first is primary keys.  I have to prevent people setting a column involved
> in a PK to null, right?

Probably so.

> The second is DOMAINs - what if they change a NOT NULL domain in a colun
> to NULL?  Shoudl I just outright prevent people from altering domain-based
> columns nullability>

I don't think you need worry about this.  The prototype DOMAIN
implementation is broken anyway --- it should not be transposing
domain constraints into column constraints, but should keep 'em
separate.  The column-level attnotnull setting should be independent
of whether the domain enforces not-nullness or not.
        regards, tom lane


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

Предыдущее
От: Greg Copeland
Дата:
Сообщение: Re: notification: pg_notify ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: notification: pg_notify ?