Re: Schema (namespace) privilege details

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rod Taylor" <rbt(at)zort(dot)ca>
Cc: "Joe Conway" <mail(at)joeconway(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Schema (namespace) privilege details
Date: 2002-04-19 01:19:29
Message-ID: 15706.1019179169@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Rod Taylor" <rbt(at)zort(dot)ca> writes:
> [ how it ought to be to support hosting companies ]

I'm not real comfortable with this. The design I proposed is based
fairly firmly on the Unix directory/file protection model --- which
is assuredly not perfect, but it's survived a lot of use and is not
known to have major flaws. You're suggesting that we should invent
a protection model off-the-cuff on the basis of the supposed needs
of one class of application. I think that's a recipe for trouble...

> I'd really like to see a schema owner have full control over all
> objects in a schema, and likewise a database owner have full control
> over their database. My POV for large systems.

Those things are both easily done: just don't allow anyone else to
create objects in your schema (resp. database). This is indeed what
SQL99 envisions. However, in a database where there are multiple
users sharing schemas, I am not convinced that the notion "the schema
owner has ALL rights to objects within the schema" is appropriate.
That seems to me to go way too far; if we are troubling to maintain
distinct ownership of objects within a schema, that should mean
something. In particular, the guy who is not the schema owner should
be able to have some confidence that the guy who is can't make arbitrary
changes in his table. Otherwise the schema owner is effectively
superuser, and what's the point of pretending he's not?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-04-19 01:24:18 Re: Schema (namespace) privilege details
Previous Message Rod Taylor 2002-04-19 00:37:49 Re: Schema (namespace) privilege details