Skip to content

Commit

Permalink
feat: split out 'Current database' and 'Other databases'
Browse files Browse the repository at this point in the history
A few of the statistics we gather are database-specific, so it is
convenient to know which database the statistics we're viewing apply to.
  • Loading branch information
JamesGuthrie committed Apr 9, 2024
1 parent 02de50a commit fdf59d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@
"name": "Non-standard tablespaces",
"query": "select array_agg(spcname) from pg_tablespace where spcname not in ('pg_default', 'pg_global')",
}, {
"name": "Databases",
"query": "select array_agg(datname) from pg_database where datname not in ('template0', 'template1', 'rdsadmin', 'tsadmin')",
"name": "Current database",
"query": "select current_database()",
}, {
"name": "Other databases",
"query": "select array_agg(datname) from pg_database where datname not in ('template0', 'template1', 'rdsadmin', 'tsadmin', current_database())",
}, {
"name": "TimescaleDB version",
"query": "select extversion from pg_extension where extname = 'timescaledb'",
Expand Down

0 comments on commit fdf59d0

Please sign in to comment.