Fix startup error for managed databases
To get around cases where pidfile is kept outside of data directory.
On managed Google Cloud SQL getting for example:
FileNotFoundError: [Errno 2] No such file or directory: '/pgsql/data/postmaster.pid'
Thanks for reporting this. Will have a look next week.
hi @kmoppel-cognite, does #324 fixes the problem for you ? If so I prefer to do it that way.
This PR fixes the error I was getting as well. the change in #324 changes the startup error to
File "/opt/homebrew/lib/python3.10/site-packages/pgactivity/data.py", line 175, in pg_is_local_access
@basejump : Hi thanks for testing, can you give me the full stack trace ?
@basejump
This PR fixes the error I was getting as well. the change in #324 changes the startup error to
File "/opt/homebrew/lib/python3.10/site-packages/pgactivity/data.py", line 175, in pg_is_local_access
With #324 Line 175 is a try: statement, so I doubt it would be reported in a traceback. Please report the full traceback and commit id you're using.
The fix was merge a while ago. Feel free to reopen if you see a problem related to this again. Thanks for taking the time to make a PR & post here.