Re: Check constraints do not seem to be working!!!

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Check constraints do not seem to be working!!!
Дата
Msg-id b7652529f4403052c343184ec918b76d1f018c57.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Check constraints do not seem to be working!!!  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Ответы Re: Check constraints do not seem to be working!!!  (Jitendra Loyal <jitendra.loyal@gmail.com>)
Список pgsql-general
On Wed, 2020-11-11 at 11:47 +0100, Tomas Vondra wrote:
> you may do this, for example:
> 
>     (b it not null and b = true) and (c is not null)
> 
> Or something like that.

My (equivalent) suggestion:

   b IS TRUE AND c IS NOT NULL

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Peter Coppens
Дата:
Сообщение: Re: Execution plan does not use index
Следующее
От: Jitendra Loyal
Дата:
Сообщение: Re: Check constraints do not seem to be working!!!