Add mention that ALTER TABLE RENAME affects indexes and sequences too.

This commit is contained in:
Bruce Momjian 2001-11-22 03:42:32 +00:00
parent 97a66763d3
commit ed19b9149a
1 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.32 2001/11/18 20:35:02 petere Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.33 2001/11/22 03:42:32 momjian Exp $
Postgres documentation Postgres documentation
--> -->
@ -169,11 +169,10 @@ ALTER TABLE <replaceable class="PARAMETER">table</replaceable>
The <literal>ALTER COLUMN SET STATISTICS</literal> form allows you to The <literal>ALTER COLUMN SET STATISTICS</literal> form allows you to
set the statistics-gathering target for subsequent set the statistics-gathering target for subsequent
<xref linkend="sql-analyze" endterm="sql-analyze-title"> operations. <xref linkend="sql-analyze" endterm="sql-analyze-title"> operations.
The <literal>RENAME</literal> clause causes the name of a table or column The <literal>RENAME</literal> clause causes the name of a table,
to change without changing any of the data contained in column, index, or sequence to change without changing any of the
the affected table. Thus, the table or column will data. The data will remain of the same type and size after the
remain of the same type and size after this command is command is executed.
executed.
The ADD <replaceable class="PARAMETER">table constraint definition</replaceable> clause The ADD <replaceable class="PARAMETER">table constraint definition</replaceable> clause
adds a new constraint to the table using the same syntax as <xref adds a new constraint to the table using the same syntax as <xref
linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">. linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">.
@ -345,8 +344,8 @@ DROP TABLE temp;
</para> </para>
<para> <para>
The clauses to rename columns and tables are <productname>Postgres</productname> The clauses to rename tables, columns, indexes, and sequences are
extensions from SQL92. <productname>Postgres</productname> extensions from SQL92.
</para> </para>
</refsect2> </refsect2>