aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2016-12-21 15:03:44 -0500
committerStephen Frost <sfrost@snowman.net>2016-12-21 15:03:44 -0500
commitec2bc3264ef007e6d7b6463029de689273161336 (patch)
tree86cc114eaf62e49739cb40261de2246e4bcab103 /doc/src
parent1efc5dba05a81bd91a0d3659f4a4ccfb4c36e680 (diff)
downloadpostgresql-ec2bc3264ef007e6d7b6463029de689273161336.tar.gz
postgresql-ec2bc3264ef007e6d7b6463029de689273161336.zip
Improve ALTER TABLE documentation
The ALTER TABLE documentation wasn't terribly clear when it came to which commands could be combined together and what it meant when they were. In particular, SET TABLESPACE *can* be combined with other commands, when it's operating against a single table, but not when multiple tables are being moved with ALL IN TABLESPACE. Further, the actions are applied together but not really in 'parallel', at least today. Pointed out by: Amit Langote Improved wording from Tom. Back-patch to 9.4, where the ALL IN TABLESPACE option was added. Discussion: https://www.postgresql.org/message-id/14c535b4-13ef-0590-1b98-76af355a0763%40lab.ntt.co.jp
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/alter_table.sgml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml
index 9fea2702bac..99459e1c3b3 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -702,10 +702,10 @@ ALTER TABLE ALL IN TABLESPACE <replaceable class="PARAMETER">name</replaceable>
</para>
<para>
- All the actions except <literal>RENAME</literal>,
- <literal>SET TABLESPACE</literal> and <literal>SET SCHEMA</literal>
- can be combined into
- a list of multiple alterations to apply in parallel. For example, it
+ All the forms of ALTER TABLE that act on a single table, except
+ <literal>RENAME</literal>, and <literal>SET SCHEMA</literal>
+ can be combined into a list of multiple alterations to applied together.
+ For example, it
is possible to add several columns and/or alter the type of several
columns in a single command. This is particularly useful with large
tables, since only one pass over the table need be made.