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
2
2
3
3
-- Created by PostgreSQL Experts https://github.com/pgexperts/pgx_scripts/blob/master/indexes/fk_no_index.sql
4
4
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
2
2
3
3
-- Use it to generate a database migration (e.g. RoR's db:migrate or Sqitch)
4
4
-- to drop unused and redundant indexes.
Original file line number Diff line number Diff line change 1
- -- Postgres parameters tuning
1
+ -- PostgreSQL parameters tuning
2
2
3
3
-- For Postgres versions older than 10, copy/paste the part
4
4
-- 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
2
2
3
3
-- Based on: https://gitlab.com/snippets/1889668
4
4
Original file line number Diff line number Diff line change 13
13
\echo ' e1 – Extensions installed in current DB'
14
14
\echo ' i1 – Unused and rarely used indexes'
15
15
\echo ' i2 – Redundant indexes'
16
- \echo ' i3 – FKs with Missing/Bad Indexes '
16
+ \echo ' i3 – FKs with missing/bad indexes '
17
17
\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'
19
19
\echo ' l1 – Lock trees (leightweight)'
20
20
\echo ' l2 – Lock trees, detailed (based on pg_blocking_pids())'
21
21
\echo ' p1 – [EXP] Alignment padding: how many bytes can be saved if columns are reordered?'
22
22
\echo ' r1 – Create user with random password (interactive)'
23
23
\echo ' r2 – Alter user with random password (interactive)'
24
24
\echo ' s1 – Slowest queries, by total time (requires pg_stat_statements)'
25
25
\echo ' s2 – Slowest queries report (requires pg_stat_statements)'
26
- \echo ' t1 – Postgres parameters tuning'
26
+ \echo ' t1 – PostgreSQL parameters tuning'
27
27
\echo ' v1 – Vacuum: current activity'
28
- \echo ' v2 – Vacuum: VACUUM progress and autovacuum queue'
28
+ \echo ' v2 – Vacuum: vacuum progress and autovacuum queue'
29
29
\echo ' q – Quit'
30
30
\echo
31
31
\echo Type your choice and press <Enter>:
You can’t perform that action at this time.
0 commit comments