From 43b5342eef43c4ac8f6933d480834e7890213817 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 14 Jun 2024 12:29:25 -0400 Subject: [PATCH] update workaround to use jq over string parsing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09870d7d..b317e0f8 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ more information on using dbt with Postgres, consult [the docs](https://docs.get By default, `dbt-postgres` installs `psycopg2-binary`. This is great for development, and even testing, as it does not require any OS dependencies; it's a pre-built wheel. However, building `psycopg2` from source will grant performance improvements that are desired in a production environment. In order to install `psycopg2`, use the following steps: ```bash -PSYCOPG2_VERSION=$(pip show psycopg2-binary | grep Version | cut -d " " -f 2) +PSYCOPG2_VERSION=$(pip show --format=json | jq -r '.[] | select(.Name == "psycopg2-binary") | .Version') pip uninstall -y psycopg2-binary pip install psycopg2==$PSYCOPG2_VERSION ```