From 2a0dc271512774d78c65e27a96a5d3707c50704f Mon Sep 17 00:00:00 2001 From: dmius Date: Mon, 9 Mar 2020 12:05:23 +0300 Subject: [PATCH 1/2] Do not build pghref every time --- checkup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/checkup b/checkup index 00b5cfb..fd1a436 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" } -- GitLab From dc8defd5ea218d0d9d321dbc588234416f5df2e3 Mon Sep 17 00:00:00 2001 From: dmius Date: Mon, 9 Mar 2020 12:44:56 +0300 Subject: [PATCH 2/2] Update README.txt --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f14fcba..3e6a3be 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 -- GitLab