Re: BUG #5609: Exclusive Locks & Permission
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5609: Exclusive Locks & Permission |
| Дата | |
| Msg-id | 12650.1281382834@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #5609: Exclusive Locks & Permission ("Rob Brucks" <rob.brucks@rackspace.com>) |
| Ответы |
Re: BUG #5609: Exclusive Locks & Permission
|
| Список | pgsql-bugs |
"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
В списке pgsql-bugs по дате отправления: