Re: PostgreSQL does CAST implicitely between int and a domain derived from int

Поиск
Список
Период
Сортировка
От Jean-Michel Pouré
Тема Re: PostgreSQL does CAST implicitely between int and a domain derived from int
Дата
Msg-id 1251567521.4882.4.camel@acer
обсуждение исходный текст
Ответ на Re: PostgreSQL does CAST implicitely between int and a domain derived from int  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: PostgreSQL does CAST implicitely between int and a domain derived from int  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Le samedi 29 août 2009 à 11:16 -0400, Bruce Momjian a écrit :
> > Why is the query planner displaying ::integer
> > What does it mean?
>
> ::integer casts a data type to INTEGER.  It is the same as CAST().

In Drupal database, we have two types:

integer
int_unsigned

CREATE DOMAIN int_unsigned
  AS integer
CONSTRAINT int_unsigned_check CHECK ((VALUE >= 0));

Why do queries cast between integer and int_unsigned?

Kind regards,
Jean-Michel

Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL does CAST implicitely between int and a domain derived from int
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL does CAST implicitely between int and a domain derived from int