ERROR: no NOT NULL constraint found to drop

Поиск
Список
Период
Сортировка
От Richard Guo
Тема ERROR: no NOT NULL constraint found to drop
Дата
Msg-id CAMbWs48astPDb3K+L89wb8Yju0jM_Czm8svmU=Uzd+WM61Cr6Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: ERROR: no NOT NULL constraint found to drop  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-bugs
I run into error $subject with the query below:

# create table t1 (c int primary key null unique);
CREATE TABLE
# create table t2 (like t1);
CREATE TABLE
# alter table t2 alter c drop not null;
ERROR:  no NOT NULL constraint found to drop

This starts since e056c557ae.  I guess this shouldn't happen since the
comment says so.

        /* this shouldn't happen */
        elog(ERROR, "no NOT NULL constraint found to drop");

Thanks
Richard

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Need assistance in performance tuning of a particular query
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: ERROR: no NOT NULL constraint found to drop