diff --git a/README.md b/README.md index bc11969..0e4a1d5 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This package provides a number of base models for Redshift system tables, as wel __Base Models__ -Each of these base models maps 1-to-1 with the underlying Redshift table. +Each of these base models maps 1-to-1 with the underlying Redshift table. Some renaming has been performed to make the field names grokable. - pg_attribute - pg_class @@ -34,14 +34,17 @@ __Ephemeral Models__ These ephemeral models simplify some of Redshift's field naming and logic, to make the data more usable. - redshift_cost: transforms the start and max explain cost values from stl_explain into floating point values -- users: transforms pg_users to make the field names grokable __View Models__ These views are designed to make debugging your Redshift cluster more straightforward. They are, in effect, materializations of the [Diagnostic Queries for Query Tuning](http://docs.aws.amazon.com/redshift/latest/dg/diagnostic-queries-for-query-tuning.html) from Redshift's documentation. -- queries: Simplified view of queries, including explain cost, execution times, and queue times. -- table_stats: Gives insight on tables in your warehouse. Includes information on sort and dist keys, table size on disk, and more. +- [queries](models/views/queries.sql): Simplified view of queries, including explain cost, execution times, and queue times. +- [table_stats](models/views/table_stats.sql): Gives insight on tables in your warehouse. Includes information on sort and dist keys, table size on disk, and more. + +These views are designed to make user privilege management more straightforward. +- [users_table_view_privileges](models/views/users_table_view_privileges.sql): Gives insights into which [privileges](https://docs.aws.amazon.com/redshift/latest/dg/r_HAS_TABLE_PRIVILEGE.html) each user has on each table/view. +- [users_schema_privileges](models/views/users_schema_privileges.sql): Gives insights into which [privileges](https://docs.aws.amazon.com/redshift/latest/dg/r_HAS_SCHEMA_PRIVILEGE.html) each user has on each schema. __Introspection Models__ diff --git a/models/views/users_schema_permissions.sql b/models/views/users_schema_privileges.sql similarity index 100% rename from models/views/users_schema_permissions.sql rename to models/views/users_schema_privileges.sql diff --git a/models/views/users_table_view_permissions.sql b/models/views/users_table_view_privileges.sql similarity index 100% rename from models/views/users_table_view_permissions.sql rename to models/views/users_table_view_privileges.sql