From 3ce7f18e92e9687308ed5d9e516eb7e2f0decadb Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 24 Apr 2012 09:20:53 -0400 Subject: Casts to or from a domain type are ignored; warn and document. Prohibiting this outright would break dumps taken from older versions that contain such casts, which would create far more pain than is justified here. Per report by Jaime Casanova and subsequent discussion. --- doc/src/sgml/ref/create_cast.sgml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_cast.sgml b/doc/src/sgml/ref/create_cast.sgml index 964cbf4d41a..29ea298a468 100644 --- a/doc/src/sgml/ref/create_cast.sgml +++ b/doc/src/sgml/ref/create_cast.sgml @@ -288,6 +288,11 @@ SELECT CAST ( 2 AS numeric ) + 4.0; convert between data types and a second to apply the modifier. + + A cast to or from a domain type currently has no effect. Casting + to or from a domain uses the casts associated with its underlying type. + + -- cgit v1.2.3