Re: DOMAIN NEED CAST ? - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: DOMAIN NEED CAST ?
Date
Msg-id 1061146728.39706.101.camel@jester
Whole thread Raw
In response to Re: DOMAIN NEED CAST ?  (ivan <iv@psycho.pl>)
Responses Re: DOMAIN NEED CAST ?
List pgsql-hackers
On Sun, 2003-08-17 at 14:30, ivan wrote:
> but in real alias_to_int is equal to int, only with other name;
> its should be like typedef from c/c++ ?

Not necessarily.

CREATE DOMAIN alias_to_int AS INT CHECK(VALUE BETWEEN 1 AND 4);

The above is very different than plain old integer.

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: bidirectional cursors on views
Next
From: Shachar Shemesh
Date:
Subject: Re: bidirectional cursors on views