Re: ATTACH/DETACH partitions and locking

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Pavel Luzanov <p.luzanov@postgrespro.ru>
Cc: pgsql-docs@lists.postgresql.org
Date: 2020-05-20T18:43:05Z
Lists: pgsql-docs
On 2019-Jun-14, Pavel Luzanov wrote:

> Does it make sense to change this way?
> "Some operations require a stronger lock when using declarative partitioning
> than when using table inheritance. For example, removing a
> partition from a partitioned table requires taking an ACCESS EXCLUSIVE
> lock on the parent table, whereas a SHARE UPDATE EXCLUSIVE lock is enough in
> the case of regular inheritance."

It took long -- pushed now.

Thanks for reporting

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. doc: Adding a partition does not require Access Exclusive lock