Skip site navigation (1) Skip section navigation (2)

Re: Reducing some DDL Locks to ShareLock

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reducing some DDL Locks to ShareLock
Date: 2008-10-07 18:38:46
Message-ID: 1223404726.4747.249.camel@ebony.2ndQuadrant (view raw or flat)
Thread:
Lists: pgsql-hackers
On Tue, 2008-10-07 at 11:15 -0400, Tom Lane wrote:
> Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> > 2. Also need to decide whether we want pg_class.reltriggers as int2 (as
> > implemented here) or switch to relhastriggers as boolean.
> 
> I'd go for changing the column name/type.  Yeah, you will break any
> clients that are still trying to manipulate reltriggers directly, but
> better to break them obviously than non-obviously.  And I think a silent
> change in the column semantics has significant risk of the latter.

New version with column type change. 

Initdb forced, psql, pg_dump changes also.

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support

Attachment: ddl_lock_reduce.v6.patch
Description: text/x-patch (71.3 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2008-10-07 19:32:54
Subject: Re: Reducing some DDL Locks to ShareLock
Previous:From: Simon RiggsDate: 2008-10-07 18:38:42
Subject: Re: Reducing some DDL Locks to ShareLock

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group