Re: Reducing some DDL Locks to ShareLock

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reducing some DDL Locks to ShareLock
Date: 2008-10-07 12:30:57
Message-ID: 48EB5681.5090206@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Guillaume Lelarge 2008-10-07 12:34:08 Re: Weird behaviour with ALTER TABLE ... SET TABLESPACE ... statement
Previous Message Simon Riggs 2008-10-07 11:32:53 Re: Reducing some DDL Locks to ShareLock