Re: BUG #1324: create domain strange behaviour - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1324: create domain strange behaviour
Date
Msg-id 16059.1100706275@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1324: create domain strange behaviour  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.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

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1324: create domain strange behaviour
Next
From: Josh Berkus
Date:
Subject: a question about the installation