Skip to content

Commit ed19b91

Browse files
committed
Add mention that ALTER TABLE RENAME affects indexes and sequences too.
1 parent 97a6676 commit ed19b91

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

doc/src/sgml/ref/alter_table.sgml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.32 2001/11/18 20:35:02 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.33 2001/11/22 03:42:32 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -169,11 +169,10 @@ ALTER TABLE <replaceable class="PARAMETER">table</replaceable>
169169
The <literal>ALTER COLUMN SET STATISTICS</literal> form allows you to
170170
set the statistics-gathering target for subsequent
171171
<xref linkend="sql-analyze" endterm="sql-analyze-title"> operations.
172-
The <literal>RENAME</literal> clause causes the name of a table or column
173-
to change without changing any of the data contained in
174-
the affected table. Thus, the table or column will
175-
remain of the same type and size after this command is
176-
executed.
172+
The <literal>RENAME</literal> clause causes the name of a table,
173+
column, index, or sequence to change without changing any of the
174+
data. The data will remain of the same type and size after the
175+
command is executed.
177176
The ADD <replaceable class="PARAMETER">table constraint definition</replaceable> clause
178177
adds a new constraint to the table using the same syntax as <xref
179178
linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">.
@@ -345,8 +344,8 @@ DROP TABLE temp;
345344
</para>
346345

347346
<para>
348-
The clauses to rename columns and tables are <productname>Postgres</productname>
349-
extensions from SQL92.
347+
The clauses to rename tables, columns, indexes, and sequences are
348+
<productname>Postgres</productname> extensions from SQL92.
350349
</para>
351350

352351
</refsect2>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy