Conversation
|
Hello, Thanks for taking some time to fix and add new things on check_pgactivity. Regarding this service, I don't agree that it's a feature that we want. Checking for unused indexes is challenging and can lead to "false positives" : think about an index mandatory in a monthly or yearly batch. Think on an index backing an unique constrainte (PK or not). A simple test leads to a false positive : The query embedded in the script will make this service bail out about the index supporting the PK. |
|
I agree that all indexes for PKs and UNIQUE keys should be excluded. As for indexes on FKs, this is more difficult. They should be present by default there until proven useless, this service could help to detect them. You need a big warning that an index may be useful once a year, but this service could be useful if not used blindly. |
|
I added support for checking primary key and unique constraints indexes. It may bring false positive, but many other services do too. I still think it's worth it. |
Basic fix for #32
Basic fix for #32