Re: Do we want SYNONYMS?
От | Tom Lane |
---|---|
Тема | Re: Do we want SYNONYMS? |
Дата | |
Msg-id | 6042.1291686299@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Do we want SYNONYMS? ("Daniel Verite" <daniel@manitou-mail.org>) |
Ответы |
Re: Do we want SYNONYMS?
|
Список | pgsql-general |
"Daniel Verite" <daniel@manitou-mail.org> writes: > Michael C Rosenstein wrote: >> Oracle "schema" == Postgres "database": a collection of objects >> (tables, functions, triggers, views, etc) owned by a user. > That definition applies to an Oracle schema, but not to a postgres database. > Objects inside a postgres database are not confined to a unique owner. Even > objects inside the same postgres schema don't have that constraint. Hmm, perhaps that's related to something that was confusing me. The Oracle page that Michael linked to says that synonyms can * Mask the name and owner of an object * Enable restricted access similar to specialized views when exercising fine-grained access control Taken at face value from a Postgres perspective, these statements seem to imply that different ownership and permissions apply to a synonym than to its referenced object; which seems like a completely horrid idea from a security standpoint. But maybe they are only trying to say that a synonym hides which *schema* the referenced object is in, and that is tantamount to hiding the owner if you have the mindset that owner == schema. Can anyone elucidate on just what is behind those statements? regards, tom lane
В списке pgsql-general по дате отправления: