Re: Reducing some DDL Locks to ShareLock - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Reducing some DDL Locks to ShareLock
Date
Msg-id 48EB5681.5090206@dunslane.net
Whole thread Raw
In response to Re: Reducing some DDL Locks to ShareLock  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Reducing some DDL Locks to ShareLock
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Reducing some DDL Locks to ShareLock
Next
From: Simon Riggs
Date:
Subject: Re: Subtransaction commits and Hot Standby