Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eaac6c7

Browse files
committed
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
1 parent 542975a commit eaac6c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/ref/alter_table.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,10 @@ ALTER TABLE ALL IN TABLESPACE <replaceable class="PARAMETER">name</replaceable>
708708
</para>
709709

710710
<para>
711-
All the actions except <literal>RENAME</literal>,
712-
<literal>SET TABLESPACE</literal> and <literal>SET SCHEMA</literal>
713-
can be combined into
714-
a list of multiple alterations to apply in parallel. For example, it
711+
All the forms of ALTER TABLE that act on a single table, except
712+
<literal>RENAME</literal>, and <literal>SET SCHEMA</literal>
713+
can be combined into a list of multiple alterations to applied together.
714+
For example, it
715715
is possible to add several columns and/or alter the type of several
716716
columns in a single command. This is particularly useful with large
717717
tables, since only one pass over the table need be made.

0 commit comments

Comments
 (0)