Skip to content

Commit

Permalink
update workaround to use jq over string parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jun 14, 2024
1 parent af57f2e commit 43b5342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 43b5342

Please sign in to comment.