mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Reduce lock levels for ALTER TABLE SET autovacuum storage options
Reduce lock levels down to ShareUpdateExclusiveLock for all autovacuum-related relation options when setting them using ALTER TABLE. Add infrastructure to allow varying lock levels for relation options in later patches. Setting multiple options together uses the highest lock level required for any option. Works for both main and toast tables. Fabrízio Mello, reviewed by Michael Paquier, mild edit and additional regression tests from myself
This commit is contained in:
@ -543,6 +543,10 @@ ALTER TABLE ALL IN TABLESPACE <replaceable class="PARAMETER">name</replaceable>
|
||||
of <command>ALTER TABLE</> that forces a table rewrite.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Changing autovacuum storage parameters acquires a <literal>SHARE UPDATE EXCLUSIVE</literal> lock.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
While <command>CREATE TABLE</> allows <literal>OIDS</> to be specified
|
||||
|
Reference in New Issue
Block a user