mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Mention that when alter rewrites a table, indexes are also rebuilt.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.114 2010/06/09 17:48:10 alvherre Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.115 2010/06/24 14:57:21 momjian Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@@ -689,8 +689,8 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Adding a column with a non-null default or changing the type of an
|
Adding a column with a non-null default or changing the type of an
|
||||||
existing column will require the entire table to be rewritten. This
|
existing column will require the entire table and indexes to be rewritten.
|
||||||
might take a significant amount of time for a large table; and it will
|
This might take a significant amount of time for a large table; and it will
|
||||||
temporarily require double the disk space. Adding or removing a system
|
temporarily require double the disk space. Adding or removing a system
|
||||||
<literal>oid</> column likewise requires rewriting the entire table.
|
<literal>oid</> column likewise requires rewriting the entire table.
|
||||||
</para>
|
</para>
|
||||||
|
Reference in New Issue
Block a user