From f50769027115165fa23443f7fd738c64811e0265 Mon Sep 17 00:00:00 2001 From: Xin Hao Zhang Date: Mon, 14 Oct 2024 16:11:01 -0400 Subject: [PATCH] tablemetadatacache,cluster-ui: add index count col to db details This commit adds the 'Indexes' column to the v2 db details page, which lists the table's index count. Additionally, we add 1 to the index count retrieved in the table metadata batch iterator to account for the primary index. This value previously represented only secondary indexes. Epic: CRDB-37558 Release note: None --- .../table_metadata_batch_iterator.go | 7 +- .../testdata/update_table_metadata | 128 +++++----- .../testdata/update_table_metadata_errors | 228 +++++++++--------- .../src/databaseDetailsV2/constants.ts | 1 + .../src/databaseDetailsV2/tablesView.tsx | 10 + 5 files changed, 193 insertions(+), 181 deletions(-) diff --git a/pkg/sql/tablemetadatacache/table_metadata_batch_iterator.go b/pkg/sql/tablemetadatacache/table_metadata_batch_iterator.go index ab6c9378612b..dcf7c7250a16 100644 --- a/pkg/sql/tablemetadatacache/table_metadata_batch_iterator.go +++ b/pkg/sql/tablemetadatacache/table_metadata_batch_iterator.go @@ -26,7 +26,7 @@ const ( schemaIDIdx schemaNameIdx columnCountIdx - indexCountIdx + secondaryIndexCountIdx tableTypeIdx autoStatsEnabledIdx statsLastUpdatedIdx @@ -162,8 +162,9 @@ func (batchIter *tableMetadataBatchIterator) fetchNextBatch(ctx context.Context) schemaID: int(tree.MustBeDInt(row[schemaIDIdx])), schemaName: string(tree.MustBeDString(row[schemaNameIdx])), columnCount: int(tree.MustBeDInt(row[columnCountIdx])), - indexCount: int(tree.MustBeDInt(row[indexCountIdx])), - tableType: string(tree.MustBeDString(row[tableTypeIdx])), + // Add 1 to the index count to account for the primary index. + indexCount: int(tree.MustBeDInt(row[secondaryIndexCountIdx])) + 1, + tableType: string(tree.MustBeDString(row[tableTypeIdx])), } if row[autoStatsEnabledIdx] != tree.DNull { diff --git a/pkg/sql/tablemetadatacache/testdata/update_table_metadata b/pkg/sql/tablemetadatacache/testdata/update_table_metadata index 38d73650042f..5b929bcb6860 100644 --- a/pkg/sql/tablemetadatacache/testdata/update_table_metadata +++ b/pkg/sql/tablemetadatacache/testdata/update_table_metadata @@ -72,70 +72,70 @@ SELECT FROM system.table_metadata ORDER BY (db_name, table_name) ---- -autostats_disabled defaultdb public 100 107 2 0 TABLE false {1} 1 2021-01-07 06:13:20 +0000 UTC -autostats_enabled defaultdb public 100 106 2 0 TABLE true {1} 1 2021-01-07 06:13:20 +0000 UTC -mymaterializedview defaultdb public 100 109 4 0 MATERIALIZED_VIEW null {1} 1 2021-01-07 06:13:20 +0000 UTC -myseq defaultdb public 100 110 1 0 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC -mytable defaultdb public 100 104 3 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -mytable2 defaultdb public 100 105 4 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -myview defaultdb public 100 108 3 0 VIEW null {1} 1 2021-01-07 06:13:20 +0000 UTC -comments system public 1 24 4 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -database_role_settings system public 1 44 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -descriptor system public 1 3 2 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -descriptor_id_seq system public 1 7 1 0 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC -eventlog system public 1 12 6 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -external_connections system public 1 53 7 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -job_info system public 1 54 4 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -jobs system public 1 15 12 4 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -join_tokens system public 1 41 3 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -lease system public 1 11 5 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -locations system public 1 21 4 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -migrations system public 1 40 5 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -mvcc_statistics system public 1 64 6 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -namespace system public 1 30 4 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -privileges system public 1 52 5 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -protected_ts_meta system public 1 31 5 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -protected_ts_records system public 1 32 8 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -rangelog system public 1 13 7 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -region_liveness system public 1 9 2 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -replication_constraint_stats system public 1 25 7 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -replication_critical_localities system public 1 26 5 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -replication_stats system public 1 27 7 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -reports_meta system public 1 28 2 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -role_id_seq system public 1 48 1 0 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC -role_members system public 1 23 5 5 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -role_options system public 1 33 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -scheduled_jobs system public 1 37 10 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -settings system public 1 6 4 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -span_configurations system public 1 47 3 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -span_count system public 1 51 2 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -span_stats_buckets system public 1 56 5 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -span_stats_samples system public 1 57 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -span_stats_tenant_boundaries system public 1 58 2 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -span_stats_unique_keys system public 1 55 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -sql_instances system public 1 46 8 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -sqlliveness system public 1 39 3 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -statement_activity system public 1 61 17 7 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -statement_bundle_chunks system public 1 34 3 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -statement_diagnostics system public 1 36 7 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -statement_diagnostics_requests system public 1 35 11 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -statement_execution_insights system public 1 66 29 4 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -statement_statistics system public 1 42 19 8 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -table_metadata system public 1 67 18 10 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -table_statistics system public 1 20 12 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -task_payloads system public 1 59 8 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -tenant_id_seq system public 1 63 1 0 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC -tenant_settings system public 1 50 6 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -tenant_tasks system public 1 60 7 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -tenant_usage system public 1 45 14 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -tenants system public 1 8 6 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -transaction_activity system public 1 62 14 7 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -transaction_execution_insights system public 1 65 23 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -transaction_statistics system public 1 43 14 7 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -ui system public 1 14 3 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -users system public 1 4 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -web_sessions system public 1 19 9 4 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC -zones system public 1 5 2 0 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +autostats_disabled defaultdb public 100 107 2 1 TABLE false {1} 1 2021-01-07 06:13:20 +0000 UTC +autostats_enabled defaultdb public 100 106 2 1 TABLE true {1} 1 2021-01-07 06:13:20 +0000 UTC +mymaterializedview defaultdb public 100 109 4 1 MATERIALIZED_VIEW null {1} 1 2021-01-07 06:13:20 +0000 UTC +myseq defaultdb public 100 110 1 1 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC +mytable defaultdb public 100 104 3 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +mytable2 defaultdb public 100 105 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +myview defaultdb public 100 108 3 1 VIEW null {1} 1 2021-01-07 06:13:20 +0000 UTC +comments system public 1 24 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +database_role_settings system public 1 44 4 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +descriptor system public 1 3 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +descriptor_id_seq system public 1 7 1 1 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC +eventlog system public 1 12 6 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +external_connections system public 1 53 7 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +job_info system public 1 54 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +jobs system public 1 15 12 5 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +join_tokens system public 1 41 3 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +lease system public 1 11 5 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +locations system public 1 21 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +migrations system public 1 40 5 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +mvcc_statistics system public 1 64 6 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +namespace system public 1 30 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +privileges system public 1 52 5 3 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +protected_ts_meta system public 1 31 5 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +protected_ts_records system public 1 32 8 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +rangelog system public 1 13 7 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +region_liveness system public 1 9 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +replication_constraint_stats system public 1 25 7 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +replication_critical_localities system public 1 26 5 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +replication_stats system public 1 27 7 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +reports_meta system public 1 28 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +role_id_seq system public 1 48 1 1 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC +role_members system public 1 23 5 6 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +role_options system public 1 33 4 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +scheduled_jobs system public 1 37 10 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +settings system public 1 6 4 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +span_configurations system public 1 47 3 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +span_count system public 1 51 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +span_stats_buckets system public 1 56 5 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +span_stats_samples system public 1 57 2 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +span_stats_tenant_boundaries system public 1 58 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +span_stats_unique_keys system public 1 55 2 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +sql_instances system public 1 46 8 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +sqlliveness system public 1 39 3 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +statement_activity system public 1 61 17 8 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +statement_bundle_chunks system public 1 34 3 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +statement_diagnostics system public 1 36 7 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +statement_diagnostics_requests system public 1 35 11 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +statement_execution_insights system public 1 66 29 5 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +statement_statistics system public 1 42 19 9 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +table_metadata system public 1 67 18 11 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +table_statistics system public 1 20 12 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +task_payloads system public 1 59 8 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +tenant_id_seq system public 1 63 1 1 SEQUENCE null {1} 1 2021-01-07 06:13:20 +0000 UTC +tenant_settings system public 1 50 6 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +tenant_tasks system public 1 60 7 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +tenant_usage system public 1 45 14 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +tenants system public 1 8 6 3 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +transaction_activity system public 1 62 14 8 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +transaction_execution_insights system public 1 65 23 3 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +transaction_statistics system public 1 43 14 8 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +ui system public 1 14 3 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +users system public 1 4 4 2 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +web_sessions system public 1 19 9 5 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC +zones system public 1 5 2 1 TABLE null {1} 1 2021-01-07 06:13:20 +0000 UTC query SELECT count(*) FROM system.table_metadata WHERE perc_live_data > 1 diff --git a/pkg/sql/tablemetadatacache/testdata/update_table_metadata_errors b/pkg/sql/tablemetadatacache/testdata/update_table_metadata_errors index 2b66b3cba7a5..a2efe2b6ecb1 100644 --- a/pkg/sql/tablemetadatacache/testdata/update_table_metadata_errors +++ b/pkg/sql/tablemetadatacache/testdata/update_table_metadata_errors @@ -11,63 +11,63 @@ query SELECT * FROM system.table_metadata ORDER BY (db_name, table_name) ---- -1 24 system public comments 4 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 44 system public database_role_settings 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 3 system public descriptor 2 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 7 system public descriptor_id_seq 1 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC SEQUENCE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 12 system public eventlog 6 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 53 system public external_connections 7 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 54 system public job_info 4 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 15 system public jobs 12 4 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 41 system public join_tokens 3 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 11 system public lease 5 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 21 system public locations 4 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 40 system public migrations 5 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 64 system public mvcc_statistics 6 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 30 system public namespace 4 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 52 system public privileges 5 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 31 system public protected_ts_meta 5 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 32 system public protected_ts_records 8 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 13 system public rangelog 7 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 9 system public region_liveness 2 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 25 system public replication_constraint_stats 7 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 26 system public replication_critical_localities 5 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 27 system public replication_stats 7 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 28 system public reports_meta 2 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 48 system public role_id_seq 1 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC SEQUENCE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 23 system public role_members 5 5 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 33 system public role_options 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 37 system public scheduled_jobs 10 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 6 system public settings 4 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 47 system public span_configurations 3 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 51 system public span_count 2 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 56 system public span_stats_buckets 5 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 57 system public span_stats_samples 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 58 system public span_stats_tenant_boundaries 2 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 55 system public span_stats_unique_keys 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 46 system public sql_instances 8 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 39 system public sqlliveness 3 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 61 system public statement_activity 17 7 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 34 system public statement_bundle_chunks 3 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 36 system public statement_diagnostics 7 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 35 system public statement_diagnostics_requests 11 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 66 system public statement_execution_insights 29 4 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 42 system public statement_statistics 19 8 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 67 system public table_metadata 18 10 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 20 system public table_statistics 12 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 59 system public task_payloads 8 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 63 system public tenant_id_seq 1 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC SEQUENCE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 50 system public tenant_settings 6 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 60 system public tenant_tasks 7 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 45 system public tenant_usage 14 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 8 system public tenants 6 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 62 system public transaction_activity 14 7 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 65 system public transaction_execution_insights 23 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 43 system public transaction_statistics 14 7 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 14 system public ui 3 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 4 system public users 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 19 system public web_sessions 9 4 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} -1 5 system public zones 2 0 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 24 system public comments 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 44 system public database_role_settings 4 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 3 system public descriptor 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 7 system public descriptor_id_seq 1 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC SEQUENCE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 12 system public eventlog 6 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 53 system public external_connections 7 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 54 system public job_info 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 15 system public jobs 12 5 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 41 system public join_tokens 3 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 11 system public lease 5 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 21 system public locations 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 40 system public migrations 5 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 64 system public mvcc_statistics 6 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 30 system public namespace 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 52 system public privileges 5 3 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 31 system public protected_ts_meta 5 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 32 system public protected_ts_records 8 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 13 system public rangelog 7 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 9 system public region_liveness 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 25 system public replication_constraint_stats 7 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 26 system public replication_critical_localities 5 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 27 system public replication_stats 7 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 28 system public reports_meta 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 48 system public role_id_seq 1 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC SEQUENCE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 23 system public role_members 5 6 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 33 system public role_options 4 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 37 system public scheduled_jobs 10 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 6 system public settings 4 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 47 system public span_configurations 3 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 51 system public span_count 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 56 system public span_stats_buckets 5 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 57 system public span_stats_samples 2 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 58 system public span_stats_tenant_boundaries 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 55 system public span_stats_unique_keys 2 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 46 system public sql_instances 8 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 39 system public sqlliveness 3 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 61 system public statement_activity 17 8 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 34 system public statement_bundle_chunks 3 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 36 system public statement_diagnostics 7 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 35 system public statement_diagnostics_requests 11 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 66 system public statement_execution_insights 29 5 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 42 system public statement_statistics 19 9 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 67 system public table_metadata 18 11 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 20 system public table_statistics 12 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 59 system public task_payloads 8 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 63 system public tenant_id_seq 1 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC SEQUENCE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 50 system public tenant_settings 6 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 60 system public tenant_tasks 7 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 45 system public tenant_usage 14 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 8 system public tenants 6 3 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 62 system public transaction_activity 14 8 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 65 system public transaction_execution_insights 23 3 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 43 system public transaction_statistics 14 8 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 14 system public ui 3 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 4 system public users 4 2 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 19 system public web_sessions 9 5 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} +1 5 system public zones 2 1 {} 0 0 0 0 0 error1 2021-01-07 06:13:20 +0000 UTC TABLE {"auto_stats_enabled": null, "replica_count": 0, "stats_last_updated": null} set-time unixSecs=1710000000 @@ -97,63 +97,63 @@ SELECT FROM system.table_metadata ORDER BY (db_name, table_name) ---- -comments system public 1 24 4 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -database_role_settings system public 1 44 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -descriptor system public 1 3 2 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -descriptor_id_seq system public 1 7 1 0 SEQUENCE null {1} 1 2024-03-09 16:00:00 +0000 UTC -eventlog system public 1 12 6 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -external_connections system public 1 53 7 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -job_info system public 1 54 4 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -jobs system public 1 15 12 4 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -join_tokens system public 1 41 3 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -lease system public 1 11 5 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -locations system public 1 21 4 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -migrations system public 1 40 5 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -mvcc_statistics system public 1 64 6 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -namespace system public 1 30 4 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -privileges system public 1 52 5 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -protected_ts_meta system public 1 31 5 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -protected_ts_records system public 1 32 8 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -rangelog system public 1 13 7 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -region_liveness system public 1 9 2 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -replication_constraint_stats system public 1 25 7 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -replication_critical_localities system public 1 26 5 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -replication_stats system public 1 27 7 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -reports_meta system public 1 28 2 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -role_id_seq system public 1 48 1 0 SEQUENCE null {1} 1 2024-03-09 16:00:00 +0000 UTC -role_members system public 1 23 5 5 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -role_options system public 1 33 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -scheduled_jobs system public 1 37 10 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -settings system public 1 6 4 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -span_configurations system public 1 47 3 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -span_count system public 1 51 2 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -span_stats_buckets system public 1 56 5 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -span_stats_samples system public 1 57 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -span_stats_tenant_boundaries system public 1 58 2 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -span_stats_unique_keys system public 1 55 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -sql_instances system public 1 46 8 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -sqlliveness system public 1 39 3 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -statement_activity system public 1 61 17 7 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -statement_bundle_chunks system public 1 34 3 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -statement_diagnostics system public 1 36 7 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -statement_diagnostics_requests system public 1 35 11 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -statement_execution_insights system public 1 66 29 4 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -statement_statistics system public 1 42 19 8 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -table_metadata system public 1 67 18 10 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -table_statistics system public 1 20 12 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -task_payloads system public 1 59 8 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -tenant_id_seq system public 1 63 1 0 SEQUENCE null {1} 1 2024-03-09 16:00:00 +0000 UTC -tenant_settings system public 1 50 6 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -tenant_tasks system public 1 60 7 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -tenant_usage system public 1 45 14 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -tenants system public 1 8 6 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -transaction_activity system public 1 62 14 7 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -transaction_execution_insights system public 1 65 23 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -transaction_statistics system public 1 43 14 7 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -ui system public 1 14 3 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -users system public 1 4 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -web_sessions system public 1 19 9 4 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC -zones system public 1 5 2 0 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +comments system public 1 24 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +database_role_settings system public 1 44 4 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +descriptor system public 1 3 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +descriptor_id_seq system public 1 7 1 1 SEQUENCE null {1} 1 2024-03-09 16:00:00 +0000 UTC +eventlog system public 1 12 6 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +external_connections system public 1 53 7 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +job_info system public 1 54 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +jobs system public 1 15 12 5 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +join_tokens system public 1 41 3 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +lease system public 1 11 5 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +locations system public 1 21 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +migrations system public 1 40 5 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +mvcc_statistics system public 1 64 6 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +namespace system public 1 30 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +privileges system public 1 52 5 3 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +protected_ts_meta system public 1 31 5 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +protected_ts_records system public 1 32 8 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +rangelog system public 1 13 7 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +region_liveness system public 1 9 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +replication_constraint_stats system public 1 25 7 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +replication_critical_localities system public 1 26 5 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +replication_stats system public 1 27 7 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +reports_meta system public 1 28 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +role_id_seq system public 1 48 1 1 SEQUENCE null {1} 1 2024-03-09 16:00:00 +0000 UTC +role_members system public 1 23 5 6 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +role_options system public 1 33 4 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +scheduled_jobs system public 1 37 10 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +settings system public 1 6 4 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +span_configurations system public 1 47 3 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +span_count system public 1 51 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +span_stats_buckets system public 1 56 5 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +span_stats_samples system public 1 57 2 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +span_stats_tenant_boundaries system public 1 58 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +span_stats_unique_keys system public 1 55 2 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +sql_instances system public 1 46 8 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +sqlliveness system public 1 39 3 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +statement_activity system public 1 61 17 8 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +statement_bundle_chunks system public 1 34 3 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +statement_diagnostics system public 1 36 7 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +statement_diagnostics_requests system public 1 35 11 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +statement_execution_insights system public 1 66 29 5 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +statement_statistics system public 1 42 19 9 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +table_metadata system public 1 67 18 11 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +table_statistics system public 1 20 12 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +task_payloads system public 1 59 8 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +tenant_id_seq system public 1 63 1 1 SEQUENCE null {1} 1 2024-03-09 16:00:00 +0000 UTC +tenant_settings system public 1 50 6 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +tenant_tasks system public 1 60 7 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +tenant_usage system public 1 45 14 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +tenants system public 1 8 6 3 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +transaction_activity system public 1 62 14 8 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +transaction_execution_insights system public 1 65 23 3 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +transaction_statistics system public 1 43 14 8 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +ui system public 1 14 3 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +users system public 1 4 4 2 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +web_sessions system public 1 19 9 5 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC +zones system public 1 5 2 1 TABLE null {1} 1 2024-03-09 16:00:00 +0000 UTC set-time unixSecs=1711000000 diff --git a/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/constants.ts b/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/constants.ts index 7bc9d8be3fcf..7f52048e7105 100644 --- a/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/constants.ts +++ b/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/constants.ts @@ -8,6 +8,7 @@ export enum TableColName { REPLICATION_SIZE = "Replication Size", RANGE_COUNT = "Ranges", COLUMN_COUNT = "Columns", + INDEX_COUNT = "Indexes", NODE_REGIONS = "Regions / Nodes", LIVE_DATA_PERCENTAGE = "% of Live data", STATS_LAST_UPDATED = "Stats last updated", diff --git a/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/tablesView.tsx b/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/tablesView.tsx index 832e2d43cb05..bd97a6962390 100644 --- a/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/tablesView.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/databaseDetailsV2/tablesView.tsx @@ -92,6 +92,16 @@ const COLUMNS: (TableColumnProps & { sortKey?: TableSortOption })[] = }, sortKey: TableSortOption.COLUMNS, }, + { + title: TableColName.INDEX_COUNT, + width: "fit-content", + sorter: true, + render: (t: TableRow) => { + // We always include the primary index. + return t.indexCount; + }, + sortKey: TableSortOption.INDEXES, + }, { title: (