Re: check contraint allows illegal value?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: check contraint allows illegal value?
Дата
Msg-id 3797.995645137@sss.pgh.pa.us
обсуждение исходный текст
Ответ на check contraint allows illegal value?  (missive@frontiernet.net (Lee Harr))
Список pgsql-bugs
missive@frontiernet.net (Lee Harr) writes:
> Is this a bug?

> create table foo( c char(2)
>     check (c in ('09', '10', '11', '12', 'n/a'))
> );

I don't think so; at least, I don't think there's any way in the general
case for the system to realize that some part of a check condition can
never succeed or never fail.  (See "halting problem".)

            regards, tom lane

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

Предыдущее
От: bonolin
Дата:
Сообщение: help for:FATAL 1: configuration file `postgresql.conf' has wrong permissions
Следующее
От: Eugene Fokin
Дата:
Сообщение: Re: libpgtcl doesn't use UTF encoding of TCL