The following sentence in the ALTER TABLE documentation is not entirely accurate:
"All the actions except RENAME, SET TABLESPACE and SET SCHEMA can be combined into a list of multiple alterations to apply in parallel." SET TABLESPACE (in the ALTER TABLE form) can be combined with other subcommands; for example, following works: alter table foo set tablespace mytbls, add b int; Perhaps, it should say something like: All the actions except RENAME, SET TABLESPACE (when using the ALL IN TABLESPACE form) and SET SCHEMA can be combined into a list of multiple alterations to apply in parallel. Attached is a patch. Thanks, Amit
diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index e48ccf2..150a3b8 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -709,8 +709,8 @@ ALTER TABLE ALL IN TABLESPACE <replaceable class="PARAMETER">name</replaceable> <para> All the actions except <literal>RENAME</literal>, - <literal>SET TABLESPACE</literal> and <literal>SET SCHEMA</literal> - can be combined into + <literal>SET TABLESPACE</literal> (when using the <literal>ALL IN TABLESPACE</literal> + form) and <literal>SET SCHEMA</literal> can be combined into a list of multiple alterations to apply in parallel. 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
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers