Skip to content

Commit 16a0083

Browse files
committed
reorder reports
1 parent 10619fa commit 16a0083

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

start.psql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
\echo ' 1 – Node Information: master/replica, lag, DB size, tmp files, etc'
55
\echo ' 2 – Table Size'
66
\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'
88
\echo ' b1 – Tables Bloat, rough estimation'
99
\echo ' b2 – B-tree Indexes Bloat, rough estimation'
1010
\echo ' b3 – Tables Bloat, more precise (requires pgstattuple extension; expensive)'
@@ -13,6 +13,7 @@
1313
\echo ' i1 – Unused/Rarely Used Indexes'
1414
\echo ' i2 – Unused/Redundant Indexes Do & Undo Migration DDL'
1515
\echo ' i3 – FKs with Missing/Bad Indexes'
16+
\echo ' p1 – [EXPERIMENTAL] Alignment Padding. How many bytes can be saved if columns are ordered better?'
1617
\echo ' s1 – Slowest Queries, by Total Time (requires pg_stat_statements extension)'
1718
\echo ' s2 – Slowest Queries Report (requires pg_stat_statements)'
1819
\if :postgres_dba_wide
@@ -38,6 +39,7 @@ select
3839
:d_stp::text = 'i1' as d_step_is_i1,
3940
:d_stp::text = 'i2' as d_step_is_i2,
4041
:d_stp::text = 'i3' as d_step_is_i3,
42+
:d_stp::text = 'p1' as d_step_is_p1,
4143
:d_stp::text = 's1' as d_step_is_s1,
4244
:d_stp::text = 's2' as d_step_is_s2,
4345
:d_stp::text = 'x' as d_step_is_x,
@@ -69,7 +71,7 @@ set postgres_dba.wide = 'on';
6971
\prompt 'Press <Enter> to continue…' d_dummy
7072
\ir ./start.psql
7173
\elif :d_step_is_a1
72-
\ir ./sql/a1_alignment_padding.sql
74+
\ir ./sql/a1_activity.sql
7375
\prompt 'Press <Enter> to continue…' d_dummy
7476
\ir ./start.psql
7577
\elif :d_step_is_b1
@@ -104,6 +106,10 @@ set postgres_dba.wide = 'on';
104106
\ir ./sql/i3_non_indexed_fks.sql
105107
\prompt 'Press <Enter> to continue…' d_dummy
106108
\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
107113
\elif :d_step_is_s1
108114
\ir ./sql/s1_pg_stat_statements_top_total.sql
109115
\prompt 'Press <Enter> to continue…' d_dummy

0 commit comments

Comments
 (0)