Redshift Observatory

System Table Tracker

System view pg_catalog.svcs_hash version 1.0.39734 / 2022-07-11

schema name column data type
pg_catalog svcs_hash bytes int8
pg_catalog svcs_hash checksum int8
pg_catalog svcs_hash endtime timestamp
pg_catalog svcs_hash est_rows int8
pg_catalog svcs_hash is_diskbased char(1)
pg_catalog svcs_hash maxlength int4
pg_catalog svcs_hash num_blocks_permitted int4
pg_catalog svcs_hash num_parts int4
pg_catalog svcs_hash occupied int4
pg_catalog svcs_hash query int4
pg_catalog svcs_hash resizes int4
pg_catalog svcs_hash rows int8
pg_catalog svcs_hash segment int4
pg_catalog svcs_hash slice int4
pg_catalog svcs_hash slots int4
pg_catalog svcs_hash starttime timestamp
pg_catalog svcs_hash step int4
pg_catalog svcs_hash tasknum int4
pg_catalog svcs_hash tbl int4
pg_catalog svcs_hash userid int4
pg_catalog svcs_hash workmem int8

View Text

SELECT stcs.userid,
       map.primary_query AS query,
       stcs.slice,
       stcs.segment,
       stcs.step,
       CAST('1970-01-01 00:00:00' AS timestamp) + (CAST((CAST(stcs.starttime AS numeric) / (1000.0 * 1000.0)) + 946684800.0 AS double precision) * CAST('00:00:01' AS interval)) AS starttime,
       CAST('1970-01-01 00:00:00' AS timestamp) + (CAST((CAST(stcs.endtime AS numeric) / (1000.0 * 1000.0)) + 946684800.0 AS double precision) * CAST('00:00:01' AS interval)) AS endtime,
       stcs.tasknum,
       stcs.rows,
       stcs.bytes,
       stcs.slots,
       stcs.occupied,
       stcs.maxlength,
       stcs.tbl,
       stcs.is_diskbased,
       stcs.workmem,
       stcs.num_parts,
       stcs.est_rows,
       stcs.num_blocks_permitted,
       stcs.resizes,
       stcs.checksum
FROM stcs_hash AS stcs
     INNER JOIN stcs_concurrency_scaling_query_mapping AS map ON map.concurrency_scaling_query = stcs.query
WHERE stcs.__cluster_type = CAST('cs' AS bpchar)
  AND to_date(CAST(stcs.__log_generated_date AS text),
              CAST('YYYYMMDD' AS text)) > (getdate() - CAST('7 days' AS interval))
  AND to_date(CAST(map.__log_generated_date AS text),
              CAST('YYYYMMDD' AS text)) > (getdate() - CAST('7 days' AS interval))
  AND CAST(map.concurrency_scaling_cluster AS text) = split_part(CAST(stcs.__path AS text),
                                                                 CAST('/' AS text),
                                                                 10)


Home 3D Друк Blog Bring-Up Times Consultancy Cross-Region Benchmarks Email Forums IRC Mailing Lists Reddit Redshift Price Tracker Redshift Version Tracker Redshift Workbench System Table Tracker The Known Universe Twitter White Papers