zalando / pg_view

Get a detailed, real-time view of your PostgreSQL database and system metrics
https://pypi.python.org/pypi/pg-view
Other
494 stars 49 forks source link

Error running pg_view against PG 11.1 #101

Closed MichaelDBA closed 5 years ago

MichaelDBA commented 5 years ago

Perhaps it is not supported yet, but this is the error I get when running pg_view --verbose:


Traceback (most recent call last):
  File "/bin/pg_view", line 3718, in <module>
    main()
  File "/bin/pg_view", line 3470, in main
    postmasters = get_postmasters_directories()
  File "/bin/pg_view", line 3034, in get_postmasters_directories
    postmasters[pg_dir] = [pid, version, dbname]
UnboundLocalError: local variable 'version' referenced before assignment
MichaelDBA commented 5 years ago

Can I get a status update?

CyberDem0n commented 5 years ago

How did you installed it? Master branch is working fine with PG 11

MichaelDBA commented 5 years ago

It is working now, but still a problem trying to specify a configuration file instead of command line parameters

pmpetit commented 5 years ago

Hello, i have the same pb with pgsql 11.1

Traceback (most recent call last): File "/usr/bin/pg_view", line 11, in load_entry_point('pg-view==1.4.1', 'console_scripts', 'pg_view')() File "/usr/lib/python2.7/site-packages/pg_view.py", line 3470, in main postmasters = get_postmasters_directories() File "/usr/lib/python2.7/site-packages/pg_view.py", line 3034, in get_postmasters_directories postmasters[pg_dir] = [pid, version, dbname] UnboundLocalError: local variable 'version' referenced before assignment postgres-0:~$

installed with "pip install pg-view"