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

broken query when using mixedCaseNames #2

Open
mariusa opened this issue Jun 28, 2023 · 1 comment
Open

broken query when using mixedCaseNames #2

mariusa opened this issue Jun 28, 2023 · 1 comment

Comments

@mariusa
Copy link

mariusa commented Jun 28, 2023

Hi,

pg_size_pretty(pg_relation_size(indexrelname::regclass))
https://github.com/HariSekhon/SQL-scripts/blob/54cc9cef687ba3a242688866b6af76956f23865c/postgres_indexes_unused.sql#L19C1-L38C49

says index "mixedcasename" doesn't exist, but it's actual name is "mixedCaseName"

I've changed to this to fix:
pg_size_pretty(pg_relation_size(indexrelid))

@mariusa
Copy link
Author

mariusa commented Jun 28, 2023

Also, please exclude indexes named "pg_%"

Thanks

PS: your name is close to https://en.wikipedia.org/wiki/Hari_Seldon :)

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

No branches or pull requests

1 participant