GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — amazon-redshift-utils/src/AdminScripts at master · bentaylor2/amazon-redshift-utils

Expand file tree

/

AdminScripts

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

AdminScripts

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
commit_stats.sql
commit_stats.sql
 
 
copy_performance.sql
copy_performance.sql
 
 
current_session_info.sql
current_session_info.sql
 
 
filter_used.sql
filter_used.sql
 
 
generate_calendar.sql
generate_calendar.sql
 
 
lock_wait.sql
lock_wait.sql
 
 
missing_table_stats.sql
missing_table_stats.sql
 
 
perf_alert.sql
perf_alert.sql
 
 
predicate_columns.sql
predicate_columns.sql
 
 
queue_resources_hourly.sql
queue_resources_hourly.sql
 
 
queuing_queries.sql
queuing_queries.sql
 
 
running_queues.sql
running_queues.sql
 
 
table_alerts.sql
table_alerts.sql
 
 
table_info.sql
table_info.sql
 
 
table_inspector.sql
table_inspector.sql
 
 
top_queries.sql
top_queries.sql
 
 
top_queries_and_cursors.sql
top_queries_and_cursors.sql
 
 
unscanned_table_summary.sql
unscanned_table_summary.sql
 
 
user_to_be_dropped_objs.sql
user_to_be_dropped_objs.sql
 
 
user_to_be_dropped_privs.sql
user_to_be_dropped_privs.sql
 
 
wlm_apex.sql
wlm_apex.sql
 
 
wlm_apex_hourly.sql
wlm_apex_hourly.sql
 
 
wlm_qmr_rule_candidates.sql
wlm_qmr_rule_candidates.sql
 
 

README.md

Redshift Admin Scripts

Scripts objective is to help on tuning and troubleshooting. If you are using psql, you can use psql [option] -f <script.sql> to run.

Script Purpose
commit_stats.sql Shows information on consumption of cluster resources through COMMIT statements
copy_performance.sql Shows longest running copy for past 7 days
current_session_info.sql Query showing information about sessions with currently running queries
filter_used.sql Return filter applied to tables on scans. To aid on choosing sortkey
generate_calendar.sql Creates a calendar dimension table useful for star-schema joins
missing_table_stats.sql Query shows EXPLAIN plans which flagged "missing statistics" on the underlying tables
perf_alert.sql Return top occurrences of alerts, join with table scans and SQL Text
table_alerts.sql Return top occurrences of table access related alerts
predicate_columns.sql Return Information about Predicate Columns on tables
queuing_queries.sql Query showing queries which are waiting on a WLM Query Slot
queue_resources_hourly.sql Returns hourly resources usage for WLM query queues
running_queues.sql Returns queries running and queueing and resources consumed
table_info.sql Return Table storage information (size, skew, etc)
table_inspector.sql Table Analysis based on content in Analyzing Table Design. Complements table_info.sql
top_queries.sql Return the top 50 most time consuming statements in the last 7 days
top_queries_and_cursors.sql Return the top 50 most time consuming statements in the last 7 days - include cursor text
unscanned_table_summary.sql Summarizes storage consumed by unscanned tables
wlm_apex.sql Returns overall high water-mark for WLM query queues and time queuing last occurred
wlm_apex_hourly.sql Returns hourly high water-mark for WLM query queues
wlm_qmr_rule_candidates.sql Calculate candidates for new WLM Query Monitoring rules
user_to_be_dropped_objs.sql Find objects owned by a user that cannot be dropped
user_to_be_dropped_privs.sql Find privileges granted to a user that cannot be dropped
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.