Re: Reducing some DDL Locks to ShareLock

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Reducing some DDL Locks to ShareLock
Дата
Msg-id 48EB5681.5090206@dunslane.net
обсуждение исходный текст
Ответ на Re: Reducing some DDL Locks to ShareLock  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Reducing some DDL Locks to ShareLock  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers

Simon Riggs wrote:
>
> My main focus is on these commands
> * CREATE TRIGGER
> * ALTER TABLE ..  ADD PRIMARY KEY
> * ALTER TABLE ..  ADD FOREIGN KEY
>
> because those are the most painful ones. We could make it work against
> more, but we'd need to rewrite lots and lots of catalog update code.
>
>
>   

Anything that scans the table is a prime candidate. In particular, for 
parallel pg_dump, ALTER TABLE ... ADD UNIQUE is important, as well as 
possibly other table constraints.

cheers

andrew


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Reducing some DDL Locks to ShareLock
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Subtransaction commits and Hot Standby