Skip site navigation (1) Skip section navigation (2)

pgsql: When you do "ARRAY[...]::domain", where domain is a domain over

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: When you do "ARRAY[...]::domain", where domain is a domain over
Date: 2009-11-13 16:09:20
Message-ID: 20091113160920.E5F4E753FB7@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
When you do "ARRAY[...]::domain", where domain is a domain over an array type,
we need to check domain constraints. We used to do it correctly, but 8.4
introduced a separate code path for the "ARRAY[]::arraytype" case to infer
the type of an empty ARRAY construct from the cast target, and forgot to take
domains into account.

Per report from Florian G. Pflug.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.241.2.2 -> r1.241.2.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c?r1=1.241.2.2&r2=1.241.2.3)

pgsql-committers by date

Next:From: User BmomjianDate: 2009-11-13 19:37:23
Subject: pg-migrator - pg_migrator: Re-recommend vacuumdb because we don't
Previous:From: Heikki LinnakangasDate: 2009-11-13 16:09:10
Subject: pgsql: When you do "ARRAY[...]::domain", where domain is a domain over

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group