-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
I fixed Makefile to fix build on any supported by golang OS'es. |
After first run, I see several issues:
|
1 Now supported only filepath with file:// prefix, relative and absoulute |
pghrep/README.md
Outdated
@@ -0,0 +1,5 @@ | |||
For generate report use: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"To generate ..."
pghrep/README.md
Outdated
|
||
`./bin/pghrep --checkdata=file:///path_to_json_repots_storage/A002_pgversion.json --outdir=/path_to_md_reports_storage/ ` | ||
|
||
also for enable debug mode add option `--debug 1` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, to enable debug mode, use --debug 1
/* 2018 © Dmitry Udalov dmius@postgres.ai | ||
2018 © Postgres.ai | ||
/* | ||
Postgres Healt Reporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Health
} | ||
} | ||
|
||
func determineMasterReplica(data map[string]interface{}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай комментарии к функции распишем.
из названия совершенно непонятно, что она делает — определяет, мастер это или реплика? или что? (возможно, название тоже стоит улучшить)
The code works as expected, let's do these two corrections, as discussed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! It works in macOS. Generated report A001:
[vyagofarov@mac:~/git/healthcheck/pghrep] $ ./bin/pghrep -checkdata=./artifacts/dummy/1_2018_11_30T18_02_12_+0300/A005_extensions.json
No description provided.