Skip to content

Provide a way to see who the owner is of a schema/table/view #10593

@ksobolew

Description

@ksobolew

There exists a concept of ownership in Trino, embodied in the ALTER (SCHEMA|TABLE|VIEW) SET AUTHORIZATION command. The ownership of an entity is used in access control for authorization; this is most important with views that are SECURITY DEFINER, because for them the access checks are done for the view owner, not for the query invoker. So this is quite an important piece of information for someone designing data governance structure, but there is no way to see who the owner is once the entity is created.

Possible ideas:

  • SHOW CREATE (SCHEMA|TABLE|VIEW): does not seem right because its output is a syntactically (and semantically) valid CREATE statement, and currently there is no way to assign the owner at the time of creation.
  • Simply add an owner column in information_schema tables as needed, and the corresponding SHOW command(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions