Rod Taylor <[EMAIL PROTECTED]> writes:
>> CREATE DOMAIN doc_ident AS bigint NOT NULL DEFAULT  
>> nextval('doc.seq_doc_id'::text)
>> CONSTRAINT cnst_chk_doc_id CHECK ( fn_chk_doc_id(VALUE) ) ;

> It comes out right for me in 7.4.2.

AFAICT the relevant fix was well before 7.4 release:

2003-10-04 14:22  tgl

        * src/: backend/utils/adt/ruleutils.c,
        backend/utils/cache/lsyscache.c, include/utils/lsyscache.h: Fix
        pg_get_constraintdef() to ensure CHECK constraints are always shown
        with required outer parentheses.  Breakage seems to be leftover
        from domain-constraint patches.  This could be smarter about
        suppressing extra parens, but at this stage of the release cycle I
        want certainty not cuteness.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

Reply via email to