ALTER TABLE results in "could not find cast from 3904 to 3831"

Поиск
Список
Период
Сортировка
От Manuel Rigger
Тема ALTER TABLE results in "could not find cast from 3904 to 3831"
Дата
Msg-id CA+u7OA4n2Q8G1DD5MEp+mu08ayB+ULRFrG4s_v3LhOj8f4bX-g@mail.gmail.com
обсуждение исходный текст
Ответы Re: ALTER TABLE results in "could not find cast from 3904 to 3831"  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-bugs
Hi everyone,

Consider the following test case:

CREATE TABLE t0(c0 int4range UNIQUE, FOREIGN KEY (c0) REFERENCES t0(c0));
ALTER TABLE t0 ALTER c0 SET DATA TYPE int4range; -- ERROR:  could not
find cast from 3904 to 3831

Unexpectedly, the ALTER TABLE results in an error. If, for example,
the references to the type "int4range" are replaced by "int", the two
statements execute without error.

Best,
Manuel



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #16079: Question Regarding the BUG #16064
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: ALTER TABLE results in "could not find cast from 3904 to 3831"