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

Refactor pg_stat_activity query #14

Merged
merged 3 commits into from
Jan 10, 2018
Merged

Refactor pg_stat_activity query #14

merged 3 commits into from
Jan 10, 2018

Conversation

CyberDem0n
Copy link
Owner

The new query doesn't need to aggregate entire set and therefore works about twice faster.
Also the SELECT is not doing json encoding of usename, datname and query strings anymore, leaving this job to bg_mon.

In addition to that tests on travis are executed against postgres 9.3, 9.4, 9.5 and 9.6

Alexander Kukushkin added 3 commits January 10, 2018 09:21
The new query is about two times more performant.
Also do json encoding only of necessary values from bg_mon code instead
of calling to_json function from the query.
@coveralls
Copy link

coveralls commented Jan 10, 2018

Coverage Status

Coverage increased (+1.02%) to 86.914% when pulling 1d3e93b on feature/refactoring into 9412922 on master.

@CyberDem0n CyberDem0n merged commit 57f50fd into master Jan 10, 2018
@CyberDem0n CyberDem0n deleted the feature/refactoring branch January 10, 2018 10:36
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.

2 participants