Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More queries #52

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

emerichunter
Copy link

See the commits on this branch for details.

emerichunter and others added 3 commits August 13, 2021 11:18
Most are taken from maitenance_schema. But it's not always possible to create a foreign extension. 
- duplicate Indexes
- duplicate FKs
- unused tables
- useless columns (same value in all the table: NULL, blank, or TRUE/FALSE/1/a timestamp...)
- alert on wrap-around
- unindexed foreign keys
- empty tables 
- useless unique constraints on foreign keys
- tables with no PK
- tables of more than 500 tuples without index or PK
- complete report in html format for easier reading

pg_stat_statements new queries (Top 5 only for effectiveness and concise output fore readability)
- queries creating the most IOs (needs track_io_timing=on)
- most time consuming queries overall
- most time consuming in one call
- most severe response jitter (statistics issue)
- most memory consuming
- most temp files 
- most called query 
- complete report for all these queries in html format for readability

The html format is for reporting. There might be a way to make dynamic. Like start.psql. Did not dive into it yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant