diff --git a/doc/src/sgml/ref/cluster.sgml b/doc/src/sgml/ref/cluster.sgml index f72c7ac006..17c185e076 100644 --- a/doc/src/sgml/ref/cluster.sgml +++ b/doc/src/sgml/ref/cluster.sgml @@ -1,5 +1,5 @@ @@ -60,8 +60,8 @@ CLUSTER in the current database that the calling user owns, or all tables if called by a superuser. (Never-clustered tables are not included.) This - form of CLUSTER cannot be called from inside a - transaction or function. + form of CLUSTER cannot be executed inside a transaction + block. diff --git a/doc/src/sgml/ref/create_tablespace.sgml b/doc/src/sgml/ref/create_tablespace.sgml index 8f64dbe2c8..797591d613 100644 --- a/doc/src/sgml/ref/create_tablespace.sgml +++ b/doc/src/sgml/ref/create_tablespace.sgml @@ -1,5 +1,5 @@ @@ -95,6 +95,11 @@ CREATE TABLESPACE tablespacename [ Tablespaces are only supported on systems that support symbolic links. + + + CREATE TABLESPACE cannot be executed inside a transaction + block. + diff --git a/doc/src/sgml/ref/drop_tablespace.sgml b/doc/src/sgml/ref/drop_tablespace.sgml index 080aa478eb..25772eadd3 100644 --- a/doc/src/sgml/ref/drop_tablespace.sgml +++ b/doc/src/sgml/ref/drop_tablespace.sgml @@ -1,5 +1,5 @@ @@ -66,6 +66,15 @@ DROP TABLESPACE [ IF EXISTS ] tablespacename + + Notes + + + DROP TABLESPACE cannot be executed inside a transaction block. + + + + Examples diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index d80249c7da..be04f63284 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ @@ -94,9 +94,10 @@ PostgreSQL documentation If the command string contains multiple SQL commands, they are processed in a single transaction, unless there are explicit - BEGIN/COMMIT commands included in the string to divide it into - multiple transactions. This is different from the behavior when - the same string is fed to psql's standard input. + BEGIN/COMMIT commands included in the + string to divide it into multiple transactions. This is + different from the behavior when the same string is fed to + psql's standard input. @@ -472,9 +473,14 @@ PostgreSQL documentation + + + If the script itself uses BEGIN, COMMIT + or any command that cannot be executed inside a transaction + block, specifying this option will cause the transaction to be + aborted. diff --git a/doc/src/sgml/ref/reindex.sgml b/doc/src/sgml/ref/reindex.sgml index 574b8effd1..661a219adc 100644 --- a/doc/src/sgml/ref/reindex.sgml +++ b/doc/src/sgml/ref/reindex.sgml @@ -1,5 +1,5 @@ @@ -106,7 +106,8 @@ REINDEX { INDEX | TABLE | DATABASE | SYSTEM } nam Recreate all indexes within the current database. Indexes on shared system catalogs are skipped except in stand-alone mode - (see below). + (see below). This form of REINDEX cannot be executed + inside a transaction block. @@ -118,6 +119,8 @@ REINDEX { INDEX | TABLE | DATABASE | SYSTEM } nam Recreate all indexes on system catalogs within the current database. Indexes on user tables are not processed. Also, indexes on shared system catalogs are skipped except in stand-alone mode (see below). + This form of REINDEX cannot be executed inside a + transaction block. diff --git a/doc/src/sgml/ref/vacuum.sgml b/doc/src/sgml/ref/vacuum.sgml index 225590a5cd..0764aa6807 100644 --- a/doc/src/sgml/ref/vacuum.sgml +++ b/doc/src/sgml/ref/vacuum.sgml @@ -1,5 +1,5 @@ @@ -155,6 +155,10 @@ VACUUM [ FULL | FREEZE ] [ VERBOSE ] ANALYZE [ ta Notes + + VACUUM cannot be executed inside a transaction block. + + We recommend that active production databases be vacuumed frequently (at least nightly), in order to