You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hari Sekhon aafbdc59f7 updated postgres_last_vacuum_analyze.sql 4 years ago
..
README.md updated README.md 4 years ago
aws_athena_cloudtrail_ddl.sql updated aws_athena_cloudtrail_ddl.sql 4 years ago
bigquery_billing_commonly_charged_units_of_measure.sql updated bigquery_billing_commonly_charged_units_of_measure.sql 4 years ago
bigquery_billing_latest_100_charges.sql updated bigquery_billing_latest_100_charges.sql 4 years ago
bigquery_billing_products_most_frequently_used.sql updated bigquery_billing_products_most_frequently_used.sql 4 years ago
bigquery_billing_products_with_highest_aggregate_cost.sql updated bigquery_billing_products_with_highest_aggregate_cost.sql 4 years ago
bigquery_billing_products_with_most_billing_records.sql updated bigquery_billing_products_with_most_billing_records.sql 4 years ago
postgres_active_query_count.sql updated postgres_active_query_count.sql 4 years ago
postgres_databases_by_size.sql updated postgres_databases_by_size.sql 4 years ago
postgres_indexes_caches_hit_ratio.sql updated postgres_indexes_caches_hit_ratio.sql 4 years ago
postgres_last_vacuum_analyze.sql updated postgres_last_vacuum_analyze.sql 4 years ago
postgres_queries_slow.sql added postgres_queries_slow.sql 4 years ago
postgres_query_cache_hit_ratio.sql renamed postgres_queries_cache_hit_ratio.sql to postgres_query_cache_hit_ratio.sql 4 years ago
postgres_query_times.sql updated postgres_query_times.sql 4 years ago
postgres_query_times_pre92.sql renamed postgres_query_times_pre_92.sql to postgres_query_times_pre92.sql 4 years ago
postgres_running_queries.sql updated postgres_running_queries.sql 4 years ago
postgres_running_queries_pre92.sql updated postgres_running_queries_pre92.sql 4 years ago
postgres_tables_cache_hit_ratio.sql updated postgres_tables_cache_hit_ratio.sql 4 years ago
postgres_tables_index_usage.sql updated postgres_tables_index_usage.sql 4 years ago

README.md

SQL Scripts

You might also be interested in sqlcase.pl in the DevOps Perl tools repo to autocase your SQL code (I use this a lot and call it via hotkey in the .vimrc at the top level)

  • aws_athena_cloudtrail_ddl.sql - AWS Athena DDL to setup up integration to query CloudTrail logs from Athena
  • bigquery_billing_*.sql - Google BigQuery billing queries
  • postgres_*.sql - PostgreSQL queries for investigating + performance tuning