|
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 | +\echo ' r1 – Create user with random password (interactive)' |
| 23 | +\echo ' r2 – Alter user with random password (interactive)' |
22 | 24 | \echo ' s1 – Slowest queries, by total time (requires pg_stat_statements)' |
23 | 25 | \echo ' s2 – Slowest queries report (requires pg_stat_statements)' |
24 | 26 | \echo ' t1 – Postgres parameters tuning' |
|
49 | 51 | :d_stp::text = 'l1' as d_step_is_l1, |
50 | 52 | :d_stp::text = 'l2' as d_step_is_l2, |
51 | 53 | :d_stp::text = 'p1' as d_step_is_p1, |
| 54 | +:d_stp::text = 'r1' as d_step_is_r1, |
| 55 | +:d_stp::text = 'r2' as d_step_is_r2, |
52 | 56 | :d_stp::text = 's1' as d_step_is_s1, |
53 | 57 | :d_stp::text = 's2' as d_step_is_s2, |
54 | 58 | :d_stp::text = 't1' as d_step_is_t1, |
@@ -134,6 +138,14 @@ select |
134 | 138 | \ir ./sql/p1_alignment_padding.sql |
135 | 139 | \prompt 'Press <Enter> to continue…' d_dummy |
136 | 140 | \ir ./start.psql |
| 141 | +\elif :d_step_is_r1 |
| 142 | + \ir ./sql/r1_create_user_with_random_password.sql |
| 143 | + \prompt 'Press <Enter> to continue…' d_dummy |
| 144 | + \ir ./start.psql |
| 145 | +\elif :d_step_is_r2 |
| 146 | + \ir ./sql/r2_alter_user_with_random_password.sql |
| 147 | + \prompt 'Press <Enter> to continue…' d_dummy |
| 148 | + \ir ./start.psql |
137 | 149 | \elif :d_step_is_s1 |
138 | 150 | \ir ./sql/s1_pg_stat_statements_top_total.sql |
139 | 151 | \prompt 'Press <Enter> to continue…' d_dummy |
|
0 commit comments