Re: Remove comment about manually flipping attnotnull

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove comment about manually flipping attnotnull
Дата
Msg-id 6463.1406220669@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Remove comment about manually flipping attnotnull  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Remove comment about manually flipping attnotnull  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> catalogs.sgml has this comment:
>        This represents a not-null constraint.  It is possible to
>        change this column to enable or disable the constraint.

> Someone on irc just took that as "permission" to do so manually...

Did anything especially bad happen?  Obviously, turning it on wouldn't
have verified that the column contains no nulls, but hopefully anyone
who's bright enough to do manual catalog updates would realize that.
I think things would generally have worked otherwise, in particular
sinval signalling would have happened (IIRC).

> That comment has been there since 1efd7330c/2000-11-29, in the the
> initial commit adding catalogs.sgml. Does somebody object to just
> removing the second part of the comment in all branches?

Seems like a reasonable idea, in view of the fact that we're thinking
about adding pg_constraint entries for NOT NULL, in which case frobbing
attnotnull by itself would definitely be a bad thing.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Remove comment about manually flipping attnotnull
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: parametric block size?