Skip to content

Conversation

@alexeyklyukin
Copy link
Contributor

Use PG version represented as an integer internally insteead of
the float (float comparisons are imprecise). Instead of passing
one version of the disk stat collector pass one version per each
cluster (since wal directories are per cluster). Minor refactoring.

Fixes #88

Use PG version represented as an integer internally insteead of
the float (float comparisons are imprecise). Instead of passing
one version of the disk stat collector pass one version per each
cluster (since wal directories are per cluster). Minor refactoring.
@alexeyklyukin
Copy link
Contributor Author

👍


from pg_view.loggers import logger
from pg_view.models.parsers import ProcNetParser
from pg_view.utils import STAT_FIELD, dbversion_as_float
Copy link

@Vampouille Vampouille Jul 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dbversion_as_float function is still use here :
https://github.com/zalando/pg_view/pull/89/files#diff-8d664710cdcbb1b16504f2b8032196efR114

I have following error while testing your PR :

Traceback (most recent call last):
  File "pg_view.py", line 6, in <module>
    main()
  File "/home/xxx/pg_view/pg_view/__init__.py", line 208, in main
    if not establish_user_defined_connection(instance, conn, clusters):
  File "/home/xxx/pg_view/pg_view/models/db_client.py", line 114, in establish_user_defined_connection
    dbver = dbversion_as_float(pgcon)
NameError: name 'dbversion_as_float' is not defined

@alexeyklyukin
Copy link
Contributor Author

👍

@spumer
Copy link

spumer commented Jun 27, 2018

Any updates?

@avaczi
Copy link

avaczi commented Jul 24, 2018

👍

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.

5 participants