Skip to content

Commit

Permalink
Merge pull request #1022 from EnterpriseDB/sd/content/epas/13/db-906
Browse files Browse the repository at this point in the history
DB-906 add tablespace name in case of default tablespace in dba_*views -Reviewed by Rohit
  • Loading branch information
robert-stringer authored Mar 3, 2021
2 parents b2fdd8e + e8d0071 commit d64b06a
Show file tree
Hide file tree
Showing 12 changed files with 269 additions and 269 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ title: "ALL_ALL_TABLES"

The `ALL_ALL_TABLES` view provides information about the tables accessible by the current user.

| Name | Type | Description |
| ----------------- | ----------------------- | --------------------------------------------------------------------------------------- |
| `owner` | `TEXT` | User name of the table’s owner. |
| `schema_name` | `TEXT` | Name of the schema in which the table belongs. |
| `table_name` | `TEXT` | The name of the table. |
| `tablespace_name` | `TEXT` | Name of the tablespace in which the table resides if other than the default tablespace. |
| `degree` | `CHARACTER VARYING(10)` | Number of threads per instance to scan a table, or `DEFAULT`. |
| `status` | `CHARACTER VARYING (5)` | Included for compatibility only; always set to `VALID`. |
| `temporary` | `TEXT` | `Y` if the table is temporary; `N` if the table is permanent. |
| Name | Type | Description |
| ----------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `owner` | `TEXT` | User name of the table’s owner. |
| `schema_name` | `TEXT` | Name of the schema in which the table belongs. |
| `table_name` | `TEXT` | The name of the table. |
| `tablespace_name` | `TEXT` | Name of the tablespace in which the table resides. If the tablespace name is not specified, then default tablespace `PG_DEFAULT`. |
| `degree` | `CHARACTER VARYING(10)` | Number of threads per instance to scan a table, or `DEFAULT`. |
| `status` | `CHARACTER VARYING (5)` | Included for compatibility only; always set to `VALID`. |
| `temporary` | `TEXT` | `Y` if the table is temporary; `N` if the table is permanent. |
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ title: "ALL_TAB_PARTITIONS"

The `ALL_TAB_PARTITIONS` view provides information about all of the partitions that reside in the database.

| Name | Type | Description |
| -------------------- | ----------------------------- | ------------------------------------------------------------------------------ |
| `table_owner` | `TEXT` | The owner of the table in which the partition resides. |
| `schema_name` | `TEXT` | The name of the schema in which the table resides. |
| `table_name` | `TEXT` | The name of the table. |
| `composite` | `TEXT` | `YES` if the table is subpartitioned; `NO` if the table is not subpartitioned. |
| `partition_name` | `TEXT` | The name of the partition. |
| `subpartition_count` | `BIGINT` | The number of subpartitions in the partition. |
| `high_value` | `TEXT` | The high partitioning value specified in the `CREATE TABLE` statement. |
| `high_value_length` | `INTEGER` | The length of high partitioning value. |
| `partition_position` | `INTEGER` | The ordinal position of this partition. |
| `tablespace_name` | `TEXT` | The name of the tablespace in which the partition resides. |
| `pct_free` | `NUMERIC` | Included for compatibility only; always `0`. |
| `pct_used` | `NUMERIC` | Included for compatibility only; always `0`. |
| `ini_trans` | `NUMERIC` | Included for compatibility only; always `0`. |
| `max_trans` | `NUMERIC` | Included for compatibility only; always `0`. |
| `initial_extent` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `next_extent` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `min_extent` | `NUMERIC` | Included for compatibility only; always `0`. |
| `max_extent` | `NUMERIC` | Included for compatibility only; always `0`. |
| `pct_increase` | `NUMERIC` | Included for compatibility only; always `0`. |
| `freelists` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `freelist_groups` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `logging` | `CHARACTER VARYING(7)` | Included for compatibility only; always `YES`. |
| `compression` | `CHARACTER VARYING(8)` | Included for compatibility only; always `NONE`. |
| `num_rows` | `NUMERIC` | Same as `pg_class.reltuples`. |
| `blocks` | `INTEGER` | Same as `pg_class.relpages`. |
| `empty_blocks` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `avg_space` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `chain_cnt` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `avg_row_len` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `sample_size` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `last_analyzed` | `TIMESTAMP WITHOUT TIME ZONE` | Included for compatibility only; always `NULL`. |
| `buffer_pool` | `CHARACTER VARYING(7)` | Included for compatibility only; always `NULL`. |
| `global_stats` | `CHARACTER VARYING(3)` | Included for compatibility only; always `YES`. |
| `user_stats` | `CHARACTER VARYING(3)` | Included for compatibility only; always `NO`. |
| `backing_table` | `REGCLASS` | Name of the partition backing table. |
| Name | Type | Description |
| -------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `table_owner` | `TEXT` | The owner of the table in which the partition resides. |
| `schema_name` | `TEXT` | The name of the schema in which the table resides. |
| `table_name` | `TEXT` | The name of the table. |
| `composite` | `TEXT` | `YES` if the table is subpartitioned; `NO` if the table is not subpartitioned. |
| `partition_name` | `TEXT` | The name of the partition. |
| `subpartition_count` | `BIGINT` | The number of subpartitions in the partition. |
| `high_value` | `TEXT` | The high partitioning value specified in the `CREATE TABLE` statement. |
| `high_value_length` | `INTEGER` | The length of high partitioning value. |
| `partition_position` | `INTEGER` | The ordinal position of this partition. |
| `tablespace_name` | `TEXT` | The name of the tablespace in which the partition resides. If the tablespace name is not specified, then default tablespace `PG_DEFAULT`. |
| `pct_free` | `NUMERIC` | Included for compatibility only; always `0`. |
| `pct_used` | `NUMERIC` | Included for compatibility only; always `0`. |
| `ini_trans` | `NUMERIC` | Included for compatibility only; always `0`. |
| `max_trans` | `NUMERIC` | Included for compatibility only; always `0`. |
| `initial_extent` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `next_extent` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `min_extent` | `NUMERIC` | Included for compatibility only; always `0`. |
| `max_extent` | `NUMERIC` | Included for compatibility only; always `0`. |
| `pct_increase` | `NUMERIC` | Included for compatibility only; always `0`. |
| `freelists` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `freelist_groups` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `logging` | `CHARACTER VARYING(7)` | Included for compatibility only; always `YES`. |
| `compression` | `CHARACTER VARYING(8)` | Included for compatibility only; always `NONE`. |
| `num_rows` | `NUMERIC` | Same as `pg_class.reltuples`. |
| `blocks` | `INTEGER` | Same as `pg_class.relpages`. |
| `empty_blocks` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `avg_space` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `chain_cnt` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `avg_row_len` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `sample_size` | `NUMERIC` | Included for compatibility only; always `NULL`. |
| `last_analyzed` | `TIMESTAMP WITHOUT TIME ZONE` | Included for compatibility only; always `NULL`. |
| `buffer_pool` | `CHARACTER VARYING(7)` | Included for compatibility only; always `NULL`. |
| `global_stats` | `CHARACTER VARYING(3)` | Included for compatibility only; always `YES`. |
| `user_stats` | `CHARACTER VARYING(3)` | Included for compatibility only; always `NO`. |
| `backing_table` | `REGCLASS` | Name of the partition backing table. |
Loading

0 comments on commit d64b06a

Please sign in to comment.