|
4 | 4 | \echo ' 1 – Node Information: master/replica, lag, DB size, tmp files, etc' |
5 | 5 | \echo ' 2 – Table Size' |
6 | 6 | \echo ' 3 – Load Profile' |
7 | | -\echo ' a1 – [EXPERIMENTAL] Alignment Padding. How many bytes can be saved if columns are ordered better?' |
| 7 | +\echo ' a1 – Current Activity: count of current connections grouped by database, user name, state' |
8 | 8 | \echo ' b1 – Tables Bloat, rough estimation' |
9 | 9 | \echo ' b2 – B-tree Indexes Bloat, rough estimation' |
10 | 10 | \echo ' b3 – Tables Bloat, more precise (requires pgstattuple extension; expensive)' |
|
13 | 13 | \echo ' i1 – Unused/Rarely Used Indexes' |
14 | 14 | \echo ' i2 – Unused/Redundant Indexes Do & Undo Migration DDL' |
15 | 15 | \echo ' i3 – FKs with Missing/Bad Indexes' |
| 16 | +\echo ' p1 – [EXPERIMENTAL] Alignment Padding. How many bytes can be saved if columns are ordered better?' |
16 | 17 | \echo ' s1 – Slowest Queries, by Total Time (requires pg_stat_statements extension)' |
17 | 18 | \echo ' s2 – Slowest Queries Report (requires pg_stat_statements)' |
18 | 19 | \if :postgres_dba_wide |
|
38 | 39 | :d_stp::text = 'i1' as d_step_is_i1, |
39 | 40 | :d_stp::text = 'i2' as d_step_is_i2, |
40 | 41 | :d_stp::text = 'i3' as d_step_is_i3, |
| 42 | +:d_stp::text = 'p1' as d_step_is_p1, |
41 | 43 | :d_stp::text = 's1' as d_step_is_s1, |
42 | 44 | :d_stp::text = 's2' as d_step_is_s2, |
43 | 45 | :d_stp::text = 'x' as d_step_is_x, |
@@ -69,7 +71,7 @@ set postgres_dba.wide = 'on'; |
69 | 71 | \prompt 'Press <Enter> to continue…' d_dummy |
70 | 72 | \ir ./start.psql |
71 | 73 | \elif :d_step_is_a1 |
72 | | - \ir ./sql/a1_alignment_padding.sql |
| 74 | + \ir ./sql/a1_activity.sql |
73 | 75 | \prompt 'Press <Enter> to continue…' d_dummy |
74 | 76 | \ir ./start.psql |
75 | 77 | \elif :d_step_is_b1 |
@@ -104,6 +106,10 @@ set postgres_dba.wide = 'on'; |
104 | 106 | \ir ./sql/i3_non_indexed_fks.sql |
105 | 107 | \prompt 'Press <Enter> to continue…' d_dummy |
106 | 108 | \ir ./start.psql |
| 109 | +\elif :d_step_is_p1 |
| 110 | + \ir ./sql/p1_alignment_padding.sql |
| 111 | + \prompt 'Press <Enter> to continue…' d_dummy |
| 112 | + \ir ./start.psql |
107 | 113 | \elif :d_step_is_s1 |
108 | 114 | \ir ./sql/s1_pg_stat_statements_top_total.sql |
109 | 115 | \prompt 'Press <Enter> to continue…' d_dummy |
|
0 commit comments