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

Add support to exclude by application name on txn_* checks #78

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

Conversation

martinmarques
Copy link

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 txn_time/idle flap from OK to UNKNOWN #73

@fabriziomello
Copy link

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

@martinmarques
Copy link
Author

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.

long idle in transaction.

Good for filtering applications like pg_dump, but also others without
having to run them with a specific user.
… it's

hard, or imposible to know which index is bloated if there are indexes
with the same name in different schemas.

Here we add the schema to the bloat message when finding bloat in indexes.
Greg Sabino Mullane and others added 19 commits September 25, 2015 17:37
Newer versions will show the last or current query here, older versions
will just show "<IDLE> in transaction" if there is currently no
query running.
... and note author of last commit in changelog
set_translations.pl only wrote output for languages seen in .po files,
dropping other previously known languages.

Also, fix output to honor the current indentation style (no tabs). In
order to change the current formatting as little as possible, set the
minimal output key output width to 14, and no not append a space after
'key' ('checkcluster-nomrtg' is otherwise too long).
…eruser.

The wrapper function around pg_ls_dir() must hardcode the pg_xlog or
pgxlog/archive_status path, and should take no arguments. It must be
created as a superuser with SECURITY DEFINER.
In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790231, Daniel
Schepler reports pbuilder (a throwaway-minimal-chroot build wrapper for
Debian packages) to setup the filesystem name to be shown as "-". Allow
this in the testsuite.
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.

4 participants