Re: BUG #5609: Exclusive Locks & Permission
От | Rob Brucks |
---|---|
Тема | Re: BUG #5609: Exclusive Locks & Permission |
Дата | |
Msg-id | 6853_1281383227_o79Jkgbw013614_E308A6DFE6618140964909BDF05A7AAC2C577373A1@DFW1MXM01.RACKSPACE.CORP обсуждение исходный текст |
Ответ на | Re: BUG #5609: Exclusive Locks & Permission (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: BUG #5609: Exclusive Locks & Permission
|
Список | pgsql-bugs |
Sorry about that, I hit the submit button on accident before I finished typ= ing out the issue. But I guess there was enough there for you to understan= d the problem. Thanks for the quick response. Is there any alternative I can use to prevent the exclusive lock (other tha= n changing the app, we don't have access to the source code)? Thanks, Rob -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Monday, August 09, 2010 2:41 PM To: Rob Brucks Cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #5609: Exclusive Locks & Permission=20 "Rob Brucks" <rob.brucks@rackspace.com> writes: > The user's permissions need to be checked before requesting an exclusive > lock on the table for the alter. Unfortunately, that cure is as bad or worse than the disease. It's not possible to do a permissions check before acquiring any lock --- what if somebody is changing the permissions under you, or even dropping or renaming the table? We could acquire sharelock, do the permissions check, and then upgrade to exclusive lock; but lock upgrading has its own unpleasant consequences, notably increased risk of deadlock. So it's unlikely this is going to get changed. regards, tom lane Confidentiality Notice: This e-mail message (including any attached or embedded documents) is intended for the exclusive and confidential use of t= he individual or entity to which this message is addressed, and unless otherwi= se expressly indicated, is confidential and privileged information of Rackspac= e. Any dissemination, distribution or copying of the enclosed material is proh= ibited. If you receive this transmission in error, please notify us immediately by = e-mail at abuse@rackspace.com, and delete the original message. Your cooperation is appreciated.
В списке pgsql-bugs по дате отправления: