Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Change lock...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 9478 of 10966
Post > Topic >>

Re: Change lock requirements for adding a trigger

by simon@[EMAIL PROTECTED] (Simon Riggs) Jun 3, 2008 at 11:04 PM

On Tue, 2008-06-03 at 16:48 -0500, Decibel! wrote:
> On May 30, 2008, at 9:51 AM, Simon Riggs wrote:
> > On Thu, 2008-05-29 at 19:18 -0500, Decibel! wrote:
> >> Is there a reason that we can't add a trigger to a table while a
> >> select is running? This is a serious pain when trying to setup
> >> londiste or slony.
> >
> > This is constrained by locking.
> >
> > There are a subset of DDL commands that might be able to be performed
> > with just an ExclusiveLock or ShareLock rather than an
> > Acces***clusiveLock. Nobody has studied which sub-statements this  
> > might
> > apply to, but its do-able since CREATE INDEX already does this.
> 
> Is there a good way to determine this other than depending on  
> knowledge of the source code?

The source doesn't know yet. So just analysis and thinking.

The mechanism to hold less than an Acces***clusiveLock it doesn't exist
yet, but it never will unless we have a list of the things that might be
performed correctly with a lower level of lock.

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Sup****t


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 2 Posts in Topic:
Re: Change lock requirements for adding a trigger
simon@[EMAIL PROTECTED]   2008-06-03 23:04:13 
Re: Change lock requirements for adding a trigger
tgl@[EMAIL PROTECTED] (T  2008-06-04 10:59:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 14:12:37 CST 2008.