Re: [GENERAL] Using a domain

2011-11-30 Thread Tom Lane
Daniele Varrazzo writes: > I'm trying to use a domain to define a data type constraint, let's say > an hypothetical uk_post_code with pattern LNNLL. I'd enforce no > whitespaces, all uppercase. > I would also need a way to normalize before validate: given an input > such as "w3 6bq", normalize it

[GENERAL] Using a domain

2011-11-30 Thread Daniele Varrazzo
Hello, I'm trying to use a domain to define a data type constraint, let's say an hypothetical uk_post_code with pattern LNNLL. I'd enforce no whitespaces, all uppercase. I would also need a way to normalize before validate: given an input such as "w3 6bq", normalize it to W36BQ before trying to a