OSDN Git Service

I almost forgot mark in docs "to_char(interval)" as deprecated function.
authorBruce Momjian <bruce@momjian.us>
Sun, 17 Aug 2003 04:52:41 +0000 (04:52 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 17 Aug 2003 04:52:41 +0000 (04:52 +0000)
This useless routine will removed in 7.5. It's already discussed (see
hackers list archive).

Karel Zak

doc/src/sgml/func.sgml

index 6729dc6..7fb101f 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.166 2003/08/10 01:20:34 tgl Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.167 2003/08/17 04:52:41 momjian Exp $
 PostgreSQL documentation
 -->
 
@@ -3871,6 +3871,11 @@ substring('foobar' from 'o(.)b')   <lineannotation>o</lineannotation>
     </table>
 
    <para>
+    Warning. <literal><function>to_char</function>(<type>interval</type>, <type>text</type>)</literal> 
+    is deprecated and should not be used in newly-written code. Will be removed in the next version.
+   </para>
+
+   <para>
     In an output template string (for <function>to_char</>), there are certain patterns that are
     recognized and replaced with appropriately-formatted data from the value
     to be formatted.  Any text that is not a template pattern is simply