1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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.
This commit is contained in:
Robert Haas
2012-04-24 09:20:53 -04:00
parent e4f06b70c9
commit 3ce7f18e92
3 changed files with 17 additions and 0 deletions

View File

@ -288,6 +288,11 @@ SELECT CAST ( 2 AS numeric ) + 4.0;
convert between data types and a second to apply the modifier.
</para>
<para>
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.
</para>
</refsect1>
<refsect1 id="sql-createcast-notes">