check_postgres icon indicating copy to clipboard operation
check_postgres copied to clipboard

Add support to exclude by application name on txn_* checks

Open martinmarques opened this issue 10 years ago • 2 comments

2 chsets:

  • Add support to exclude or include based on application_name. This helps in monitoring long running txn by excluding ones run by particular tools, i.e. pg_dump
  • Fix for bug from issue #73

martinmarques avatar Oct 15 '14 20:10 martinmarques

You need to check the PostgreSQL version because the "application_name" was introduced in 9.0 version.

fabriziomello avatar Mar 13 '15 13:03 fabriziomello

Yes, you are right there.

I guess we could just ignore the whole --{exclude|include}app options if they are running a version older then 9.0, and add in the docs that this is only available for PostgreSQL >= 9.0

The other option would be to fail with an error message on older versions. I really don't like that. And the user should read the docs first.

martinmarques avatar Mar 13 '15 13:03 martinmarques