Assert failure in ATPrepAddPrimaryKey

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Assert failure in ATPrepAddPrimaryKey
Дата
Msg-id CAMbWs48bc-k_-1fh0dZpAhp_LiR5MfEX9haystmoBboR_4czCQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Assert failure in ATPrepAddPrimaryKey  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
I ran into an Assert failure in ATPrepAddPrimaryKey() with the query
below:

CREATE TABLE t0(c0 boolean);
CREATE TABLE t1() INHERITS(t0);

# ALTER TABLE t0 ADD CONSTRAINT m EXCLUDE ((1) WITH =);
server closed the connection unexpectedly

The related codes are

    foreach(lc, stmt->indexParams)
    {
        IndexElem  *elem = lfirst_node(IndexElem, lc);
        Constraint *nnconstr;

        Assert(elem->expr == NULL);

It seems to be introduced by b0e96f3119.

Thanks
Richard

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [17] CREATE SUBSCRIPTION ... SERVER
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: [PoC] pg_upgrade: allow to upgrade publisher node