Re: Re: Changing the default value of an inherited column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: Changing the default value of an inherited column
Дата
Msg-id 26696.986270250@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: Changing the default value of an inherited column  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: Re: Changing the default value of an inherited column  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> At 13:27 2/04/01 -0400, Tom Lane wrote:
>> Philip: the rule that pg_dump needs to apply w.r.t. defaults for
>> inherited fields is that if an inherited field has a default and
>> either (a) no parent table supplies a default, or (b) any parent
>> table supplies a default different from the child's, then pg_dump
>> had better emit the child field explicitly.

> What is happening with IS NULL constraints (and type names)?

NOT NULL on a child field would only force it to be dumped if none
of the parents say NOT NULL.  Type name really is not an issue since
it will have to be the same in all the tables anyway; I wouldn't bother
expending any code there.
        regards, tom lane


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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: Re: Changing the default value of an inherited column
Следующее
От: Tom Lane
Дата:
Сообщение: Do we have any platforms that allow null pointer dereference?