1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-13 14:22:43 +03:00

Incorporate examples and doc patches from Mark Kirkwood and David Fetter.

This commit is contained in:
Tom Lane
2005-01-14 01:16:52 +00:00
parent 29e58330a6
commit a294726bc1
3 changed files with 203 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.76 2005/01/10 00:04:43 tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.77 2005/01/14 01:16:52 tgl Exp $
PostgreSQL documentation
-->
@@ -537,6 +537,17 @@ ALTER TABLE distributors
</programlisting>
</para>
<para>
To change an integer column containing UNIX timestamps to <type>timestamp
with time zone</type> via a <literal>USING</literal> clause:
<programlisting>
ALTER TABLE foo
ALTER COLUMN foo_timestamp TYPE timestamp with time zone
USING
timestamp with time zone 'epoch' + foo_timestamp * interval '1 second';
</programlisting>
</para>
<para>
To rename an existing column:
<programlisting>