|
[
Permalink
| « Hide
]
Dimitry Sibiryakov added a comment - 02/Mar/16 11:51 AM
Don't hurry with this ticket because ownership model wil be changed with introduction of schemas.
Then schemas should be part of V4 :-)
I think it's worth thinking of SQL Syntax for changing the owner of an object (including database itself) like ALTER <Object> OWNER TO { new_owner | CURRENT_USER } or ALTER <Object> SET OWNER TO { new_owner | CURRENT_USER } and extend it when implementing schemas Not in any way. The owner is not a schema. Do not repeat the mistakes Oracle.
According to SQL standard database objects has no owner, they belong to schema. On its turn users can own schemas.
Of course, Oracle way "user == schema" is ridiculous, but some kind of ownership chain must be. Certainly we should not follow Oracle's "user == schema".
What about ownership chain - IMHO owner of a schema has full access to all objects in that schema (like owner of database has full access to all objects in database). |