Catalog Tables
The sqream_catalog
includes the following tables:
Clustering Keys
The clustering_keys
data object is used for explicit clustering keys for tables. If you define more than one clustering key, each key is listed in a separate row, and is described in the following table:
Column |
Description |
---|---|
|
Shows the name of the database containing the table. |
|
Shows the ID of the table containing the column. |
|
Shows the name of the schema containing the table. |
|
Shows the name of the table containing the column. |
|
Shows the name of the column used as a clustering key for this table. |
Columns
The Columns database object shows the following tables:
Columns
The column
data object is used with standard tables and is described in the following table:
Column |
Description |
---|---|
|
Shows the name of the database containing the table. |
|
Shows the name of the schema containing the table. |
|
Shows the ID of the table containing the column. |
|
Shows the name of the table containing the column. |
|
Shows the ordinal number of the column in the table (begins at 0). |
|
Shows the column’s name. |
|
Shows the column’s data type. For more information see Supported Data Types. |
|
Shows the maximum length in bytes. |
|
Shows |
|
Shows the column’s default value. For more information, see Default Value Constraints. |
|
Shows the compression strategy that a user has overridden. |
|
Shows the timestamp displaying when the column was created. |
|
Shows the timestamp displaying when the column was last altered. |
External Table Columns
The external_table_columns
is used for viewing data from foreign tables.
For more information on foreign tables, see CREATE FOREIGN TABLE.
Databases
The databases
data object is used for displaying database information, and is described in the following table:
Column |
Description |
---|---|
|
Shows the database’s unique ID. |
|
Shows the database’s name. |
|
Reserved for internal use. |
|
Reserved for internal use. |
|
Reserved for internal use. |
|
Reserved for internal use. |
|
Reserved for internal use. |
Permissions
The permissions
data object is used for displaying permissions information, such as roles (also known as grantees), and is described in the following tables:
Permission Types
The permission_types
object identifies the permission names existing in the database.
The following table describes the permission_types
data object:
Column |
Description |
---|---|
|
Shows the permission type’s ID. |
|
Shows the name of the permission type. |
Default Permissions
The commands included in the Default Permissions section describe how to check the following default permissions:
Default Table Permissions
The sqream_catalog.table_default_permissions
command shows the columns described below:
Column |
Description |
---|---|
|
Shows the database that the default permission rule applies to. |
|
Shows the schema that the rule applies to, or |
|
Shows the role to apply the rule to. |
|
Shows the role that the permission is granted to. |
|
Shows the type of permission granted. |
Default Schema Permissions
The sqream_catalog.schema_default_permissions
command shows the columns described below:
Column |
Description |
---|---|
|
Shows the database that the default permission rule applies to. |
|
Shows the role to apply the rule to. |
|
Shows the role that the permission is granted to. |
|
Shows the type of permission granted. |
For an example of using the sqream_catalog.table_default_permissions
command, see Granting Default Table Permissions.
Table Permissions
The table_permissions
data object identifies all permissions granted to tables. Each role-permission combination displays one row.
The following table describes the table_permissions
data object:
Column |
Description |
---|---|
|
Shows the name of the database containing the table. |
|
Shows the ID of the table the permission applies to. |
|
Shows the ID of the role granted permissions. |
|
Identifies the permission type. |
Database Permissions
The database_permissions
data object identifies all permissions granted to databases. Each role-permission combination displays one row.
The following table describes the database_permissions
data object:
Column |
Description |
---|---|
|
Shows the name of the database the permission applies to |
|
Shows the ID of the role granted permissions. |
|
Identifies the permission type. |
Schema Permissions
The schema_permissions
data object identifies all permissions granted to schemas. Each role-permission combination displays one row.
The following table describes the schema_permissions
data object:
Column |
Description |
---|---|
|
Shows the name of the database containing the schema. |
|
Shows the ID of the schema the permission applies to. |
|
Shows the ID of the role granted permissions. |
|
Identifies the permission type. |
UDF Permissions
Comment - No content.
Queries
The savedqueries
data object identifies the saved_queries in the database, as shown in the following table:
Column |
Description |
---|---|
|
Shows the saved query name. |
|
Shows the number of parameters to be replaced at run-time. |
For more information, see saved_queries.
Roles
The roles
data object is used for displaying role information, and is described in the following tables:
Roles
The roles
data object identifies the roles in the database, as shown in the following table:
Column |
Description |
---|---|
|
Shows the role’s database-unique ID. |
|
Shows the role’s name. |
|
Identifies whether the role is a superuser ( |
|
Identifies whether the role can be used to log in to SQream ( |
|
Identifies whether the role has a password ( |
Role Memberships
The roles_memberships
data object identifies the role memberships in the database, as shown below:
Column |
Description |
---|---|
|
Shows the role ID. |
|
Shows the ID of the parent role that this role inherits from. |
|
Identifies whether permissions are inherited ( |
Schemas
The schemas
data object identifies all the database’s schemas, as shown below:
Column |
Description |
---|---|
|
Shows the schema’s unique ID. |
|
Shows the schema’s name. |
|
Shows the name of the role that owns the schema. |
|
Reserved for internal use. |
Sequences
The sequences
data object is used for displaying identity key information, as shown below:
Identity Key
Comment - No content.
Tables
The tables
data object is used for displaying table information, and is described in the following tables:
Tables
The tables
data object identifies proper (Comment - What does “proper” mean?) SQream tables in the database, as shown in the following table:
Column |
Description |
---|---|
|
Shows the name of the database containing the table. |
|
Shows the table’s database-unique ID. |
|
Shows the name of the schema containing the table. |
|
Shows the name of the table. |
|
Identifies whether the |
|
Shows the number of rows in the table. |
|
Relevant for internal use. |
Foreign Tables
The external_tables
data object identifies foreign tables in the database, as shown below:
Column |
Description |
---|---|
|
Shows the name of the database containing the table. |
|
Shows the table’s database-unique ID. |
|
Shows the name of the schema containing the table. |
|
Shows the name of the table. |
|
Identifies the foreign data wrapper used. |
|
Identifies the clause used to create the table. |
Views
The views
data object is used for displaying views in the database, as shown below:
Column |
Description |
---|---|
|
Shows the view’s database-unique ID. |
|
Shows the name of the schema containing the view. |
|
Shows the name of the view. |
|
Reserved for internal use. |
|
Identifies the |
User Defined Functions
The udf
data object is used for displaying UDFs in the database, as shown below:
Column |
Description |
---|---|
|
Shows the name of the database containing the view. |
|
Shows the UDF’s database-unique ID. |
|
Shows the name of the UDF. |