Re: DOMAIN NEED CAST ?

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: ivan <iv(at)psycho(dot)pl>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DOMAIN NEED CAST ?
Date: 2003-08-17 18:58:48
Message-ID: 1061146728.39706.101.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shachar Shemesh 2003-08-17 19:28:31 Re: bidirectional cursors on views
Previous Message Tom Lane 2003-08-17 18:56:59 Re: bidirectional cursors on views