mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +03:00
Remove restriction that cast functions cannot be volatile. This
restriction was debatable to begin with, but it has now become obvious that it breaks forward-porting of user-defined types; contrib/lo being the most salient example.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_cast.sgml,v 1.6 2002/10/04 22:08:44 tgl Exp $ -->
|
||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_cast.sgml,v 1.6.2.1 2003/02/01 22:09:41 tgl Exp $ -->
|
||||
|
||||
<refentry id="SQL-CREATECAST">
|
||||
<refmeta>
|
||||
@@ -143,7 +143,7 @@ SELECT 'The time is ' || CAST(now() AS text);
|
||||
be schema-qualified. If it is not, the function will be looked
|
||||
up in the path. The argument type must be identical to the
|
||||
source type, the result data type must match the target type of
|
||||
the cast. Cast functions must be marked immutable or stable.
|
||||
the cast.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user