Redshift Observatory

System Table Tracker

System view pg_catalog.svcs_s3query_metering version 1.0.60854 / 2023-12-12

schema name column data type
pg_catalog svcs_s3query_metering eventtime timestamp
pg_catalog svcs_s3query_metering internal_request_uuid char(36)
pg_catalog svcs_s3query_metering metered_mbs int8
pg_catalog svcs_s3query_metering query int4

View Text

SELECT stl_s3query_metering.eventtime,
       stl_s3query_metering.query,
       stl_s3query_metering.internal_request_uuid,
       stl_s3query_metering.metered_mbs
FROM stl_s3query_metering

UNION ALL

SELECT CAST('1970-01-01 00:00:00' AS timestamp) + (CAST((CAST(stcs.eventtime AS numeric) / (1000.0 * 1000.0)) + 946684800.0 AS double precision) * CAST('00:00:01' AS interval)) AS eventtime,
       map.primary_query AS query,
       stcs.internal_request_uuid,
       stcs.metered_mbs
FROM stcs_s3query_metering 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