Re: BUG #1324: create domain strange behaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tzvetan Tzankov" <tzankov(at)noxis(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1324: create domain strange behaviour
Date: 2004-11-17 15:44:35
Message-ID: 16059.1100706275@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> Description: create domain strange behaviour

IIRC, plpgsql is not yet domain-aware and won't check constraints
associated with domain values. I'd suggest declaring
generate_session_id() to return plain text, so that the domain coercion
and constraint test happen after the function returns.

Yes, this is a bug in plpgsql, but it's not going to get fixed right
away.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Josh Berkus 2004-11-17 19:34:55 a question about the installation
Previous Message PostgreSQL Bugs List 2004-11-17 15:02:41 BUG #1324: create domain strange behaviour