You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
105577: sql: add crdb_internal.kv_protected_ts_records virtual table r=jayshrivastava a=jayshrivastava
This change adds a new virtual table `crdb_internal.kv_protected_ts_records` which provides better visability into PTS records than `system.protected_ts_records`. This virtual table includes all columns from the system table and adds the following columns:
- `num_ranges INT`: the number of ranges protected by the PTS record. Note this does not
count ranges when the PTS record is protecting a database, cluster, or tenant. It
only counts ranges protected by tables. Adding support for databases, clusters,
and tenants is left as a TODO.
- `decoded_meta JSON`: the decoded `meta` column from the system table. For the jobs `meta_type`,
this contains the job ID. For the schedules `meta_type`, this is contains the schedule ID.
- `decoded_target JSON`: the decoded `ptpb.Target` field.
- `internal_meta JSON`: any additional metadata added by this table. For the jobs `meta_type`,
this contains the job owner. For the schedules `meta_type`, this contains the schedule label
and owner.
This change also adds this table to the debug zip.
Release note: None
Closes: cockroachdb#104161
Epic: None
Co-authored-by: Jayant Shrivastava <[email protected]>
Copy file name to clipboardExpand all lines: pkg/cli/testdata/zip/testzip_external_process_virtualization
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ debug zip --concurrency=1 --cpu-profile-duration=1s /dev/null
35
35
[cluster] retrieving SQL data for crdb_internal.kv_node_status... writing output: debug/crdb_internal.kv_node_status.txt...
36
36
[cluster] retrieving SQL data for crdb_internal.kv_node_status: last request failed: ERROR: unimplemented: operation is unsupported in multi-tenancy mode (SQLSTATE 0A000)
37
37
[cluster] retrieving SQL data for crdb_internal.kv_node_status: creating error output: debug/crdb_internal.kv_node_status.txt.err.txt... done
38
+
[cluster] retrieving SQL data for crdb_internal.kv_protected_ts_records... writing output: debug/crdb_internal.kv_protected_ts_records.txt... done
38
39
[cluster] retrieving SQL data for crdb_internal.kv_store_status... writing output: debug/crdb_internal.kv_store_status.txt...
39
40
[cluster] retrieving SQL data for crdb_internal.kv_store_status: last request failed: ERROR: unimplemented: operation is unsupported in multi-tenancy mode (SQLSTATE 0A000)
40
41
[cluster] retrieving SQL data for crdb_internal.kv_store_status: creating error output: debug/crdb_internal.kv_store_status.txt.err.txt... done
0 commit comments