Index: doc/src/sgml/ref/alter_table.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v
retrieving revision 1.76
diff -c -r1.76 alter_table.sgml
*** doc/src/sgml/ref/alter_table.sgml 10 Jan 2005 00:04:43 -0000 1.76
--- doc/src/sgml/ref/alter_table.sgml 12 Jan 2005 09:01:19 -0000
***************
*** 538,543 ****
--- 538,554 ----
+ To change an integer containing a UNIX timestamp to a timestamp
+ with time zone via a USING clause:
+
+ ALTER TABLE foo
+ ALTER COLUMN foo_timestamp TYPE timestamp with time zone
+ USING
+ timestamp with time zone 'epoch' + foo_timestamp * interval '1 second';
+
+
+
+
To rename an existing column:
ALTER TABLE distributors RENAME COLUMN address TO city;