All Redshift monitoring queries in one place.   NOTE: All queries are provided by Redshift Documentation provided by AWS. Here is the link for all the system tables:   https://docs.aws.amazon.com/redshift/latest/dg/cm_chap_system-tables.html   And the Redshift Utility information:   https://github.com/awslabs/amazon-redshift-utils       --reason why s3 copy failed   select  d.query, substring (d.filename, 14 , 20 ),   d.line_number as  line ,   substring (d.value, 1 , 16 ) as  value,   substring (le.err_reason, 1 , 48 ) as  err_reason   from  stl_loaderror_detail d, stl_load_errors le   where  d.query = le.query   and  d.query = <queryID> ;       --copy performance information from past 7 days   select  q.starttime,   s.query, substring (q.querytxt, 1 , 120 ) as  querytxt,          s.n_files, size_mb, s.time_seconds,          s.size_mb/ decode (s.time_seconds, 0 , 1 ,s.time_seconds)   as  mb_per_s   from  ( select  query,...
ETL, big-data, cloud(AWS/GCP/Azure) technologies and possibly share random stuff along the way!!