Re: cataloguing NOT NULL constraints

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: cataloguing NOT NULL constraints
Дата
Msg-id 045dec3f-9b3d-aa44-0c99-85f6992306c7@gmail.com
обсуждение исходный текст
Ответ на Re: cataloguing NOT NULL constraints  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: cataloguing NOT NULL constraints  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hello Alvaro,

Please look at an anomaly introduced with b0e96f311.
The following script:
CREATE TABLE a ();
CREATE TABLE b (i int) INHERITS (a);
CREATE TABLE c () INHERITS (a, b);

ALTER TABLE a ADD COLUMN i int NOT NULL;

results in:
NOTICE:  merging definition of column "i" for child "b"
NOTICE:  merging definition of column "i" for child "c"
ERROR:  tuple already updated by self

(This is similar to bug #18297, but ATExecAddColumn() isn't guilty in this
case.)

Best regards,
Alexander



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: XLog size reductions: smaller XLRec block header for PG17
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Commitfest 2024-01 is now closed