Index: src/include/catalog/pg_proc.h
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/include/catalog/pg_proc.h,v
retrieving revision 1.343
diff -c -r1.343 pg_proc.h
*** src/include/catalog/pg_proc.h	3 Aug 2004 20:32:35 -0000	1.343
--- src/include/catalog/pg_proc.h	12 Aug 2004 05:24:31 -0000
***************
*** 1441,1446 ****
--- 1441,1448 ----
  DESCR("greater-than-or-equal");
  DATA(insert OID = 1157 (  timestamptz_gt   PGNSP PGUID 12 f f t f i 2 16 "1184 1184" _null_	timestamp_gt - _null_ ));
  DESCR("greater-than");
+ DATA(insert OID = 1158 (  to_timestamp	   PGNSP PGUID 14 f f t f i 1 1184 "701" _null_	"select (\'epoch\'::timestamptz + $1 * \'1 second\'::interval) at time zone \'UTC\'" - _null_ ));
+ DESCR("convert UNIX epoch to timestamptz");
  DATA(insert OID = 1159 (  timezone		   PGNSP PGUID 12 f f t f i 2 1114 "25 1184" _null_  timestamptz_zone - _null_ ));
  DESCR("adjust timestamp to new time zone");
  
Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/func.sgml,v
retrieving revision 1.217
diff -c -r1.217 func.sgml
*** doc/src/sgml/func.sgml	10 Aug 2004 00:55:03 -0000	1.217
--- doc/src/sgml/func.sgml	12 Aug 2004 05:24:33 -0000
***************
*** 3937,3943 ****
      <xref linkend="functions-formatting-table"> lists them.
      These functions all follow a common calling convention: the first
      argument is the value to be formatted and the second argument is a
!     template that defines the output or input format.
     </para>
  
      <table id="functions-formatting-table">
--- 3937,3949 ----
      <xref linkend="functions-formatting-table"> lists them.
      These functions all follow a common calling convention: the first
      argument is the value to be formatted and the second argument is a
!     template that defines the output or input format. 
!    </para>
!    <para>
!     The <function>to_timestamp</function> function can also take a single 
!     <type>double precision</type> argument to convert from Unix epoch to 
!     <type>timestamp with time zone</type>.
!     (<type>Integer</type> Unix epochs are implicitly cast to <type>double precision</type>.)
     </para>
  
      <table id="functions-formatting-table">
***************
*** 3995,4000 ****
--- 4001,4014 ----
  	<entry>convert string to time stamp</entry>
  	<entry><literal>to_timestamp('05&nbsp;Dec&nbsp;2000', 'DD&nbsp;Mon&nbsp;YYYY')</literal></entry>
         </row>
+ 
+        <row>
+ 	<entry><literal><function>to_timestamp</function>(<type>double precision</type>)</literal></entry>
+ 	<entry><type>timestamp with time zone</type></entry>
+ 	<entry>convert UNIX epoch to time stamp</entry>
+ 	<entry><literal>to_timestamp(200120400)</literal></entry>
+        </row>
+ 
         <row>
  	<entry><literal><function>to_number</function>(<type>text</type>, <type>text</type>)</literal></entry>
  	<entry><type>numeric</type></entry>
