public inbox for [email protected]
help / color / mirror / Atom feedFrom: Robert Haas <[email protected]>
To: Bruce Momjian <[email protected]>
Cc: Derrick Rice <[email protected]>
Cc: [email protected]
Subject: Re: DROP TABLE can be issued by schema owner as well as table owner
Date: Sat, 15 Oct 2011 06:29:14 -0400
Message-ID: <CA+TgmoYTJgMpkeNV=QUr=rEL5z=fGpceTUy8Y11pPxNax9Q0yw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CA+TgmoaZtWR08UJfRY+3ps3=BBcDB7koXrmeAZPMkT0_Rm6Nnw@mail.gmail.com>
<[email protected]>
On Fri, Oct 14, 2011 at 11:11 AM, Bruce Momjian <[email protected]> wrote:
> Robert Haas wrote:
>> On Thu, Oct 13, 2011 at 10:06 AM, Bruce Momjian <[email protected]> wrote:
>> > I applied the following documentation patch to clarify this issue, and
>> > used generic wording "user with the proper permissions".
>>
>> That doesn't seem like an improvement; what permissions are proper?
>
> No idea, but it hints that other users can do it too. I thought too
> specific was too complex for this case.
I disagree. I think it's the purpose of documentation to be specific.
The code says:
/* Allow DROP to either table owner or schema owner */
if (!pg_class_ownercheck(relOid, GetUserId()) &&
!pg_namespace_ownercheck(classform->relnamespace, GetUserId()))
aclcheck_error(ACLCHECK_NOT_OWNER, ACL_KIND_CLASS,
rel->relname);
So the command can be executed by the owner of the table, the owner of
the containing schema, or the superuser.
That seems simple enough.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
view thread (12+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: DROP TABLE can be issued by schema owner as well as table owner
In-Reply-To: <CA+TgmoYTJgMpkeNV=QUr=rEL5z=fGpceTUy8Y11pPxNax9Q0yw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox