File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- -- FKs with Missing/Bad Indexes
1+ -- FKs with missing/bad indexes
22
33-- Created by PostgreSQL Experts https://github.com/pgexperts/pgx_scripts/blob/master/indexes/fk_no_index.sql
44
Original file line number Diff line number Diff line change 1- -- Cleanup unused and redundant indexes – DO & UNDO migration DDL
1+ -- Cleanup unused and redundant indexes – do & undo migration DDL
22
33-- Use it to generate a database migration (e.g. RoR's db:migrate or Sqitch)
44-- to drop unused and redundant indexes.
Original file line number Diff line number Diff line change 1- -- Postgres parameters tuning
1+ -- PostgreSQL parameters tuning
22
33-- For Postgres versions older than 10, copy/paste the part
44-- below the last "\else" (scroll down)
Original file line number Diff line number Diff line change 1- -- Vacuum: VACUUM progress and autovacuum queue
1+ -- Vacuum: vacuum progress and autovacuum queue
22
33-- Based on: https://gitlab.com/snippets/1889668
44
Original file line number Diff line number Diff line change 1313\echo ' e1 – Extensions installed in current DB'
1414\echo ' i1 – Unused and rarely used indexes'
1515\echo ' i2 – Redundant indexes'
16- \echo ' i3 – FKs with Missing/Bad Indexes '
16+ \echo ' i3 – FKs with missing/bad indexes '
1717\echo ' i4 – Invalid indexes'
18- \echo ' i5 – Cleanup unused and redundant indexes – DO & UNDO migration DDL'
18+ \echo ' i5 – Cleanup unused and redundant indexes – do & undo migration DDL'
1919\echo ' l1 – Lock trees (leightweight)'
2020\echo ' l2 – Lock trees, detailed (based on pg_blocking_pids())'
2121\echo ' p1 – [EXP] Alignment padding: how many bytes can be saved if columns are reordered?'
2222\echo ' r1 – Create user with random password (interactive)'
2323\echo ' r2 – Alter user with random password (interactive)'
2424\echo ' s1 – Slowest queries, by total time (requires pg_stat_statements)'
2525\echo ' s2 – Slowest queries report (requires pg_stat_statements)'
26- \echo ' t1 – Postgres parameters tuning'
26+ \echo ' t1 – PostgreSQL parameters tuning'
2727\echo ' v1 – Vacuum: current activity'
28- \echo ' v2 – Vacuum: VACUUM progress and autovacuum queue'
28+ \echo ' v2 – Vacuum: vacuum progress and autovacuum queue'
2929\echo ' q – Quit'
3030\echo
3131\echo Type your choice and press <Enter>:
You can’t perform that action at this time.
0 commit comments