Skip to content

Commit 90bcda6

Browse files
committed
refactor: improve menu descriptions for clarity and consistency
- Spell out abbreviations: DB → database, FKs → Foreign keys, tmp → temporary - Update terminology: master/replica → primary/replica (modern Postgres terminology) - Fix inconsistencies: user name → username, do & undo → do and undo - Remove redundant prefix in v2 description
1 parent f1bda22 commit 90bcda6

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

sql/0_node.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--Node & current DB information: master/replica, lag, DB size, tmp files, etc.
1+
--Node and current database information: primary/replica, lag, database size, temporary files, etc.
22

33
/*
44
For Postgres versions older than 10, run this first:

sql/a1_activity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--Current activity: count of current connections grouped by database, user name, state
1+
--Current activity: count of current connections grouped by database, username, state
22
select
33
coalesce(usename, '** ALL users **') as "User",
44
coalesce(datname, '** ALL databases **') as "DB",

sql/e1_extensions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--Extensions installed in current DB
1+
--Extensions installed in current database
22

33
select
44
ae.name,

sql/i3_non_indexed_fks.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--FKs with missing/bad indexes
1+
--Foreign keys with missing or bad indexes
22

33
--Created by PostgreSQL Experts https://github.com/pgexperts/pgx_scripts/blob/master/indexes/fk_no_index.sql
44

sql/i5_indexes_migration.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--Cleanup unused and redundant indexes – do & undo migration DDL
1+
--Cleanup unused and redundant indexes – do and 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.

sql/v2_autovacuum_progress_and_queue.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--Vacuum: vacuum progress and autovacuum queue
1+
--Vacuum progress and autovacuum queue
22

33
-- Based on: https://gitlab.com/snippets/1889668
44

start.psql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
\ir warmup.psql
22
\echo '\033[1;35mMenu:\033[0m'
3-
\echo ' 0 – Node & current DB information: master/replica, lag, DB size, tmp files, etc.'
3+
\echo ' 0 – Node and current database information: primary/replica, lag, database size, temporary files, etc.'
44
\echo ' 1 – Databases: size, stats'
55
\echo ' 2 – Tables: table/index/TOAST size, number of rows'
66
\echo ' 3 – Load profile'
7-
\echo ' a1 – Current activity: count of current connections grouped by database, user name, state'
7+
\echo ' a1 – Current activity: count of current connections grouped by database, username, state'
88
\echo ' b1 – Table bloat (estimated)'
99
\echo ' b2 – B-tree index bloat (estimated)'
1010
\echo ' b3 – Table bloat (requires pgstattuple; expensive)'
1111
\echo ' b4 – B-tree indexes bloat (requires pgstattuple; expensive)'
1212
\echo ' b5 – Tables and columns without stats (so bloat cannot be estimated)'
13-
\echo ' e1 – Extensions installed in current DB'
13+
\echo ' e1 – Extensions installed in current database'
1414
\echo ' i1 – Unused and rarely used indexes'
1515
\echo ' i2 – Redundant indexes'
16-
\echo ' i3 – FKs with missing/bad indexes'
16+
\echo ' i3 – Foreign keys with missing or 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 and undo migration DDL'
1919
\echo ' l1 – Lock trees (lightweight)'
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?'
@@ -25,7 +25,7 @@
2525
\echo ' s2 – Slowest queries report (requires pg_stat_statements)'
2626
\echo ' t1 – PostgreSQL parameters tuning'
2727
\echo ' v1 – Vacuum: current activity'
28-
\echo ' v2 – Vacuum: vacuum progress and autovacuum queue'
28+
\echo ' v2 – Vacuum progress and autovacuum queue'
2929
\echo ' q – Quit'
3030
\echo
3131
\echo Type your choice and press <Enter>:

0 commit comments

Comments
 (0)