Re: PostgreSQL does CAST implicitely between int and a domain derived from int - Mailing list pgsql-performance

From Jean-Michel Pouré
Subject Re: PostgreSQL does CAST implicitely between int and a domain derived from int
Date
Msg-id 1251567521.4882.4.camel@acer
Whole thread Raw
In response to Re: PostgreSQL does CAST implicitely between int and a domain derived from int  (Bruce Momjian <bruce@momjian.us>)
Responses Re: PostgreSQL does CAST implicitely between int and a domain derived from int
List 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

Attachment

pgsql-performance by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL does CAST implicitely between int and a domain derived from int
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL does CAST implicitely between int and a domain derived from int