ATTACH/DETACH partitions and locking

Поиск
Список
Период
Сортировка
От Pavel Luzanov
Тема ATTACH/DETACH partitions and locking
Дата
Msg-id 642e9fbc-b832-698b-9a8f-d626afd7014d@postgrespro.ru
обсуждение исходный текст
Ответы Re: ATTACH/DETACH partitions and locking  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-docs
Hello,

According to patch[1] and after playing with v12 beta1 I think that this 
item can be dropped from "5.11.3. Implementation Using Inheritance" 
section of v12 docs:

"Some operations require a stronger lock when using declarative 
partitioning than when using table inheritance. For example, adding or 
removing a partition to or 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."

Small patch attached.


[1] ATTACH/DETACH PARTITION CONCURRENTLY
https://www.postgresql.org/message-id/flat/CAKJS1f9QjUwQrio20Pi=yCHmnouf4z3SfN8sqXaAcwREG6k0zQ@mail.gmail.com

-- 

-----
Pavel Luzanov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Mistake in documentation for CREATE STATISTICS
Следующее
От: PG Doc comments form
Дата:
Сообщение: More obvious clarification is needed about how RLS interacts with views