Re: Odd behavior of partitioned ALTER TABLE ONLY ... ADD PRIMARY KEY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd behavior of partitioned ALTER TABLE ONLY ... ADD PRIMARY KEY
Дата
Msg-id 16954.1555875629@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Odd behavior of partitioned ALTER TABLE ONLY ... ADD PRIMARY KEY  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2019-Apr-21, Tom Lane wrote:
>> ISTM that this is a bug, not a feature: if there's any point at
>> all to saying ONLY in this context, it's that we're not supposed
>> to be doing anything as expensive as adding a new constraint to
>> a child partition.  No?  So I think that this should have failed.

> Hmm, yeah, this is not intentional and I agree that it shouldn't be
> doing this.

>> We need to require the partition(s) to already have attnotnull set.

> Sounds good to me, yes.

> Do you want me to see about this?

It's tied up in the other patch I'm working on, so I can deal with it.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Odd behavior of partitioned ALTER TABLE ONLY ... ADD PRIMARY KEY
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ALTER TABLE with ADD COLUMN and ADD PRIMARY KEY USING INDEX throws spurious "column contains null values"