Skip to content

Commit 6f3a13f

Browse files
Enhance docs for ALTER TABLE lock levels of storage parms
As requested by Robert Haas
1 parent 21d4e2e commit 6f3a13f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/src/sgml/ref/alter_table.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,17 @@ ALTER TABLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable>
568568
That can be done with <link linkend="SQL-VACUUM">VACUUM
569569
FULL</>, <xref linkend="SQL-CLUSTER"> or one of the forms
570570
of <command>ALTER TABLE</> that forces a table rewrite.
571+
For planner related parameters, changes will take effect from the next
572+
time the table is locked so currently executing queries will not be
573+
affected.
571574
</para>
572575

573576
<para>
574-
Changing fillfactor and autovacuum storage parameters acquires a <literal>SHARE UPDATE EXCLUSIVE</literal> lock.
577+
<literal>SHARE UPDATE EXCLUSIVE</literal> lock will be taken for
578+
fillfactor and autovacuum storage parameters, as well as the
579+
following planner related parameters:
580+
effective_io_concurrency, parallel_workers, seq_page_cost
581+
random_page_cost, n_distinct and n_distinct_inherited.
575582
</para>
576583

577584
<note>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy