Re: Does postgresql know the check condition is valid or not. or can check deduce from multiple conditions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Does postgresql know the check condition is valid or not. or can check deduce from multiple conditions
Дата
Msg-id 2977557.1649218225@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Does postgresql know the check condition is valid or not. or can check deduce from multiple conditions  (Jian He <hejian.mark@gmail.com>)
Список pgsql-sql
Jian He <hejian.mark@gmail.com> writes:
> CREATE TABLE emp (test_check int check ( test_check >1 and test_check
> < 0 ));

> Even with the above mentioned step, does postgresql know above check
> constraint condition always false.

No, not explicitly.  If the constraint always fails, that is
your problem not Postgres'.

            regards, tom lane



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

Предыдущее
От: Jian He
Дата:
Сообщение: Does postgresql know the check condition is valid or not. or can check deduce from multiple conditions
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Does postgresql know the check condition is valid or not. or can check deduce from multiple conditions