diff --git a/README.md b/README.md index f14fcba97d9d8b7c3744cf498da6680ec99eaac7..3e6a3befb293a4803e14a20e14c8862ac6d6f06a 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,7 @@ git clone https://gitlab.com/postgres-ai/postgres-checkup.git # git clone --branch 1.1 https://gitlab.com/postgres-ai/postgres-checkup.git cd postgres-checkup ``` +It is important: if you are updating to the new version using `git pull` you need to build pghrep binary module executing follow `cd ./pghrep/ && make all`. ## Example of Use diff --git a/checkup b/checkup index 00b5cfbc40821d7b2ce304bab1117b820a8396cb..fd1a436042b809c158fa641747c5f9e529705315 100755 --- a/checkup +++ b/checkup @@ -803,12 +803,15 @@ is_large_database() { # (text) stdout/stderr ####################################### build_pghrep() { + export PGHREP_BIN="${SCRIPT_DIR}/pghrep/bin/pghrep" + if [[ -f "${PGHREP_BIN}" ]]; then + return; + fi dbg "building pghrep..." local save_pwd="${PWD}" cd "${SCRIPT_DIR}/pghrep" make install main >/dev/null cd "${save_pwd}" - export PGHREP_BIN="${SCRIPT_DIR}/pghrep/bin/pghrep" dbg "done building pghrep" }